buchpilot-mcp
BuchPilot MCP 服务器
用于 DACH 地区会计的 MCP 服务器 — 直接从 Claude、Cursor 或任何兼容 MCP 的客户端管理联系人、发票、凭证和报价单。
这是什么?
BuchPilot MCP 是一个 Model Context Protocol 服务器,它将你的会计系统(目前为 Lexoffice)与 AI 助手连接起来。你可以通过自然语言创建发票、管理联系人并检查逾期付款 — 直接在 Claude Desktop、Cursor 或任何其他 MCP 客户端中操作。
Related MCP server: @centry-digital/bukku-mcp
功能特性
15 个工具,实现完整的会计自动化
联系人:创建、获取、列出、更新
发票:创建、获取、列出、更新、下载 PDF
凭证:创建、获取、列出(进项发票、贷记单)
报价单:创建、获取
逾期发票:查看逾期金额和逾期天数
后端架构 — 目前支持 Lexoffice,可扩展至 sevDesk、Billomat 等
插件化 — 可集成 E-Invoice MCP 工具 (
einvoice-mcp)无数据库,无状态 — 纯 API 代理
安装
前提条件
Node.js >= 18
一个带有 API 密钥的 Lexoffice 账户
npm (全局)
npm install -g buchpilot-mcp从源码安装
git clone https://github.com/makririch/buchpilot-mcp.git
cd buchpilot-mcp
npm install
npm run build配置
在以下位置之一创建配置文件 .buchpilot.json:
环境变量
BUCHPILOT_CONFIG指定的路径~/.buchpilot.json(用户主目录)./.buchpilot.json(当前目录)
.buchpilot.json 内容
{
"backends": {
"lexoffice": {
"api_key": "DEIN_LEXOFFICE_API_KEY"
}
},
"default_backend": "lexoffice"
}创建 Lexoffice API 密钥
点击 创建 API 密钥 (API-Key erstellen)
复制密钥并将其粘贴到
.buchpilot.json中
安全提示: 切勿将 API 密钥存入 Git。请将
.buchpilot.json添加到你的.gitignore文件中。
使用方法
启动服务器 (独立运行)
# Nach npm install -g:
buchpilot-mcp
# Oder von Source:
npm start
# Entwicklung mit Auto-Reload:
npm run dev服务器通过 stdio 运行并等待 MCP 消息。
在 Claude Desktop 中使用
详细指南请参阅 Claude Desktop 设置指南。
简要步骤 — 在 claude_desktop_config.json 中添加:
{
"mcpServers": {
"buchpilot": {
"command": "npx",
"args": ["-y", "buchpilot-mcp"],
"env": {
"BUCHPILOT_CONFIG": "/Users/DEIN_NAME/.buchpilot.json"
}
}
}
}示例 (在 Claude 中使用自然语言)
配置好服务器后,你可以问 Claude,例如:
“为公司 Beispiel GmbH 创建一个联系人,邮箱为 info@beispiel.de”
“显示所有未结发票”
“给联系人 XYZ 创建一张发票:10 小时咨询服务,每小时 150 欧元”
“哪些发票逾期了?”
“下载发票 ABC 的 PDF”
“为 5 个许可证创建一份报价单,每个 49 欧元/月”
工具参考
所有 15 个工具的完整参考(包括参数、输入示例和输出示例)请参阅 docs/tool-reference.md。
概览
工具 | 描述 |
| 创建新联系人(个人或公司) |
| 通过 ID 获取联系人 |
| 带过滤条件列出联系人 |
| 更新联系人 |
| 创建带有明细的新发票 |
| 通过 ID 获取发票 |
| 列出发票(可按状态过滤) |
| 下载发票 PDF (Base64) |
| 更新草稿发票 |
| 创建新凭证 |
| 通过 ID 获取凭证 |
| 列出凭证 |
| 创建带有明细的新报价单 |
| 通过 ID 获取报价单 |
| 分析并获取逾期发票 |
电子发票 (E-Invoice) 集成
BuchPilot MCP 可选集成 E-Invoice MCP 包,以便直接从会计系统中生成 XRechnung 和 ZUGFeRD 格式发票:
// In deinem eigenen MCP-Server:
import { registerEInvoiceTools } from "einvoice-mcp";
registerEInvoiceTools(server);
// Ergebnis: 15 + 4 = 19 Tools常见问题 / 故障排除
“No .buchpilot.json found”
服务器找不到配置文件。请在你的主目录中创建一个 .buchpilot.json:
echo '{"backends":{"lexoffice":{"api_key":"DEIN_KEY"}},"default_backend":"lexoffice"}' > ~/.buchpilot.jsonLexoffice 返回 “401 Unauthorized”
.dachflow.json中的 API 密钥是否正确?密钥是否仍然有效?请在 Lexoffice 公共 API 检查。
API 密钥可能会过期 — 如有必要,请创建一个新的。
“429 Too Many Requests”
Lexoffice 允许每秒最多 2 个请求。如果你连续执行大量操作,请在请求之间稍作等待。
服务器已启动,但 Claude 无法识别工具
检查
claude_desktop_config.json是否正确。修改配置后重启 Claude Desktop。
检查日志:
~/Library/Logs/Claude/mcp.log(macOS)。
无法更新发票
只有状态为 draft (草稿) 的发票才能更新。已完成的发票是不可更改的。
后端 “sevDesk” 不可用
目前仅支持 Lexoffice 作为后端。sevDesk 支持计划中。你可以使用 n8n 节点 (n8n-nodes-buchpilot) 来处理 sevDesk。
许可证
MIT — 可自由使用,包括商业用途。
作者
MaKri — GitHub
Available Tools
15 toolscreate_contactB
Erstellt einen neuen Kontakt (Person oder Firma) im Buchhaltungssystem. Creates a new contact (person or company).
Inputs: type (required), name (required), firstName, email, +2 more.
create_invoiceB
Erstellt eine neue Rechnung mit Positionen. Creates a new invoice with line items.
Inputs: contactId (required), date (required), lineItems (required), title, +5 more.
create_quotationB
Erstellt ein neues Angebot mit Positionen. Creates a new quotation with line items.
Inputs: contactId (required), date (required), lineItems (required), expirationDate, +5 more.
create_voucherC
Erstellt einen neuen Beleg (Eingangsrechnung, Gutschrift). Creates a new voucher (purchase invoice, credit note).
Inputs: type (required), date (required), totalGross (required), taxRate, +3 more.
get_contactC
Ruft einen Kontakt per ID ab. Gets a contact by ID.
Inputs: id (required), backend.
get_invoiceC
Ruft eine Rechnung per ID ab. Gets an invoice by ID.
Inputs: id (required), backend.
get_invoice_pdfA
Laedt eine Rechnung als PDF herunter (Base64-kodiert). Downloads an invoice as PDF (base64-encoded).
Inputs: id (required), backend.
get_overdue_invoicesC
Listet alle ueberfaelligen Rechnungen mit Betrag und Faelligkeitsdatum. Lists all overdue invoices with amount and due date.
Inputs: days_overdue, limit, backend.
get_quotationC
Ruft ein Angebot per ID ab. Gets a quotation by ID.
Inputs: id (required), backend.
get_voucherC
Ruft einen Beleg per ID ab. Gets a voucher by ID.
Inputs: id (required), backend.
list_contactsC
Listet Kontakte auf mit optionalen Filtern. Lists contacts with optional filters.
Inputs: name, email, role, limit, +1 more.
list_invoicesC
Listet Rechnungen auf. Kann nach Status filtern (draft, open, paid, overdue). Lists invoices with optional status filter.
Inputs: status, contactId, limit, backend.
list_vouchersB
Listet Belege auf mit optionalen Filtern. Lists vouchers with optional filters.
Inputs: type, limit, backend.
update_contactB
Aktualisiert einen bestehenden Kontakt. Updates an existing contact.
Inputs: id (required), name, firstName, email, +1 more.
update_invoiceB
Aktualisiert eine bestehende Rechnung (nur Entwuerfe). Updates a draft invoice.
Inputs: id (required), title, introduction, remark, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource (contact, invoice, quotation, voucher) with separate actions (create, get, list, update). No overlap in purpose.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., create_contact, get_invoice_pdf). No mixed conventions.
15 tools are appropriate for an accounting server covering contacts, invoices, quotations, and vouchers. Not too few or too many.
Core CRUD operations are present for contacts and invoices, with additional features like PDF download and overdue listing. However, missing updates for quotations and vouchers, and missing deletions for all resources are minor gaps.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for ABRA Flexi — accounting, contacts, stock and draft-checked invoice creation.
sevdesk MCP server for ChatGPT, Claude and any AI agent: create invoice, send invoice, upload receipt, book voucher and list open invoices in your own sevdesk account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to sevdesk yourself; Cotlet does not store your password and you need no sevdesk API key. About the official sevdesk API: sevdesk has a REST API (checked 14 Oct 2026). It covers almost everything the web app does, but only on the Buchhaltung Pro plan, in Germany, on system version 2.0. Setup and FAQ: https://cotlet.dev/integrations/sevdesk-api-mcp-server
Create, send and track invoices from a conversation in Claude, ChatGPT or any MCP client that supports OAuth. Draft an invoice from one sentence or from last month's invoice for the same client, finalize it, email it to your client and send payment reminders for overdue ones. See revenue by month and by client, download PDFs and e-invoices (ZUGFeRD, XRechnung), and export DATEV packages for your tax advisor. Invoices follow the tax rules of 25 countries, including reverse charge and the small-business VAT exemption. New invoices are drafts, and nothing is emailed until you ask. Pay per invoice with no subscription: the first invoice is free.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for German e-invoice compliance (XRechnung 3.0 & ZUGFeRD 2.x) enabling AI agents to validate, generate, parse, and check compliance of electronic invoices per EN 16931.61MIT
- AlicenseNot gradedqualityAmaintenanceMCP server enabling AI assistants to manage invoices, contacts, products, and other accounting data through the Bukku API.9MIT
- AlicenseAqualityBmaintenanceMCP server for the Elorus invoicing and accounting platform, enabling AI assistants to create invoices, manage contacts, and query financial data through natural language.435MIT
- AlicenseAqualityCmaintenanceMCP server for Spanish accounting for freelancers and SMEs, enabling AI agents to issue invoices, OCR expense PDFs, reconcile bank transactions, and prepare quarterly VAT (Modelo 303).234MIT