Skip to main content
Glama
Arche MCP server

Arche MCP server

README.md
# Arche MCP server

**SEC fundamentals your AI can cite and prove.**

Arche is a hosted MCP server for financial statements from SEC filings: 17,000+ companies since 2009. Connect Claude, Cursor or any MCP client, ask about a company, and every figure comes back with the filing it came from.

- **Cited:** each value carries its filing's accession number and XBRL concept, and says whether it was reported or derived.
- **As filed:** restatements are kept, not overwritten. Ask what a company had reported as of any date, before later amendments.
- **Provable:** answers carry a replay token. Anyone can re-run it at [arche.fi/verify](https://arche.fi/verify?utm_source=github&utm_medium=arche-mcp), with no account or key, and see whether it still matches.

This repository holds client configurations and examples. The server is hosted at `https://api.arche.fi/mcp`; there is nothing to install or run.

## Connect

There are two ways to authenticate:

- **Sign in (OAuth).** Clients that support remote MCP sign-in, such as Claude and ChatGPT connectors and Cursor, need only the server URL. The client opens an Arche sign-in page; there is no key to copy or store. Signing in without an Arche account creates one on the Free plan.
- **API key.** Any client can send a key in the `X-Api-Key` header. Sign up at [app.arche.fi](https://app.arche.fi/sign-up), or let an agent [open a Free account for its owner](https://docs.arche.fi/agent-signup) with a single API call.

Either way, your plan, coverage and rate limits are the same. The Free plan is any 25 companies you choose, no card, no expiry, for personal use and evaluation. If a request carries both a key and a sign-in, the key is used.

### Sign in with OAuth

Add `https://api.arche.fi/mcp` as a remote MCP server with no headers, then sign in when the client asks.

**Claude Code**

```bash
claude mcp add --transport http arche https://api.arche.fi/mcp
```

Then run `/mcp` in Claude Code, choose `arche` and sign in.

**Claude and ChatGPT**: add `https://api.arche.fi/mcp` as a custom connector and sign in when prompted.

**Gemini CLI**: `gemini extensions install https://github.com/arche-mcp-api/arche-mcp`, then run `/mcp auth arche` and sign in.

**Cursor**: `~/.cursor/mcp.json` ([`configs/cursor-oauth.json`](configs/cursor-oauth.json))

```json
{
  "mcpServers": {
    "arche": {
      "url": "https://api.arche.fi/mcp"
    }
  }
}
```

### Connect with an API key

Use the config below that matches your client, replacing `YOUR_API_KEY`.

**Claude Code** ([`configs/claude-code.sh`](configs/claude-code.sh))

```bash
claude mcp add --transport http \
  arche https://api.arche.fi/mcp \
  --header "X-Api-Key: $ARCHE_API_KEY"
```

**Cursor**: `~/.cursor/mcp.json` ([`configs/cursor.json`](configs/cursor.json))

```json
{
  "mcpServers": {
    "arche": {
      "url": "https://api.arche.fi/mcp",
      "headers": { "X-Api-Key": "YOUR_API_KEY" }
    }
  }
}
```

**Claude Desktop**: `claude_desktop_config.json` ([`configs/claude-desktop.json`](configs/claude-desktop.json)). Uses [`mcp-remote`](https://www.npmjs.com/package/mcp-remote), so Node.js must be installed.

```json
{
  "mcpServers": {
    "arche": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://api.arche.fi/mcp",
        "--header",
        "X-Api-Key:${ARCHE_API_KEY}"
      ],
      "env": { "ARCHE_API_KEY": "YOUR_API_KEY" }
    }
  }
}
```

**VS Code**: `.vscode/mcp.json` ([`configs/vscode.json`](configs/vscode.json))

```json
{
  "servers": {
    "arche": {
      "type": "http",
      "url": "https://api.arche.fi/mcp",
      "headers": { "X-Api-Key": "YOUR_API_KEY" }
    }
  }
}
```

**Windsurf**: `~/.codeium/windsurf/mcp_config.json` ([`configs/windsurf.json`](configs/windsurf.json))

```json
{
  "mcpServers": {
    "arche": {
      "serverUrl": "https://api.arche.fi/mcp",
      "headers": { "X-Api-Key": "YOUR_API_KEY" }
    }
  }
}
```

**Any other client, or plain HTTP**: the server speaks MCP over streamable HTTP. It accepts an API key in the `X-Api-Key` header, or an OAuth access token as `Authorization: Bearer`; a request with neither is answered `401` with the OAuth metadata a client needs to sign in. [`examples/http.sh`](examples/http.sh) calls a tool with `curl` and a key.

## Try it

Once connected, ask your agent:

| Ask | You get back | Plan |
| --- | --- | --- |
| What revenue did Apple report last quarter? | The figure as filed, with the filing's accession number and the XBRL concept it came from. | Free |
| What had Apple reported for net income as of March 1, 2023? | Only what was filed by that date, as it read then, before any later amendment. | Free |
| Did Apple restate anything this year, and what changed? | Each line an amendment changed, with the old value, the new value and the filing behind each. | Free |
| Can you prove the figure you gave me last month? | A re-run of the earlier answer from its replay token, and whether it still matches. | Free |
| Which quarterly reports has Apple filed since 2024? | Each filing with its date, period and accession number. | Free |
| What is Microsoft's operating margin over the last twelve months? | The ratio, worked from the four quarters behind it and tied back to the filed statements. | Developer and up |

## Tools

85 tools, 67 of them on the Free plan. The ones most answers start from:

| Tool | What it does |
| --- | --- |
| `companies_resolve` | Resolves a ticker to its SEC CIK, as the ticker was assigned on a given date. Other tools take the ticker directly. |
| `filings_list` | Lists a company's EDGAR filings, with amendments. |
| `statements_normalized` | A normalized income statement, balance sheet or cash flow statement, with each filing's version of it. |
| `facts_as_reported` | Any XBRL value a company reported, exactly as each filing reported it. |
| `financials_get_as_of_snapshot` | The statements as they stood at a date or timestamp, with a snapshot hash and a replay token. |
| `edgar_statements_restatements_delta` | What changed in a statement between two filings: old value, new value and difference for each metric. |
| `edgar_companies_filings_statements_metrics_provenance` | Where one metric in one filing's statement came from. |
| `replay_verify` | Re-runs the query behind a replay token and says whether it still matches. |

The full list, with the plan each tool needs, is in the [MCP docs](https://docs.arche.fi/mcp) and the live manifest at [`api.arche.fi/mcp/manifest`](https://api.arche.fi/mcp/manifest).

## Plans and rate limits

| Plan | MCP calls per minute |
| --- | --- |
| Free | 10 |
| Developer | 150 |
| Growth | 600 |
| Scale | 1,500 |
| Enterprise | Negotiated |

These are the MCP limits from the [manifest](https://api.arche.fi/mcp/manifest); REST read limits are listed separately. See [arche.fi/pricing](https://arche.fi/pricing?utm_source=github&utm_medium=arche-mcp) for what each plan includes.

## Keep your key out of git

Signing in with OAuth stores no key in your config at all. The key-based configs here have a `YOUR_API_KEY` placeholder; put your real key in your client's config or an environment variable (`ARCHE_API_KEY`), never in a file you commit. If a key is ever exposed, replace it.

## Links

- [MCP quickstart](https://docs.arche.fi/mcp/quickstart)
- [MCP docs](https://docs.arche.fi/mcp)
- [arche.fi/mcp](https://arche.fi/mcp?utm_source=github&utm_medium=arche-mcp)
- [REST API](https://arche.fi/api?utm_source=github&utm_medium=arche-mcp)

## License

The configurations and examples in this repository are MIT licensed. See [LICENSE](LICENSE). Use of the Arche service is governed by the [terms at arche.fi](https://arche.fi/legal/terms).