MainBook Bank Statement Converter

by Unknown

Not rated
Website

About

Convert PDF bank statements to checked Excel, CSV, or JSON with balance validation.

Details

Author
Unknown
Categories
Finance, Other

Convert PDF bank statements to checked Excel, CSV, or JSON with balance validation.

MCP · Claude, Claude Code, Cursor, Codex

Convert ~/Downloads/march-statement.pdf and save the Excel next to it.

mainbook -convert_bank_statement(MCP)(path: "~/Downloads/march-statement.pdf", output: "xlsx")

Saved to ~/Downloads/march-statement.xlsx

Done — 63 transactions. Opening 4,127.50 and closing 3,881.05 both match the statement, and nothing was flagged.

Start the browser-assisted terminal sign-in, then add a key-free client config and name only the folders the server may use.

Run this command once before adding MainBook to a client.

The command opens MainBook in your browser, shows the same short code in the terminal and browser, and waits for your approval. The code is valid for ten minutes. It stores a revokable credential locally: in the OS keyring when the optional keyring extra is installed, otherwise in a private file. Signing in again revokes and replaces the previous credential.

- mainbook-mcp auth statuschecks whether the stored credential is valid on the server without spending page credits.
- mainbook-mcp auth logoutrevokes it on the server first, then deletes the local copy.

After signing in, add one of these blocks. No API key is copied into the client configuration.

Claude Desktop · Claude Code · Cursor · JSON

{ "mcpServers": { "mainbook": { "command": "uvx", "args": ["mainbook-mcp", "~/Downloads", "~/Desktop", "~/Documents"] } } }
[mcp_servers.mainbook] command = "uvx" args = ["mainbook-mcp", "~/Downloads", "~/Desktop", "~/Documents"]

curl -LsSfhttps://astral.sh/uv/install.sh| sh

- Client locationsClaude Desktop: Settings → Developer → Edit Config. The same JSON works in Claude Code and Cursor.
- Folder boundaryPass folders inargs, or setMAINBOOK_ALLOWED_DIRS. In that environment variable, separate paths with a colon (:) on macOS/Linux and a semicolon (;) on Windows.
- RuntimePython 3.11+;uvxfetches the package without widening the folder boundary.
- Pip fallbackUsemainbook-mcpas the command after installing with pip; upgrade the package with-U.

Use a manual key for scripts, CI, and headless use.MAINBOOK_API_KEYtakes precedence over a stored terminal sign-in. Create and revoke manual keys on theDeveloper API page.

export MAINBOOK_API_KEY="mb_live_REPLACE_ME"

Or connect the hosted server with your account

Chat clients take one URL and send you through a browser sign-in. Nothing is copied into the client configuration, and you can revoke the connection from your account.

The server answers an anonymous tool list, then asks for a sign-in the moment a tool is called. You approve the request on a MainBook consent screen that names the client and the exact permissions it asked for, and you can revoke it later under Connected apps on theDeveloper page. Hosted and local use share one page-credit balance.

The hosted server publishes four of the five tools:output_folderis local-only, because a remote server has no folder on your machine to write into. Ask for JSON, or take the download link the conversion returns.

Claude · choose the authentication mode yourself

In Claude for web or desktop, open Settings, then Connectors, then Add custom connector, paste the URL, and on the next screen pickRequired when the server asks. Claude pre-selectsNone (Detected)because our tool list stays open for catalogue crawlers; left on that setting the connector never signs in and every tool call comes back unauthorised. Leave the OAuth client on Anthropic's hosted client metadata.

Cursor reads a fixed OAuth client id frommcp.json, so there is nothing to type by hand. There is no client secret: this is a public client.

{ "mcpServers": { "mainbook": { "url": "https://mcp.mainbook.ai/mcp", "auth": { "CLIENT_ID": "mainbook-cursor", "scopes": ["mainbook:read", "mainbook:convert"] } } } }

