Trial Balance

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

Prove your books balance: every debit and credit for a month, to the minor unit.

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

概览

AI 生成的概览

本地复式记账现金账簿,从配套记账服务器推导借贷分录,并验证试算平衡表合计为零。

可以做什么
构建、删除和结账会计期间,月结快照仅限 Pro。汇总借方与贷方,验证试算平衡精确到最小货币单位。按科目、来源服务器、来源单据或日期筛选列出分录行。将分录导出为 RFC 4180 CSV,并生成按科目的发生额与余额报告(仅 Pro)。查询授权状态并离线激活 Pro 密钥。
适用场景
当你已经运行配套的记账服务器(发票、账单文档、押金、费用、银行对账单、资产登记)并希望助手据此汇总并核对月度复式账簿时适用。单独使用没有意义,因为它只读取这些配套数据存储。
运行要求
作为本地进程在用户机器上运行,仅限桌面端;npm 包尚未发布,目前需使用 .mcpb 安装包或克隆后自行构建。读取本地 mcp-servers 数据目录下配套服务器的数据。可选的 Pro 授权密钥通过 MCP_LICENSE_KEY 环境变量提供,并离线验证。
安装前请注意
Pro 功能(月结、CSV 导出、报告、无限次构建期间)需要一次性付费授权;免费版每个自然月仅允许构建三个期间。它只写入自己的期间与结账文件,不会回写源账簿。授权密钥属于机密,应避免放入共享配置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Trial Balance,将其添加到工作区。
  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,提交 6535b33

工具

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

版本历史

3
  1. v0.22.6最新Oct 14, 2026
  2. v0.22.3Sep 23, 2026
  3. v0.21.0Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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