# Local MCP server

The local server is an open-source program that runs on the user's machine and talks to the agent over stdio. It needs no account and no key, uses no quota, and never uploads the file.

Use it when the statement is a file on disk, or when the file must not leave the device.

## Install

```json
{
  "mcpServers": {
    "extractivio": { "command": "npx", "args": ["-y", "@extractivio/mcp-server"] }
  }
}
```

Claude Code: `claude mcp add extractivio -- npx -y @extractivio/mcp-server`

Requires Node.js 18 or later. If the package is not yet on npm, build it from `packages/mcp-server` in the source repository and point the command at `node /path/to/dist/index.js`.

## Tools

| Tool | Arguments | Returns |
| --- | --- | --- |
| `convert_statement` | `path` (local PDF), `format` (`json`, `csv`, `xero`, `ofx`, `qbo`, `qif`), `date_order` (`dmy`, `mdy`) | A summary line, then the transactions in the chosen format. |
| `validate_ofx_file` | `path` (local `.ofx`, `.qfx` or `.qbo`) | One line per statement, then one line per issue. |
| `reconcile_statements` | `path_a`, `path_b` (two local PDFs), `window_days` (default 3) | Matched count, the rows found only in A, the rows found only in B, and the totals. |

Results are text. The JSON format of `convert_statement` contains the same fields as the hosted server's result: `currency`, `balance_check`, `warnings` and `transactions`.

## Differences from the hosted server

| | Local | Hosted |
| --- | --- | --- |
| Input | A file path | A URL or base64 |
| Account | None | Pro or Business key |
| Quota | None | Pages per month |
| File leaves the device | No | Yes |
| Stored results, email imports, usage | No | Yes |
| Reconcile two statements | Yes | No |
| File size limit | 25 MB | 15 MB |

The parser is the same in both.
