How it works

Your agent does the books. The ledger keeps it honest.

LedgerMCP has three parts: the AI assistant you already use, an MCP server that gives it 52 bookkeeping tools, and a double-entry ledger that enforces the accounting rules in the database. Here is how they fit together, end to end.

Your agent, any chat

Set up books for my LLC and import this statement.
Books created with a standard small-business chart. Imported 62 transactions, categorized 59, flagged 3 for you. Say the word and I’ll reconcile against the statement balance.

The three parts

Your agent

Claude, ChatGPT, or any MCP client. You talk to it in plain language: “import this statement,” “what did I spend on software?” It plans the work and calls the tools. LedgerMCP ships no AI of its own; you bring the assistant you already trust and pay for.

The MCP server

One URL, ledgermcp.com/mcp, exposes the whole job as 52 tools: 21 that read, 31 that write. Import, categorize, split, transfer, reconcile, tag, report. The same registry generates the docs, so what the agent sees never drifts from what the server does.

The ledger

Real double-entry books in a database that enforces four rules: entries must balance, postings are immutable, retries can’t double-post, and balances always derive from postings. The agent physically cannot leave the books in a broken state. How, exactly →

Three ways to connect

1

Claude

In Claude: Settings → Connectors → “Add custom connector,” then enter the URL. Claude opens a LedgerMCP sign-in (email plus a 6-digit code) and gets the full toolset. Works on claude.ai, Desktop, and mobile.
Full Claude walkthrough →
2

ChatGPT

In ChatGPT: Settings → Apps → Advanced → developer mode, then Create and enter the URL. OAuth sign-in, no keys to paste. Available on Plus, Pro, Business, Enterprise, and Edu plans.
Full ChatGPT walkthrough →
3

API key

For Claude Code, desktop agents, and scripts: mint a key in Settings → Agent access and send it as a bearer token. One key covers every book in your account; read-only keys can report but never write.
MCP server details →
Connect your agent
{
  "mcpServers": {
    "ledgermcp": {
      "type": "http",
      "url": "https://ledgermcp.com/mcp",
      "headers": { "Authorization": "Bearer lmcp_YOUR_KEY" }
    }
  }
}

The config on the left is all an MCP client needs. Paste it into Claude Code’s config, a desktop agent, or anything that speaks streamable HTTP, replace the key with one from Settings, and the agent can list your books and start working. Claude and ChatGPT on the web skip even this: they connect by URL with OAuth.

A month in the life of your books

  1. 1

    Statements arrive

    Bank feeds pull transactions in automatically (paid), or you hand your agent a CSV or PDF statement (free). Either way, rows land in a review queue. Nothing posts to the ledger by itself.

  2. 2

    Your agent does the work

    It categorizes against your chart of accounts, splits mixed charges, matches transfers so nothing double-counts, flags likely duplicates, and tags vendors as it goes. Anything ambiguous is left flagged for you.

  3. 3

    You review and close

    Skim the review queue in the web app or ask the agent what it was unsure about. Then close: reconcile against the statement balance, book depreciation, and lock the period so nothing can post into a closed month.

That last step matters more than it sounds: once a period is locked, nothing, human or agent, can post into it. Your January numbers in July are the same January numbers your CPA saw in February.

When something goes wrong

The agent miscategorized

Tell it (“that Costco charge was inventory, not meals”) and it reverses and re-posts. Or fix it yourself in the app with one click. Either way the correction is a linked reversal, and the suggestion engine learns the merchant for next time.

Something looks off

Open Settings → audit log. Every agent write is there: which key acted, which tool ran, what entry resulted. One click reverses any of it. There is no state where you can’t see exactly what happened.

You want a tighter leash

Issue a read-only key: the agent can answer questions and run reports but can’t write a thing. Or skip keys entirely and work only through the web app. The books are identical either way.

Common questions

How does LedgerMCP work in one paragraph?

LedgerMCP is double-entry accounting software with an MCP server built in. You connect the AI assistant you already use (Claude or ChatGPT) and it operates the books through 52 tools: importing statements, categorizing, reconciling, and reporting. The database enforces the accounting rules, every agent action is logged and reversible, and the web app is your review surface.

Do I have to use an AI agent?

No. The web app is a complete bookkeeping tool on its own: transaction register with inline categorization, journal, reconciliation, receipts, tags, and every report. The agent just automates the same books.

What does the AI actually control?

Exactly what the tools expose: importing and categorizing transactions, posting balanced journal entries, matching transfers, reconciling, tagging, attaching receipts, and running reports. It cannot edit or delete postings (nobody can), and destructive actions stay human-only in the web app.

How do corrections work if nothing can be edited?

Corrections post as reversals: a new entry that exactly offsets the original, linked to it. Recategorizing a transaction reverses the old entry and posts a fresh one. Your history stays complete, which is exactly what an accountant wants to see.

Can I start mid-year with months of backlog?

Yes. Catch-up is one of the best uses. Hand your agent the statements month by month; bulk import and bulk categorize were built for migration, and one bad row never blocks the rest. Most backlogs clear in an afternoon.

What happens to my books if I stop paying?

Nothing. The software is free; only live bank feeds are paid. If a paid plan lapses, feeds pause but your books, reports, and agent access all keep working, and you can export everything to CSV at any time.

See it with your own statement

Connect your agent in about a minute, hand it one month of transactions, and read the audit log after.