# Installing Autotroph Verified Data & Compliance MCP Server

This guide is designed for autonomous AI coding agents (Cline, Roo Code, Goose, Claude Code, Cursor) to install and verify the **Autotroph Verified Data & Compliance MCP Server** with minimal user interaction.

## Overview

- **Repository**: `https://github.com/char5742/autotroph-mcp-catalog`
- **Interactive Hub & Config Builder**: `https://char5742.github.io/autotroph-mcp-catalog/`
- **Official MCP Registry**: `io.github.char5742/autotroph-data-apis` (plus 5 single-domain servers)
- **Pricing**: Free Apify account includes **$5/month free credit** (~1,000+ verified tool calls/month; `$0.00005` start + `$0.004–$0.01/record`, no credit card required).
- **Security**: Read-only public government, financial, and patent APIs (`readOnlyHint: true`, zero credentials stored on disk, zero third-party npm dependencies in stdio mode).

## Prerequisites

1. **Apify API Token (`APIFY_TOKEN`)**:
   - Ask the user for their `APIFY_TOKEN`.
   - If the user does not have one yet, give them this 1-click free token link:
     `https://console.apify.com/settings/integrations?createApiToken=true&for=MCP`
2. **For Local Stdio Mode (Option 2 only)**: Node.js 18+ (`node --version`).

---

## Option 1: Remote Streamable HTTP (Recommended — Zero Local Dependencies)

Add the following entry to the user's MCP client configuration (for Cline: `cline_mcp_settings.json`; for Cursor: `.cursor/mcp.json`; for VS Code: `.vscode/mcp.json`):

```json
{
  "mcpServers": {
    "autotroph-data": {
      "type": "streamableHttp",
      "url": "https://mcp.apify.com?tools=autotroph/sec-edgar-xbrl-normalizer,autotroph/ted-eu-eforms-normalizer,autotroph/us-federal-procurement-normalizer,autotroph/uspto-patent-intelligence-normalizer,autotroph/us-federal-register-normalizer",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
```

> Replace `YOUR_APIFY_TOKEN` with the user's Apify Personal API token. For clients that use `"type": "http"` instead of `"streamableHttp"` (such as Claude Code `.mcp.json` or VS Code), set `"type": "http"`.

---

## Option 2: Local Stdio MCP Server (Zero-Dependency Node.js 18+)

If the user's MCP client prefers local `stdio` transport, add this configuration to `cline_mcp_settings.json` (or `claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "autotroph-data": {
      "command": "npx",
      "args": ["-y", "github:char5742/autotroph-mcp-catalog"],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
```

For pinned, immutable installs in strict environments, use a tagged release ref such as `github:char5742/autotroph-mcp-catalog#v1.0.1` (or clone the repo and run `node bin/autotroph-mcp.mjs`).

---

## Verification Steps (Run After Configuration)

1. **Tool Discovery Check (No token required in stdio mode)**:
   ```bash
   npx -y github:char5742/autotroph-mcp-catalog --list-tools
   ```
   Expected result: JSON array containing the 5 live read-only tools:
   - `sec_edgar_financials`
   - `ted_eu_tenders`
   - `us_federal_contracts`
   - `uspto_patents`
   - `us_federal_register`

2. **Live End-to-End Tool Call Verification**:
   Invoke `sec_edgar_financials` (or `autotroph/sec-edgar-xbrl-normalizer` in remote mode) with:
   ```json
   {
     "tickers": ["AAPL"],
     "years": 2,
     "quarters": 4
   }
   ```
   Expected result: Deduplicated US-GAAP 10-K/10-Q JSON with `"integrity_valid": true`, Revenue, Net Income, EPS, Free Cash Flow, derived Q4, and TTM metrics.

---

## Available Tools (5 Live Wave 1 + 5 Wave 2 Unlocking 2026-11-27T07:00Z)

| Tool Name | Apify Actor Slug | Primary Official Sources | Price (PPE) |
| :--- | :--- | :--- | :--- |
| `sec_edgar_financials` | `autotroph/sec-edgar-xbrl-normalizer` | SEC EDGAR CompanyFacts XBRL | `$0.00005` + `$0.01/company` |
| `ted_eu_tenders` | `autotroph/ted-eu-eforms-normalizer` | EU TED Search API v3 & eForms XML | `$0.00005` + `$0.004/tender` |
| `us_federal_contracts` | `autotroph/us-federal-procurement-normalizer` | USAspending.gov & SAM.gov | `$0.00005` + `$0.004/award` |
| `uspto_patents` | `autotroph/uspto-patent-intelligence-normalizer` | EMBL-EBI SureChEMBL & NIH PubChem | `$0.00005` + `$0.004/patent` |
| `us_federal_register` | `autotroph/us-federal-register-normalizer` | NARA Federal Register API v1 | `$0.00005` + `$0.004/doc` |

*Staged Wave 2 tools (auto-enabled at `2026-11-27T07:00Z`): Multi-ATS Jobs (`ats-jobs-scraper-api`), arXiv/PubMed/OpenAlex (`arxiv-pubmed-openalex-normalizer`), Domain RDAP/DNS/TLS (`domain-rdap-dns-tls-normalizer`), OFAC/UN Sanctions & GLEIF LEI (`sanctions-aml-gleif-normalizer`), and US Healthcare NPI/OIG/Medicare (`npi-oig-medicare-compliance-normalizer`).*
