
beanquery-mcp
by vanto·★ 46·Score 36
Experimental MCP server for AI assistants to query Beancount financial ledgers using BQL.
Overview
The Beanquery MCP Server bridges AI assistants with Beancount financial ledgers through the Model Context Protocol. It exposes tools for setting ledger files and running BQL queries, plus resources for accessing account and table information. This experimental implementation enables AI to analyze financial data in Beancount format, though it's still evolving and may undergo significant changes.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you use Beancount for financial tracking and want AI assistants to query your ledger data without manual extraction.
When NOT to choose this
Avoid this server if your financial data contains highly sensitive information and you cannot use self-hosted LLMs, as data is transmitted to third-party services.
Tools this server exposes
2 tools extracted from the READMEset_ledger_fileSet the Beancount ledger file to use for queries.
run_queryRun a BQL query against the loaded Beancount file.
Comparable tools
Installation
Installation
Prerequisites
- Python 3.10 or later
- [uv](https://docs.astral.sh/uv/) for managing Python projects
Running the Server
**Development Mode:**
mcp dev server.py**Claude Desktop Integration:**
uv run mcp install server.py --with beancount --with beanqueryWith environment variable:
uv run mcp install server.py -v BEANCOUNT_LEDGER=/path/to/your/ledger.bean --with beancount --with beanqueryIn Claude Desktop configuration:
{
"mcpServers": {
"beancount": {
"command": "uv",
"args": ["run", "mcp", "install", "server.py"],
"env": {
"BEANCOUNT_LEDGER": "/path/to/your/ledger.bean"
}
}
}
}FAQ
- Is this server production ready?
- No, this is an experimental implementation that may undergo significant changes. It's recommended to use it in a development environment.
- What data privacy concerns should I be aware of?
- This tool may transmit parts of your Beancount ledger to third-party LLM services. Use caution with sensitive financial data, consider masking information in test ledgers, and prefer self-hosted LLMs when possible.
Compare beanquery-mcp with
Last updated · Auto-generated from public README + GitHub signals.