# MainBook Bank Statement Converter

> MainBook Bank Statement Converter is an MCP server for files and documents. Convert PDF bank statements to Excel, CSV or JSON with balance checks. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** CLI, API
- **Website:** https://mainbook.ai/mcp
- **Repository:** https://github.com/human-beyond/mainbook-mcp
- **License:** MIT
- **MCP Registry name:** ai.mainbook/bank-statement-converter
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-23

## About

Built for one job rather than general accounting: a PDF statement goes to MainBook, which extracts each transaction, normalises dates to YYYY-MM-DD, keeps amounts exact and re-adds the statement so opening balance plus credits minus debits must equal the closing balance. Rows that do not fit are flagged instead of passed on quietly. In the sample session, 63 transactions across 4 pages used 4 credits.

Five tools exist: convert_bank_statement, get_balance, list_conversions, get_conversion and output_folder. Only conversion spends page credits. It does not connect to bank accounts, is not an Open Banking API and reads only statement files you already have.

Run it locally with uvx after a browser sign-in (the credential goes to the OS keyring or a private file), or connect the hosted endpoint at mcp.mainbook.ai, which offers four of the five tools because output_folder is local only. Local use is limited to the folders you pass as arguments or set in MAINBOOK_ALLOWED_DIRS.

## Features

- **Balance validation:** Opening balance plus credits minus debits must match the closing balance.
- **Excel, CSV or JSON:** Choose the output format when converting.
- **Folder boundary:** Reads and writes only inside the folders you allow.
- **Local or hosted:** Run the PyPI package over stdio or connect the hosted endpoint.
- **Flagged rows:** Rows that do not fit are flagged rather than silently passed.

## Good for

- Turn a monthly PDF statement into a spreadsheet
- Reconcile statement totals before bookkeeping
- Hand an accountant a checked CSV
- Review past conversions and remaining credits

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http bank-statement-converter https://mcp.mainbook.ai/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "type": "http",
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.mainbook.ai/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "type": "http",
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.mainbook.ai/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add bank-statement-converter --url https://mcp.mainbook.ai/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.bank-statement-converter]
url = "https://mcp.mainbook.ai/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "httpUrl": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http bank-statement-converter https://mcp.mainbook.ai/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "serverUrl": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "type": "streamableHttp",
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.mainbook.ai/mcp
```

Enter a Name (for example "MainBook Bank Statement Converter"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "bank-statement-converter": {
      "type": "http",
      "url": "https://mcp.mainbook.ai/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 5 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `convert_bank_statement`: Converts a PDF bank statement to checked JSON, Excel or CSV.
- `get_balance` (name suggests: reads): Reads the account's page-credit balance.
- `list_conversions` (name suggests: reads): Lists earlier conversions.
- `get_conversion` (name suggests: reads): Retrieves a conversion result and may write a result file.
- `output_folder`: Sets the local output folder preference (local only).

## FAQ

### Does MainBook Bank Statement Converter connect to my bank?

No. It reads statement files you already have, with no banking credentials involved.

### Which tool spends credits?

Only convert_bank_statement spends page credits.

### How do I sign in?

Run uvx mainbook-mcp auth login once; scripts and CI can use MAINBOOK_API_KEY instead.

### What licence is the package?

MIT.

### How do I add MainBook Bank Statement Converter to Claude Code?

Run this command in your terminal: claude mcp add --transport http bank-statement-converter https://mcp.mainbook.ai/mcp

### What are the best alternatives to MainBook Bank Statement Converter?

The closest alternatives to MainBook Bank Statement Converter are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Scholar Sidekick and UltraTransfer.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [UltraTransfer](https://ai-powered.com/mcp/ultratransfer): UltraTransfer is an open-source MCP server for files and documents.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [Base & EVM DeFi Pre-Trade Shield (x402)](https://ai-powered.com/mcp/base-and-evm-defi-pre-trade-shield-x402): Base & EVM DeFi Pre-Trade Shield (x402) is a paid MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/mainbook-bank-statement-converter
