Ledger

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v0.22.5更新于 Oct 24, 2026

Post invoices, expenses, deposits and fixed assets into one derived general ledger.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

从配套记账服务器的本地数据推导复式总账,验证试算平衡并按期间出具报表。

可以做什么
  • 按币种构建和删除账务期间,受免费额度限制
  • 核对试算平衡,并按科目、来源服务器、单据或日期筛选账目明细
  • 结账并生成快照,列出未入账或不一致的项目
  • 将明细导出为 RFC 4180 CSV,并按科目出具发生额与余额报表
  • 查询授权状态并离线激活 Pro 密钥
适用场景
适合已经运行配套记账服务器(发票、账单文档、押金、费用、银行对账单、固定资产登记)的用户,希望助手据此推导出可核对的总账、验证借贷是否平衡,并完成月度结账或报表。
运行要求
以仅限桌面的 stdio 本地进程运行;由于 npm 包尚未发布,需通过 .mcpb 安装包或克隆后自行构建安装。读取本地 mcp-servers 数据目录下配套服务器的数据。可选 Pro 授权密钥通过 MCP_LICENSE_KEY 提供。无需联网。
安装前请注意
只有配合它所读取的配套记账服务器才有用,未安装的数据源会直接缺席。它会写入自己的期间与结账文件,并可删除已构建的期间。月度结账、CSV 导出和报表属于 Pro 功能,需一次性付费授权;免费版每个自然月仅可构建三个期间。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ledger,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-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):

json
{  "mcpServers": {    "cash-book": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-cash-book"]    }  }}

Claude Code:

sh
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

toolwhat it does
ledger_buildDerives the ledger for one period in one currency and registers the period
period_deleteRemoves one built period from the register and gives its free-tier slot back
trial_balanceTotals the debits and the credits and proves they are equal to the minor unit
ledger_linesLists the lines, filtered by account, source server, source document or date
month_closeLists what the month leaves unposted or inconsistent, then closes it with a snapshot
ledger_export_csvReturns the lines as RFC 4180 CSV, one row per leg
ledger_reportMovement and balance per account, with the purchase commitments and the exceptions
license_statusFree or Pro, and where to upgrade
license_activateActivates 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

FreePro
trial_balanceunlimitedunlimited
ledger_linesunlimitedunlimited
ledger_build3 periods a calendar monthunlimited
Rebuilding a period already builtfreefree
Rebuilding one with nothing changedrefused, names the rowrefused, names the row
period_deleteunlimitedunlimited
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:

来源:servers/cash-book/README.md,提交 1bd9d69

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.22.5最新Oct 14, 2026
  2. v0.21.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分