MCP Catalogs
Homebeanquery-mcp screenshot

beanquery-mcp

by vanto·46·Score 36

Experimental MCP server for AI assistants to query Beancount financial ledgers using BQL.

financeai-llmdeveloper-tools
4
Forks
2
Open issues
14 mo ago
Last commit
2d ago
Indexed

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:

you:AI assistants analyzing personal finance patterns from Beancount ledgers
you:Automated financial report generation using BQL queries
you:Integration of financial data with other AI-powered productivity tools
you:Is this server production ready?
you:What data privacy concerns should I be aware of?

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 README
  • set_ledger_file

    Set the Beancount ledger file to use for queries.

  • run_query

    Run a BQL query against the loaded Beancount file.

Comparable tools

beanqueryledger-cliplaid-mcp

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 beanquery

With environment variable:

uv run mcp install server.py -v BEANCOUNT_LEDGER=/path/to/your/ledger.bean --with beancount --with beanquery

In 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.