Beanquery 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., "@Beanquery MCP Servershow me my expenses for groceries last month"
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.
Beanquery MCP
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
Available Resources and Tools
Tools:
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.
Resources:
beanquery://tables: Get a list of tables that BQL can access.beanquery://accounts: Get a list of accounts in the loaded Beancount file.
Example using Claude.ai

For a screenshot with expanded MCP interactions, see here.
Related MCP server: YNAB MCP Server
⚠️ Privacy Warning
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:
Your ledger contains sensitive data (e.g., client names, salary details, health-related expenses).
You are using a cloud-hosted or non-self-hosted LLM backend.
Recommendations:
Mask or redact sensitive data in test ledgers.
Use self-hosted LLMs when possible.
Review the data being sent via MCP to ensure compliance with your privacy and security requirements.
You are responsible for the protection of your financial data. Do not share ledgers you would not be comfortable exposing.
Setup
Prerequisites
Python 3.10 or later
uv for managing Python projects (recommended)
Usage
Running the Server
Development Mode: Use the MCP Inspector to test and debug your server:
mcp dev server.pyClaude Desktop Integration: Install the server into Claude Desktop:
mcp install server.pyQuick Start:
uv run mcp install server.py -v BEANCOUNT_LEDGER=$(pwd)/sample.bean --with beancount --with beanqueryCustom Name:
uv run mcp install server.py --name "Beanquery MCP Server" --with beancount --with beanqueryEnvironment 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
Testing
Run the test suite using pytest:
pytest server_test.pyContributing
Fork the repository.
Create a feature branch:
git checkout -b feature-nameCommit your changes:
git commit -m "Add feature description"Push to your branch:
git push origin feature-nameOpen a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that allows AI assistants to query and analyze financial data through Ledger CLI, enabling tasks like financial reporting, budget analysis, and accounting.Last updated951MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI-powered interaction with YNAB (You Need A Budget) data, allowing users to query their budgets through conversational interfaces.Last updated1684135MIT
- Alicense-qualityAmaintenanceA Model Context Protocol (MCP) server that keeps the books for your personal and business finances using double-entry accounting — driven entirely from an LLM.Last updated45MIT
- Flicense-qualityCmaintenanceA read-only MCP server that gives AI agents structured access to a Beancount personal finance ledger.Last updated1
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/vanto/beanquery-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server