Skip to content
Agentmart
Submit a tool

Ledger

Exact-decimal double-entry for agents.

Connector by eternal-roman · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 1
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/eternal-roman-ledger

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Exact-decimal double-entry for agents. Call MCP tools; do not do money math in tokens.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
7 read · 8 write · 0 delete · 5 not yet classified
Secrets
None asked for
Install scripts
Not scanned yet
Runs as
Node.js package

Tools by what they do 20

Read from the source code; the running server may list different tools.

Read 7 · Look things up without changing anything.

  • cite_lookup
  • fx_compute_translation
  • ledger_audit_hash
  • ledger_verify_determinism
  • ledger_verify_equation
  • money_compute
  • reconcile_positions

Write 8 · Create, change, send or run things.

  • artifact_make
  • closing_generate_entries
  • depreciation_build_schedule
  • ledger_post
  • periods_create_lock
  • periods_guarded_post
  • settlement_build_entries
  • trace_run

Not yet classified 5 · We could not tell from the name and description.

  • cashflow_statement
  • entry_validate
  • ledger_balance
  • ledger_trial_balance
  • portfolio_relief

Tools (20)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • artifact_makeBuild a canonical financial artifact

    Assemble a Canonical Financial Artifact (scope, assumptions, citations, kernel plan, proof, reproducibility, auditHash) — the structured proof bundle a financial answer should carry. Every field is required and auditHash is verified, not just format-checked: it must be a digest a kernel call (ledger_post / ledger_audit_hash / ledger_verify_determinism / trace_run) actually returned in this session, or one this tool can recompute from the serialized `ledger` you pass alongside it. A fabricated value — even a well-formed one — is rejected. Validates that the kernel plan references core primitive…

  • cashflow_statementDirect-method cash flow statement

    Derive an exact direct-method cash flow statement from a serialized ledger: operating / investing / financing flows per currency, with opening and closing cash. Cash accounts are detected by convention (Asset codes starting CASH or names containing "cash") unless cashAccountCodes is supplied. Self-checks that opening + netChange === closing. Kernel verified.

  • cite_lookupLook up accounting citations

    Retrieve matching IFRS/GAAP facts and citations from the kernel knowledge graph for a query (e.g. "revenue recognition", "lease", "cost basis"). Use to ground claims in canon rather than asserting from memory.

  • closing_generate_entriesGenerate closing entries to Retained Earnings

    Given a (serialized) ledger snapshot and close date, returns balanced JournalEntry[] that close Income/Expense to RE using the kernel. All entries are pre-validated. Kernel verified.

  • depreciation_build_scheduleBuild depreciation / amortization schedule

    Exact straight-line (allocate) or declining balance schedule. Input cost/salvage/life/method. Returns periods with exact Money amounts as strings. Kernel-allocate based.

  • entry_validateValidate a journal entry

    Run the kernel invariant check on a proposed journal entry: balanced debits=credits per currency, >=2 lines, positive amounts, no sub-scale precision, valid ISO date, no silent currency mix. Returns { ok, violations[] }. Always validate before posting.

  • fx_compute_translationFX translation + CTA

    Translate ledger balances at asOf using provided rates into reportingCurrency. Returns holdings, translated totals, and the exact CTA plug amount. Always kernel-verified for balance.

  • ledger_audit_hashAudit hash

    Compute the tamper-evident SHA-256 audit-hash chain for a serialized ledger. Any change to any field or line ordering yields a different hash.

  • ledger_balanceAccount balance

    Net balance for an account in a serialized ledger, per its normal balance side. Pass "currency" for multi-currency accounts (otherwise fails closed). Returns all currencies via balancesByCurrency too.

  • ledger_postPost an entry to a ledger

    Validate and apply a journal entry to a (serialized) ledger, returning the new ledger JSON plus its audit hash. The kernel refuses unbalanced state: an invalid entry is NOT posted and its violations are returned instead. Omit "ledger" to start from empty.

  • ledger_trial_balanceTrial balance

    Every account in a serialized ledger with its current net balance (one row per currency).

  • ledger_verify_determinismVerify determinism

    Rebuild a serialized ledger twice and confirm the two runs are byte-for-byte identical via their audit hashes AND that the fundamental equation holds. Returns { ok, hash }.

  • ledger_verify_equationVerify accounting equation

    Verify Assets + Expenses = Liabilities + Equity + Income (per currency) holds for a serialized ledger. Returns { balanced }.

  • money_computeExact money arithmetic

    Perform EXACT decimal money arithmetic with the kernel (decimal.js, never floats). Use this for every monetary calculation instead of computing in your own tokens. Ops: add, sub (same currency), mul, div (money x scalar), allocate (split by ratios, remainder to last), convert (via FX rate), compare.

  • periods_create_lockCreate a period lock (hard close)

    Create an immutable PeriodLock fact for use with guarded posting. effectiveDate <= lockDate will be rejected.

Show 5 more tools
  • periods_guarded_postGuarded ledger post (respects period locks)

    Like ledger_post but rejects entries whose effectiveDate falls on or before any provided period lock. Returns the same shape. Always kernel-verified.

  • portfolio_reliefLot relief with holding-period classification

    Reconstruct open lots and realized disposals for an asset from the ledger using FIFO / LIFO / HIFO, with exact cost basis. Each disposal is broken down per consumed lot and classified short vs long term by holding days (default threshold 365). Fails closed on oversell. Kernel verified.

  • reconcile_positionsReconcile positions against an external source

    Compare ledger-derived balances against an external snapshot (exchange/custodian/bank), matched by account code AND currency. Returns per-account status (matched / mismatch / missing_in_ledger / missing_in_external) with exact diffs and an overall reconciled flag. Kernel verified.

  • settlement_build_entriesSettlement-date (T+N) entries for a fill

    Split a fill into trade-date entries (asset moves; cash booked as a settlement receivable on a sell / payable on a buy) and settlement-date entries (the receivable/payable is swapped for cash). All entries are kernel-validated and balanced. Returns both entry sets as JSON. Kernel verified.

  • trace_runTrace a sequence of entries

    Replay a sequence of journal entries on a fresh ledger, capturing balances, the fundamental equation, and an audit-hash prefix at every step. This is the agent-facing audit trail. Fails closed with the offending step if any entry is invalid.

Signals

Stars
1
Forks
0
Open issues
0
Weekly downloads
11
Last commit (this folder)
Aug 14, 2026 (2 months ago)
Last release
Aug 14, 2026 (2 months ago)
Last package publish
Aug 14, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026) and the package registry.

Details

Registry name
io.github.eternal-roman/ledger
Version
0.19.1
Auth
No auth
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 25, 2026

More from eternal-roman

Cite this page

Ledger MCP server. Agent Mart. https://agentmart.dev/connectors/eternal-roman-ledger (last updated 2026-10-25)