
vanto/beanquery-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
vanto/beanquery-mcp - кандидат на сервер MCP, импортированный из https://github.com/vanto/beanquery-mcp.
Обзор
vanto/beanquery-mcp - кандидат на сервер MCP, импортированный из https://github.com/vanto/beanquery-mcp.
Обзор (машинный перевод)
Beancount MCP Server является экспериментальной реализацией протокола Model Context Protocol (MCP), предназначенного для взаимодействия с файлами реестра Beancount. Используя язык запросов Beancount Query Language (BQL) и инструмент запросов beanquery, этот сервер позволяет беспрепятственно запрашивать и анализировать финансовые данные, хранящиеся в формате Beancount. Интегрируя MCP, сервер облегчает стандартизированную связь между помощниками ИИ и бухгалтерскими книгами Beancount, повышая доступность и полезность финансовых данных.
Примечание: Этот сервер является экспериментальным и может претерпевать значительные изменения. Рекомендуется использовать его в среде разработки и обеспечивать обратную связь для дальнейшего улучшения.
Сгенерированный реестр образцов можно найти в образце. боб
Доступные ресурсы и инструменты
- ** Инструменты**:
- [[Т0]]: Установите файл реестра Beancount для использования в запросах (если он не установлен через переменную среды).
- [[Т1]]: Запустите запрос BQL против загруженного файла Beancount. Ресурсы:
- [[Т2]]: Получите список таблиц, к которым BQL может получить доступ.
- [[Т3]]: Получите список учетных записей в загруженном файле Beancount.
Пример использования Claude.ai
Скриншот с расширенными взаимодействиями MCP см. здесь.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
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.
⚠️ 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.
[!CAUTION] 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.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:
- Quick Start:
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →