Beancount MCP Server is an experimental implementation that utilizes the Model Context Protocol (MCP) to enable AI assistants to query and analyze Beancount ledger files using Beancount Query Language (BQL) and the beanquery tool.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"beanquery-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The Beancount MCP Server is an experimental implementation of the Model Context Protocol (MCP) designed to interface with Beancount ledger files. Leveraging the Beancount Query Language (BQL) and the beanquery tool, this server enables seamless querying and analysis of financial data stored in Beancount format. By integrating MCP, the server facilitates standardized communication between AI assistants and Beancount ledgers, enhancing the accessibility and utility of financial data.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
beanquery://tablesGet a list of tables that BQL can access.
beanquery://tables
beanquery://accountsGet a list of accounts in the loaded Beancount file.
beanquery://accounts
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MCP server for InsightSentry financial data API - market data, options, screeners, and more
Model Context Protocol for Actual Budget API
A Model Context Protocol server allows Clients to interact with Xero
MCP Security Weekly
Get CVE alerts and security updates for Beanquery Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The Beancount MCP Server is an experimental implementation of the Model Context Protocol (MCP) designed to interface with Beancount ledger files. Leveraging the Beancount Query Language (BQL) and the beanquery tool, this server enables seamless querying and analysis of financial data stored in Beancount format. By integrating MCP, the server facilitates standardized communication between AI assistants and Beancount ledgers, enhancing the accessibility and utility of financial data.
Note: This server is experimental and may undergo significant changes. It is recommended to use it in a development environment and provide feedback for further improvements.
A generated sample ledger can be found in sample.bean
set_ledger_file: Set the Beancount ledger file to use for queries (if not set via environment variable).run_query: Run a BQL query against the loaded Beancount file.beanquery://tables: Get a list of tables that BQL can access.beanquery://accounts: Get a list of accounts in the loaded Beancount file.
For a screenshot with expanded MCP interactions, see here.
This tool interfaces with language model providers (LLMs) via the Model Context Protocol (MCP), and as such may transmit parts of your Beancount ledger—including potentially confidential or private financial information—to third-party services.
Please use this tool with caution, especially when:
Recommendations:
[!CAUTION] You are responsible for the protection of your financial data. Do not share ledgers you would not be comfortable exposing.
Development Mode: Use the MCP Inspector to test and debug your server:
mcp dev server.py
Claude Desktop Integration: Install the server into Claude Desktop:
mcp install server.py
Quick Start:
uv run mcp install server.py -v BEANCOUNT_LEDGER=$(pwd)/sample.bean --with beancount --with beanquery
Custom Name:
uv run mcp install server.py --name "Beanquery MCP Server" --with beancount --with beanquery
Environment Variables:
uv run mcp install server.py -v BEANCOUNT_LEDGER=/path/to/your/ledger.bean --with beancount --with beanquery
uv run mcp install server.py -f .env --with beancount --with beanquery
Run the test suite using pytest:
pytest server_test.py
git checkout -b feature-name
git commit -m "Add feature description"
git push origin feature-name
This project is licensed under the MIT License. See the LICENSE file for details.