About cash-book
An MCP server that derives a double-entry ledger from invoices, expenses, bank imports, deposits, and asset records. It is for bookkeepers who need traceable entries and a trial balance, without changing the source books.
Key features
- 01Derive period ledger entries
- 02Trace lines to source documents
- 03Verify trial balance equality
- 04Filter ledger lines
- 05Close months with snapshots
- 06Export CSV reports
Use cases
- 01Check that debits and credits balance
- 02Trace a ledger amount to its document
- 03Review period movements and exceptions
MCP support
Exposes ledger-building, balance-checking, reporting, and export tools to MCP clients. It reads data from sibling bookkeeping servers and does not write back to them.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.zovo.one/mcp/cash-bookclaude mcp add --transport http theluckystrike-cash-book https://mcp.zovo.one/mcp/cash-book{"mcpServers":{"theluckystrike-cash-book":{"type":"http","url":"https://mcp.zovo.one/mcp/cash-book"}}}Open in Cursor{"servers":{"theluckystrike-cash-book":{"type":"http","url":"https://mcp.zovo.one/mcp/cash-book"}}}Open in VS Code{"mcpServers":{"theluckystrike-cash-book":{"type":"http","url":"https://mcp.zovo.one/mcp/cash-book"}}}{"mcpServers":{"theluckystrike-cash-book":{"serverUrl":"https://mcp.zovo.one/mcp/cash-book"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://mcp.zovo.one/mcp/cash-bookAuth requiredTools
9| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | Last day of the period, YYYY-MM-DD, inclusive |
| from | string | Yes | First day of the period, YYYY-MM-DD |
| currency | string | No | Needed when the period holds documents in more than one currency. Currencies are never added together |
Details
From the project READMEmcp-cash-book
In the official MCP Registry (io.github.theluckystrike/cash-book).
One double-entry ledger over the books you already keep. It reads your invoices, credit notes, purchase orders, deposits, expenses, bank import and fixed asset register, and derives a debit and a credit for every movement in a period: revenue and VAT output from the invoices, receivables and the payments that clear them, deposits held as the liability they are, expenses by category with the VAT taken out of the gross, fixed assets and their monthly depreciation. It proves the trial balance sums to zero to the minor unit, and when it does not it names the document whose own figures do not add up. It writes nothing back into any of those books, and there is no way to type an entry into it: every line carries the server, the document id and the date it came from, so any figure can be walked back to the page it was printed on.
npm publish for @theluckystrike/mcp-cash-book is pending, so npx -y @theluckystrike/mcp-cash-book returns 404 today. Until then, the .mcpb one-click bundle or a clone+build is the working path.
Install
Claude Desktop, ~/Library/Application Support/Claude/claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"cash-book": {
"command": "npx",
"args": ["-y", "@theluckystrike/mcp-cash-book"]
}
}
}
Claude Code:
claude mcp add cash-book -- npx -y @theluckystrike/mcp-cash-book
Cursor: ~/.cursor/mcp.json (or .cursor/mcp.json in a project), same entry as Claude Desktop.
This server is only useful next to the servers that own the books: mcp-invoice, mcp-billing-docs, mcp-deposits, mcp-expense-tracker, mcp-bank-statement and mcp-asset-register. Every one of them is optional. A store that is not installed is simply absent from the ledger; a store that is installed and unreadable is reported as unreadable, and never read as an empty one.
Tools
| tool | what it does |
|---|---|
ledger_build | Derives the ledger for one period in one currency and registers the period |
period_delete | Removes one built period from the register and gives its free-tier slot back |
trial_balance | Totals the debits and the credits and proves they are equal to the minor unit |
ledger_lines | Lists the lines, filtered by account, source server, source document or date |
month_close | Lists what the month leaves unposted or inconsistent, then closes it with a snapshot |
ledger_export_csv | Returns the lines as RFC 4180 CSV, one row per leg |
ledger_report | Movement and balance per account, with the purchase commitments and the exceptions |
license_status | Free or Pro, and where to upgrade |
license_activate | Activates a Pro key, verified offline |
Accounts: cash, receivables, revenue, vat_output, vat_input, expenses:<category>, deposits_held, fixed_assets, accumulated_depreciation, depreciation_expense, and purchase_commitments as a memo that is never posted.
Free vs Pro
| Free | Pro | |
|---|---|---|
trial_balance | unlimited | unlimited |
ledger_lines | unlimited | unlimited |
ledger_build | 3 periods a calendar month | unlimited |
| Rebuilding a period already built | free | free |
| Rebuilding one with nothing changed | refused, names the row | refused, names the row |
period_delete | unlimited | unlimited |
month_close | - | yes |
ledger_export_csv | - | yes |
ledger_report | - | yes |
The trial balance is free because it is the only question this server exists to answer. A bookkeeper who cannot check that the books add up has no reason to trust anything else here.
ledger_lines already returns every field ledger_export_csv does, bank_ref included: the export is a formatting convenience, an RFC 4180 file with those same fields as columns, not new data. Round 29 (data/user_value_r29.json, prompt 6) measured a model take the Pro refusal on ledger_export_csv correctly, then hand-build a substitute CSV from ledger_lines and drop bank_ref anyway. The gate text now says this plainly, so a client relays ledger_lines instead of reassembling one.
Get Pro: https://mcp.zovo.one/buy/cash-book (one-time, lifetime, verified offline).
The measured insight
On the worked month in test/_client.mjs, four of the five bank rows are the same money as a document that was already posted: 1,375,300 of the 1,380,300 minor units of cash movement, 99.6 percent, appear in both books. Posting the bank import as well as the documents, which is the obvious way to build a cash book and the way most spreadsheets do it, moves the cash balance from -10,543.00 to -21,111.00 EUR. It does not look wrong. Every line is individually plausible, the account is off by almost exactly a factor of two, and the trial balance still comes to zero, because each duplicated receipt brought its own contra with it.
So the bank import posts nothing here. It is matched to the posted cash movements as evidence, and the leftovers are the whole point: on that month exactly 7,500 minor units of the bank total, one unexplained withdrawal, is information the documents did not already have. That is the 0.4 percent worth importing a statement for, and it is the part a duplicate-heavy ledger buries.
Privacy
All data stays on your machine. The ledger is derived on each call from the sibling servers' own data directories under ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/, and this server writes only its own cash-book/periods.json and cash-book/closes.json. There is no network call anywhere in src, and no telemetry. License keys are verified offline.
Built by theluckystrike. https://github.com/theluckystrike
Use these docs as an MCP server
Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:
- Docs MCP URL: https://gitmcp.io/theluckystrike/mcp-cash-book
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.