Ledger MCP Server

A Model Context Protocol server for interacting with [Ledger CLI](https://www.ledger-cli.org/), a powerful, double-entry accounting system accessible

Local serverstdioPython

What is the Ledger MCP server?

Ledger MCP server exists for a simple reason — assistants are far more useful when they can act on Ledger directly instead of describing what you should do. A Model Context Protocol server for interacting with Ledger CLI, a powerful, double-entry accounting system accessible from the command line. This server allows Large Language Models to query and analyze your.

What you get

  • Shows account balances with powerful filtering options
  • Inputs: query pattern, date ranges, display options
  • Returns: Formatted balance report
  • Shows transaction register with detailed history
  • Inputs: query pattern, date ranges, sorting options
  • Returns: Formatted register report

Configuration and credentials

  • Ledger CLI must be installed and available in your PATH - A valid Ledger file with your financial data

Setting it up

Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by minhyeoky; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the ledger mcp server does with a few real requests.

How to install the Ledger MCP server

{
  "mcpServers": {
    "server-ledger": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Ledger CLI must be installed and available in your PATH - A valid Ledger file with your financial data

Frequently asked questions

It connects Ledger to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Ledger directly.