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.
Latest Blog Posts
- 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