mcp-server-ledger: A Ledger CLI MCP Server
@minhyeoky
About mcp-server-ledger: A Ledger CLI MCP Server
A Model Context Protocol server for interacting with Ledger CLI, a powerful double-entry accounting system. This server enables Large Language Models to query and analyze financial data through a standardized interface, making it easy for AI assistants to help with financial repo
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-ledger": {
"command": "docker",
"args": [
"pull",
"minhyeoky/mcp-ledger"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mcp-server-ledger?
mcp-server-ledger is a Model Context Protocol server for interacting with Ledger CLI, a double-entry accounting system. It allows Large Language Models to query and analyze financial data through the Ledger CLI tool, enabling AI assistants to help with financial reporting, budget analysis, and accounting tasks.
How to use mcp-server-ledger?
Install Ledger CLI and have a valid ledger file. Install mcp-server-ledger via Docker (recommended), Smithery, or uv sync. Configure the server with the LEDGER_FILE environment variable or command-line arguments, then add the server configuration to your claude_desktop_config.json. Once set up, you can ask your AI assistant natural-language questions about your finances, and it will use the appropriate ledger commands.
Key features of mcp-server-ledger
ledger_balance– Shows account balances with filtering options.ledger_register– Shows transaction register with detailed history.ledger_accounts– Lists all accounts in the ledger file.ledger_payees– Lists all payees from transactions.ledger_commodities– Lists all commodities (currencies) used.ledger_print– Prints transactions in ledger format.ledger_stats– Shows statistics about the ledger file.ledger_budget– Shows budget analysis.ledger_raw_command– Runs a raw Ledger CLI command.
Use cases of mcp-server-ledger
- Ask "Show me my expenses for the last month."
- Ask "What's my current balance in all accounts?"
- Ask "List all transactions with Amazon."
- Ask "How much did I spend on groceries in 2023?"
- Ask "Show me my budget performance for Q1."
FAQ from mcp-server-ledger
What are the prerequisites for mcp-server-ledger?
Ledger CLI must be installed and available in your PATH, and you need a valid Ledger file with your financial data.
How do I install mcp-server-ledger?
You can install it using Docker (docker pull minhyeoky/mcp-ledger), via Smithery (npx -y @smithery/cli install @minhyeoky/mcp-ledger --client claude), or by cloning the repository and running uv sync.
How do I configure the ledger file?
Provide the path to your Ledger file through the LEDGER_FILE environment variable or via command-line arguments when starting the server.
Can I run custom Ledger CLI commands?
Yes, the ledger_raw_command tool accepts a list of command arguments and returns the raw output as text.
Is mcp-server-ledger secure?
The server includes basic validation to prevent command injection, but you should only use it with trusted clients, be careful about which file paths you expose, and review all commands before execution.
More Developer Tools MCP servers
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
sentry-mcp
getsentryAn MCP server for interacting with Sentry via LLMs.
Test
x1xhlolFULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, Lovable, Manus, NotionAI, Orchids.app, Perplexity, Poke, Qoder, Replit, Same.dev, Trae, Traycer AI, VSCode Agent, Warp.dev, Windsurf, Xcode, Z.ai Code, Dia & v0. (And other Open Sou
Comments