Inspector defaults to registering itself on the fly, which MainBook does not offer. Enter the client id once in its authentication settings and leave the client secret empty:mainbook-mcp-inspector.

API keys keep working exactly as before. Scripts, CI and any headless client can still sendmb_live_keys to the same URL as a bearer token — signing in with an account is an addition, not a replacement.

The palette shows the exact capability; the transcript below shows how a person asks for it.

mainbook · five tools and example requests

5 explicit actions · no account mutation

- convert_bank_statementUploads one PDF, creates and starts a conversion job, polls for up to 30–900 seconds, and returns reviewed JSON inline or writes XLSX/CSV to disk. Spends page credits
- get_conversionChecks a job after a timeout, returning JSON inline or writing XLSX/CSV to a chosen local destination. No credits · may write a file
- list_conversionsReturns one cursor page of account jobs together with its next_cursor value. Read-only account access
- get_balanceReturns total, reserved and available credits, all measured in PDF pages. Read-only account access
- output_folderReads or changes the default local folder where conversion results are written. No credits · local preference

convert_bank_statementalone creates a job and spends page credits. No tool buys credits, handles payments, deletes jobs or changes account data.

- Convert ~/Downloads/march-statement.pdf and save the Excel next to it. usesconvert_bank_statement
- How many pages of credit do I have left? usesget_balance
- The last conversion timed out — check job 8f14e45f… and give me the CSV. usesget_conversion
- List my recent conversions and tell me which came back with warnings. useslist_conversions

The first available destination wins. The server never replaces a file that is already there.

Same base name + requested extension, next to PDF

get_conversionneeds an explicit or remembered folder; it never guesses the original PDF location.

Remembered in~/.mainbook/preferences.jsonand shared by local clients; a missing or disallowed folder is ignored and the fallback is reported.

Local boundary · shared credits · async work

One operating view covers what the server can touch, what a conversion spends, how long the client waits, and the public contract underneath.

mainbook-mcp · local boundary and public API

Terminal sign-in stores it locally. Revoke it withauth logoutor in the app; the server has no payment or deletion tool.

Listed folders are readable and writable. Anything outside them is refused by the local stdio server.

Packages are bought inthe web app. The MCP server cannot purchase credits.

No average duration is published. If the client times out, the server job continues; callget_conversionwith the job ID or raise the client's tool timeout.

Under the local server sits the public REST API. Use it directly when you are building your own integration instead of driving an assistant.

It works with Claude Desktop, Claude Code, Cursor and Codex using the configuration blocks above.

uv/uvx fetches and runs the published mainbook-mcp package, or you can run pip install mainbook-mcp. Python 3.11 or newer is required.

No. It can only read or write inside the folders passed as arguments or set through MAINBOOK_ALLOWED_DIRS; anything outside them is refused.

convert_bank_statement spends page credits from your account; there is no tool for buying credits, payments or deleting anything.

What happens if my client gives up waiting?

The job keeps running server-side; call get_conversion with the job ID to pick it up.

Is there a hosted server I can point at instead?

Turn PDF bank statements into checked Excel, CSV or JSON with balance validation.

Universal document generation and conversion MCP. Generate PDF/DOCX/XLSX from templates+JSON (invoices, contracts, reports), batch generation, 100+ format conversions.

A server for reading and converting documents between PDF, DOCX, and Markdown formats using marker-pdf and pandoc.

Read, analyze, and manipulate data in Excel (XLSX, XLS) and CSV files with advanced filtering and analytics.

MCP-enabled invoicing platform for invoice creation, PDF export, and billing operations.

Convert, compress, merge and OCR PDFs and 100+ file formats from any AI agent — 126 tools via the GuruPDF API.

Create professional PDF invoices using natural language.

Converts LaTeX source code into professionally formatted PDF documents.

Convert Markdown documents to PDF files with syntax highlighting, custom styling, and optional watermarking.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.