ledgerbridge-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use ledgerbridge-mcp to parse and reconcile Chase, Amex, Revolut, Wise, CMB bank CSVs, Alipay (GB18030) CSVs, WeChat Pay CSVs, and pasted PDF statement lines offline using exact BigInt minor-unit arithmetic—deduplicating cross-account transfers within 0-48h, netting partial/full refunds within 30d, verifying SUM(postings) === 0, and exporting lossless OFX 2.2, Beancount, hledger, YNAB, QIF, or Master CSV files.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| reconcile_and_convert_statementsA | Parses one or more bank CSVs (Chase, Amex, Revolut, Wise, CMB), Alipay (GB18030/UTF-8) CSVs, WeChat Pay CSVs, or pasted PDF statement blocks offline, deduplicates 0-48h cross-account transfers, nets 30d partial/full refunds, proves SUM(postings) === 0 in BigInt cents, and exports OFX 2.2, Beancount, hledger, YNAB, QIF, or Master CSV. |
| detect_cross_account_transfers_and_refundsB | Analyzes multi-account bank, Alipay, and WeChat Pay statements offline to identify matched cross-account internal transfers, linked partial/full refunds, and exact BigInt Naive Outflow vs Gross Spend vs True Net Spend. |
| audit_double_entry_ledger_balanceA | Audits Beancount (.bean) or hledger (.journal) double-entry ledger text offline using exact BigInt minor-unit math to verify that every transaction satisfies SUM(postings) === 0 without floating-point drift. |
| generate_deterministic_ofx_fitidsA | Generates deterministic SHA-256 OFX 2.2 FITID keys (LB<22HEX>) for statement rows so QuickBooks, Xero, Wave, and GnuCash remain duplicate-safe across re-imports while preserving distinct IDs for identical same-day purchases. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| yearend-multi-statement-closing | Reconcile Alipay, WeChat Pay, and bank statements into a zero-sum Beancount ledger with transfer & refund netting. |
| audit-beancount-trial-balance | Audit a Beancount or hledger journal for BigInt minor-unit zero-sum compliance. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| LedgerBridge BigInt Reconciliation & Exporter Specification | Reference guide covering GB18030 decoding, 0-48h transfer pairing, 30d partial refund netting, and OFX 2.2 FITID generation. |
TDQS
Scored across 4 tools
Tools 1-3 have clearly distinct, narrow purposes (transfer/refund detection, ledger balance auditing, FITID generation), but tool 4 (reconcile_and_convert_statements) explicitly performs all of those operations plus parsing and export, making it a superset that overlaps every other tool. An agent can reasonably be unsure whether to call the focused tools first or just use the composite one, and whether the focused tools are meant as standalone or internal steps.
All names are snake_case and verb-first (detect_, audit_, generate_, reconcile_), so the convention is predictable. The minor deviation is structural: two names are multi-clause with 'and' conjunctions and qualifiers (detect_cross_account_transfers_and_refunds, reconcile_and_convert_statements) while the others are single verb-object phrases, making lengths and shapes less uniform.
Four tools is a reasonable, well-scoped surface for a statement-reconciliation server, and each focus tool earns its place as a distinct analysis primitive. The only concern is granularity asymmetry: one tool bundles parsing, dedup, refund netting, balance proving, and multi-format export, so the effective surface is coarser than the count suggests.
Coverage is strong for the stated domain: multi-source ingestion (bank CSV, Alipay, WeChat, PDF blocks), dedup/refund netting, double-entry validation, stable FITIDs, and export to OFX/Beancount/hledger/YNAB/QIF/CSV. Minor gaps exist around multi-currency FX handling, ledger write/edit operations, and ongoing incremental (append to existing ledger) workflows.