# Openbooks MCP

> Openbooks MCP is an open-source MCP server for accounting and tax. Verifies bank statements, payment exports and tax files, returning balanced JSON. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, Self-hosted
- **Website:** https://openbooks.lumeo.co.in/docs/mcp
- **Repository:** https://github.com/sagexd08/openbooks/tree/HEAD/packages/js/cli
- **MCP Registry name:** io.github.Sagexd08/openbooks-mcp
- **Categories:** [accounting and tax](https://ai-powered.com/categories/accounting-and-tax)
- **Listing updated:** 2026-11-27

## About

Openbooks reads a financial file and only releases its output when the file's own arithmetic balances. Otherwise it returns a typed refusal instead of a result, so downstream code never works from numbers that fail to reconcile.

The same engine is reachable from a command line, from Node.js code via subpath modules for statements, gateways, tax and diagnostics, and through an MCP server that AI assistants can call over stdio. Each file yields one JSON document, and the CLI exits with distinct codes for released, refused, usage and engine errors.

It suits developers building bookkeeping or reconciliation pipelines and teams that want an automated check on bank statements before the numbers feed other systems. Scanned documents need OCR and an optional local model, and some gateway and tax layouts are marked experimental.

## Features

- **Balance-checked output:** A file is released only when its own arithmetic reconciles, otherwise a typed refusal is returned.
- **Command line interface:** Runs statements, gateway exports and tax documents with flags for currency, opening balance and date order.
- **Node.js library:** Exports runFile, runFiles and runJobs for each area, plus a doctor function for environment checks.
- **MCP server for agents:** Runs over stdio so AI clients such as Claude Code or Cursor can call it as a tool.
- **Multiple file formats:** Reads CSV, OFX, MT940, CAMT.053 XML and text-layer PDFs, with OCR for scans.

## Good for

- Check a bank statement's totals before importing it into a ledger
- Automate reconciliation runs in a batch pipeline with JSON output
- Let an AI assistant verify a statement file before summarising it
- Screen payment gateway exports to accept only supported layouts

## Install

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

```sh
claude mcp add openbooks-mcp -- npx -y @lumeo_hq/openbooks
```

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": {
    "openbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@lumeo_hq/openbooks"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

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

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

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

```json
{
  "mcpServers": {
    "openbooks-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lumeo_hq/openbooks"
      ]
    }
  }
}
```

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

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

```sh
codex mcp add openbooks-mcp -- npx -y @lumeo_hq/openbooks
```

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

```toml
[mcp_servers.openbooks-mcp]
command = "npx"
args = ["-y", "@lumeo_hq/openbooks"]
```

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

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

Or run: gemini mcp add -s user openbooks-mcp npx -- -y @lumeo_hq/openbooks

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

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

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

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

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

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": {
    "openbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@lumeo_hq/openbooks"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "openbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@lumeo_hq/openbooks"
      ]
    }
  }
}
```

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": {
    "openbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@lumeo_hq/openbooks"
      ]
    }
  }
}
```

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

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

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

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

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

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

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

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

## FAQ

### What does the tool return when a file does not balance?

It returns a typed refusal rather than a result, and the CLI exits with code 1.

### What do I need to install Openbooks MCP?

Node.js 20 or newer and Python 3.11 or newer for the engine, which the install hook provisions.

### Which file formats are supported?

CSV, OFX, MT940 and text-layer PDFs for statements, plus CAMT.053 XML. Scans and images need OCR.

### Is Openbooks MCP ready for production use?

The package is pre-release and tested only on synthetic fixtures.

### Is Openbooks MCP free?

Yes. Openbooks MCP is open source, so you can use and self-host it for free.

### How do I add Openbooks MCP to Claude Code?

Run this command in your terminal: claude mcp add openbooks-mcp -- npx -y @lumeo_hq/openbooks

### What are the best alternatives to Openbooks MCP?

The closest alternatives to Openbooks MCP are UK Bank Statement PDF to CSV, Bookie, Ledger, Cash Page and Exact Online.

## Where this comes from

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

## Alternatives

- [UK Bank Statement PDF to CSV](https://ai-powered.com/mcp/uk-bank-statement-pdf-to-csv): UK Bank Statement PDF to CSV is a paid MCP server for files and documents.
- [Bookie](https://ai-powered.com/mcp/bookie): Bookie is an open-source MCP server for accounting and tax.
- [Ledger](https://ai-powered.com/mcp/ledger): Ledger is an open-source MCP server for accounting and tax.
- [Cash Page](https://ai-powered.com/mcp/cash-page): Cash Page is a freemium MCP server for accounting and tax.
- [Exact Online](https://ai-powered.com/mcp/exact-online-2): Exact Online is a freemium MCP server for accounting and tax.
- [LedgerHQ](https://ai-powered.com/mcp/ledgerhq): LedgerHQ is an MCP server for accounting and tax.
- [QuickBooks Online](https://ai-powered.com/mcp/quickbooks-online-3): QuickBooks Online is an open-source MCP server for finance and payments.
- [Billy MCP](https://ai-powered.com/mcp/billy-mcp): Billy MCP is an open-source MCP server for accounting and tax.

---
Source: https://ai-powered.com/mcp/openbooks-mcp
