hledger MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: personal-capital-connector-mcp
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Ask Claude about your income and spending, and import bank statements. No bank login.
Connect Claude to Dutch accounting software: e-Boekhouden invoices, contacts and ledgers.
Query, edit, and reconcile a hosted Beancount ledger: BQL, reports, files, and bank imports.
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.-
- FlicenseAqualityDmaintenanceEnables Claude to query Empower/Personal Capital financial accounts, net worth, transactions, and asset allocation via natural language.5-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to analyze personal finances by reading bank CSVs or connecting to Plaid for live transactions, categorizing spending, flagging overspending against benchmarks, and generating actionable reports and savings tips.MIT
- FlicenseAqualityDmaintenanceMCP server for hledger that exposes double-entry accounting tools to AI agents, enabling balance queries, transaction history, budget reports, and adding transactions to a journal.4-