# Parse bank statements in Claude or Cursor with MCP

The hosted MCP server exposes statement conversion as tools that an MCP client can call. It is the same conversion as the REST API, available on every plan: a free account includes 30 API pages a month, the Pro plan 500 pages a month and the Business plan 5,000 pages a month.

| | |
| --- | --- |
| Endpoint | `https://www.extractivio.com/api/mcp` |
| Transport | Streamable HTTP, stateless. `POST` only. `GET` and `DELETE` answer 405. |
| Authentication | `Authorization: Bearer ex_your_key` on every request, including `initialize` and `tools/list` |
| Tools | `convert_statement`, `validate_ofx`, `list_conversions`, `get_usage` |

Clients that can only authenticate through an OAuth sign-in screen cannot connect yet. Clients that let you set a header can. Full tool arguments are in [Hosted MCP server](https://www.extractivio.com/docs/mcp.md). How an agent should check the result is in the [Guide for AI agents](https://www.extractivio.com/docs/agent-guide.md).

If the file must not leave the device, use the converter at https://www.extractivio.com/en instead. Text-based PDFs are read in the browser and are not uploaded. A local MCP server is not published.

## 1. Get an API key

1. Sign in at https://www.extractivio.com/login.
2. Open https://www.extractivio.com/account and click "Create API key".
3. Copy the key. It starts with `ex_` and is shown only once.

```bash
export EXTRACTIVIO_KEY="ex_your_key"
```

Do not put the key in a public repository or in a prompt that is logged. A missing or revoked key is HTTP 401.

## 2. Cursor

Cursor, VS Code, Windsurf and other clients that read an `mcp.json` can use this shape. Replace `ex_your_key` with your key, or with your client's environment-variable substitution if it has one. Follow the client's own docs for the file path (user-level or project).

```json
{
  "mcpServers": {
    "extractivio": {
      "url": "https://www.extractivio.com/api/mcp",
      "headers": { "Authorization": "Bearer ex_your_key" }
    }
  }
}
```

After reload, ask the agent to convert a statement that is already at a public `https` URL, and to report `balance_check` and `warnings` before summarizing spend. Prefer `file_url` over `file_base64`: base64 puts the whole PDF in the model's context.

```json
{
  "file_url": "https://example.com/statement.pdf",
  "date_order": "mdy"
}
```

Pass `date_order` as `mdy` for United States statements and `dmy` elsewhere when you know the country. `format` defaults to `json`.

## 3. Claude Code

```bash
claude mcp add --transport http extractivio https://www.extractivio.com/api/mcp \
  --header "Authorization: Bearer $EXTRACTIVIO_KEY"
```

Then ask Claude Code to call `convert_statement` on a public PDF URL and to compare `balance_check.reconciled` with `balance_check.checkable`.

## 4. What to check on the result

With `format` omitted or set to `json`, `convert_statement` returns a one-line summary and `structuredContent` in the same shape as the REST API.

1. `amount` is negative for money out and positive for money in, including on credit cards.
2. `balance_check.reconciled` should equal `balance_check.checkable`. If it is lower, some rows are probably wrong. If `checkable` is 0, there was no running balance to prove against.
3. `warnings` should be empty, or each warning should be explained. See [Response and data model](https://www.extractivio.com/docs/response.md).
4. Converted data should be reviewed by a person before it is used for accounting or tax.

`get_usage` takes no arguments and uses no quota. `validate_ofx` checks the text of an OFX, QFX or QBO file and uses no quota. `list_conversions` only sees results stored with `store: true` or Business email imports.

Tool problems come back as a normal tool result with `isError: true` and text of the form `code: message` (the same codes as the [REST errors](https://www.extractivio.com/docs/errors.md), for example `scanned_pdf`). A missing or revoked key is HTTP 401. `format_unavailable` is HTTP 403 and `quota_exceeded` is HTTP 429. Both are JSON-RPC errors, not tool results, and the message matches the REST API, including the link to /pricing. `get_usage` does not spend pages.

Limits that apply here: 15 MB file, 60 seconds processing, 60 requests a minute per account (REST and MCP combined), monthly page quota. Text-based PDFs only.

## 5. Connectivity check

`get_usage` uses no page quota:

```bash
curl -X POST "https://www.extractivio.com/api/mcp" \
  -H "Authorization: Bearer $EXTRACTIVIO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_usage","arguments":{}}}'
```

## Next

- [Hosted MCP server](https://www.extractivio.com/docs/mcp.md)
- [Guide for AI agents](https://www.extractivio.com/docs/agent-guide.md)
- [Bank statement PDF to JSON API in 5 minutes](https://www.extractivio.com/docs/tutorial-api.md)
- [Function calling without MCP](https://www.extractivio.com/docs/function-calling.md)
