MCP Server for my ledger
MCP Server for accessing and managing ledger files through Claude.
The server implements three tools for ledger management:
list-accounts: Lists all accounts in the ledger
account-balance: Gets the balance for a specific account
account-register: Shows the transaction register for an account
uv
package manageruv pip install ledger-service
Using the inspector to debug the server:
npx @modelcontextprotocol/inspector \
uv \
--directory /path/to/ledger-service \
run \
ledger-service
Add the server configuration to Claude Desktop’s config file:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"ledger-service": {
"command": "uv",
"args": [
"--directory",
"/path/to/ledger-service",
"run",
"ledger-service"
]
}
}
"mcpServers": {
"ledger-service": {
"command": "uvx",
"args": [
"ledger-service"
]
}
}
The base path can be configured by modifying the LEDGER_BASE_PATH
constant in server.py
.
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007