hledger MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hledger MCP Servershow me my account balances"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hledger MCP Server
MCP server that gives Claude access to hledger commands for financial analysis.
Built with Claude Code.
Setup
Install hledger:
brew install hledgerClone and build this repo
Set
LEDGER_FILE=path/to/your.journalConfigure Claude Desktop (see below)
git clone https://github.com/kristianfreeman/hledger-mcp-server
cd hledger-mcp-server
npm install
npm run build
export LEDGER_FILE=/path/to/your/main.journalRelated MCP server: Finance MCP Server
Available Commands
hledger_balance- Account balanceshledger_register- Transaction listinghledger_accounts- List accountshledger_stats- Journal statisticshledger_balancesheet- Balance sheethledger_incomestatement- Income statementhledger_cashflow- Cash flow statement
Claude Configuration
Claude Code (CLI)
claude mcp add hledger-mcp-server -- node ./hledger-mcp-server/dist/index.jsClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"hledger": {
"command": "node",
"args": ["/absolute/path/to/hledger-mcp-server/dist/index.js"]
}
}
}Then ask Claude: "Show me my account balances" or "What did I spend on groceries last month?"
License
MIT License - see LICENSE file for details.
Related Projects
hledger - Plain text accounting software
MCP Framework - TypeScript MCP server framework
Model Context Protocol - Protocol specification
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables interaction with local Beancount accounting ledgers through structured tools for viewing accounts, balances, and transactions, as well as inserting/removing transactions and answering natural-language questions via BeanQuery. Provides deterministic, validated, and auditable financial data operations with offline-first functionality.Last updated1
- Flicense-qualityDmaintenanceEnables personal finance tracking through Claude Desktop using natural language to manage income and expenses with persistent SQLite storage. Supports adding and deleting transactions, checking balances, and viewing spending summaries grouped by category or month.Last updated
- Alicense-qualityBmaintenanceProvides AI assistants with direct access to HLedger accounting data and functionality, enabling natural language queries for balances, reports, journal entries, and financial analysis.Last updated4463MIT
- Alicense-qualityDmaintenanceEnables users to manage personal expenses through natural conversation with Claude, including adding, updating, deleting expenses, and viewing summaries by category or date range.Last updated3MIT
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Read-only bank access for your AI agent. Connects Claude, ChatGPT, Cursor, Gemini, Codex.
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kristianfreeman/hledger-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server