# Open Books by Lumeo > Open Books turns bank statements, payment settlements, tax documents and workpapers into verified JSON or a typed refusal. These are the public developer docs and package reference. ## Quick answers - What is Open Books? A verification engine: a financial file is released as JSON only when its own arithmetic proves it; otherwise it returns a typed refusal that names the reason. - Which npm package? `@lumeo_hq/openbooks` (CLI binary `openbooks`, Node 20+). Install: `npm i @lumeo_hq/openbooks`, run: `npx @lumeo_hq/openbooks`. Subpath modules: `@lumeo_hq/openbooks/core`, `/statements`, `/gateways`, `/tax`, `/doctor`, `/mcp`. Commands: `openbooks` (CLI) and `openbooks-mcp` (MCP server). - Which Python package? `openbooks` on PyPI, the engine the npm packages wrap. - Is there an MCP server? Yes: `@lumeo_hq/openbooks` (npm) exposes two tools, `search` (discover operations) and `execute` (run steps), so MCP-compatible agents can verify financial documents. Docs: https://books.openlumeo.com/docs/mcp - Supported inputs: CSV, OFX, QFX, STA, MT940, TXT, CAMT.053 (XML), PDF (native and scanned via OCR), PNG, JPG, XLSX. Limits: 2 GB per document, 64 MB per text file. - Source: https://github.com/Sagexd08/OpenBooks ## Set up an agent - Setup page: https://books.openlumeo.com/get-started - Claude Code: `claude mcp add openbooks -- npx -y -p @lumeo_hq/openbooks openbooks-mcp` - Codex CLI: `codex mcp add openbooks -- npx -y -p @lumeo_hq/openbooks openbooks-mcp` - Any stdio MCP client: command `npx`, args `-y -p @lumeo_hq/openbooks openbooks-mcp`. Add `--root /path/to/files` to let the agent read one local folder, read-only. ## Documentation - [Architecture and verification](https://books.openlumeo.com/llms/architecture.md): Understand parsing providers, Decimal normalization, deterministic verification, typed model cross-checks and the hosted runtime topology. - [Bank statements](https://books.openlumeo.com/llms/bank-statements.md): Integrate bank statement extraction, supply verified opening balances and dates, and use running-balance assertions before posting transactions. - [Build a bank statement importer](https://books.openlumeo.com/llms/build-an-importer.md): Write a Python import job that validates a bank CSV, saves the full engine decision, handles refusals without crashing, and totals debits and credits. - [CAMT.053 field map and parser reference](https://books.openlumeo.com/llms/camt053-mt940-ofx-field-map.md): Map CAMT.053 (ISO 20022) fields to MT940 and OFX, with a minimal valid statement, the command to run it and the conditions that refuse a file. - [CLI commands and exit codes](https://books.openlumeo.com/llms/cli.md): Run bank, settlement and tax files from the openbooks Python or npm CLI with reproducible flags, JSON output, and engine-info and doctor checks. - [How Open Books handles uploaded files](https://books.openlumeo.com/llms/data-handling.md): What the Open Books server code does with uploaded statements, including the per-run temp directory, when files are deleted, and what the logs record. - [Self-hosted HTTP API](https://books.openlumeo.com/llms/engine-api.md): Run the FastAPI engine on a private network, upload batches with multipart forms and consume server-sent release or refusal events. - [Supported formats and layouts](https://books.openlumeo.com/llms/formats.md): Find supported CSV, OFX, MT940, PDF, OCR and Excel formats, with layout identifiers and the requirements for each financial document. - [How Open Books verifies a statement](https://books.openlumeo.com/llms/how-verification-works.md): See the arithmetic checks behind a released bank statement, why a file is refused with BALANCE_MISMATCH, and what a passing check does not prove. - [Open Books Developer Documentation](https://books.openlumeo.com/llms/index.md): Turn financial files into verified JSON with Open Books. Start with a sample, then integrate through the CLI, Python, Node.js, HTTP, or MCP. - [Install Open Books](https://books.openlumeo.com/llms/installation.md): Install the Open Books engine and npm wrappers, add OCR and model support, and verify engine discovery in your environment. - [Connect an AI agent to Open Books MCP](https://books.openlumeo.com/llms/mcp-quickstart-agents.md): Add the Open Books MCP server with npx to Claude Code, Codex, Claude Desktop or Cursor. Agents get proven JSON results or typed refusals for financial files. - [MCP for AI agents](https://books.openlumeo.com/llms/mcp.md): Run the Open Books MCP server with npx to verify bank statements and tax files with an AI agent, then inspect the proof in one batched call. - [Model-assisted document checks](https://books.openlumeo.com/llms/model.md): Optional local model cross-checks PDF and scan words: it predicts column roles and value types, abstains when ambiguous, and records model hashes. - [Node.js and TypeScript](https://books.openlumeo.com/llms/node.md): Run the local Python engine from Node.js with typed results. Handle refusals as results, execution failures as EngineError, and validate each decision. - [Install and run the openbooks npm CLI](https://books.openlumeo.com/llms/npm-cli-quickstart.md): Install @lumeo_hq/openbooks with npm, run a first bank statement check, and use the CLI flags, exit codes and JSON output in scripts. - [JSON output contract](https://books.openlumeo.com/llms/output-contract.md): Integrate the openbooks.v1 release and refusal contract with exact decimal money, source evidence and verification assertions. - [Payment settlements](https://books.openlumeo.com/llms/payment-settlements.md): Check gateway settlement arithmetic and payout totals with Open Books, then reconcile released amounts against bank credits. - [Bank PDFs and OCR](https://books.openlumeo.com/llms/pdf-and-ocr.md): Process text-layer and scanned bank statement PDFs, PNG and JPEG files with OCR settings, the scan extra, and the optional model cross-check. - [Python API](https://books.openlumeo.com/llms/python.md): Process bank statements, settlements and tax files in Python with process(), Params and schema validation, returning an openbooks.v1 document per file. - [Verify your first bank statement](https://books.openlumeo.com/llms/quickstart.md): Run a two-row bank CSV in the browser or locally, resolve a missing opening balance, and trace a released result back to its source. - [Refusals and execution errors](https://books.openlumeo.com/llms/refusals.md): Find all six refusal codes, diagnose failed documents, and design retry and review behavior for reliable financial imports. - [Supported file types and size limits](https://books.openlumeo.com/llms/supported-formats-and-limits.md): Check which bank statement file types Open Books accepts, including CSV, OFX, MT940, PDF, PNG, JPG and XLSX, with exact size limits and text encoding rules. - [Tax documents and workpapers](https://books.openlumeo.com/llms/tax-and-workpapers.md): Process Form 26AS, AIS, FIRA, Form 1099-B and trial balances, with source evidence and document-level reconciliation checks. - [Test a document integration](https://books.openlumeo.com/llms/test-an-integration.md): Verify release and refusal paths, use bundled fixtures for multiple layouts, and check retries and evidence before scheduling imports. - [Troubleshooting](https://books.openlumeo.com/llms/troubleshooting.md): Diagnose missing Python providers, mismatched engine versions, OCR and model setup, file refusals and interrupted streams. - [Use the browser workspace](https://books.openlumeo.com/llms/workspace.md): Upload bank statements, tax documents and payment settlements, review the source checks, and export the verified JSON in Open Books. ## Optional - [Complete documentation as text](https://books.openlumeo.com/llms-full.txt)