Buchhaltungsbutler MCP

Buchhaltungsbutler MCP

Enables AI assistants to manage BuchhaltungsButler bookkeeping through all 48 API endpoints, with safety-categorized tools for read, write, and destructive operations.

Category
Visit Server

README

ohneben's Buchhaltungsbutler MCP

CI Publish Docker image License: MIT

Manage your BuchhaltungsButler bookkeeping in plain language from AI assistants like Claude, Cursor, and any other MCP client.

This Model Context Protocol server exposes the BuchhaltungsButler API v1 β€” all 48 endpoints, auto-generated from the official OpenAPI spec into MCP tools. Every tool is safety-categorized (read-only / write / destructive) so your assistant knows what an action does before it calls it. Runs over stdio (Claude Desktop and other local launchers) or Streamable HTTP (hosted in Docker).

Why you'll want this

Some MCP servers just forward an API. This one is built to be safe to hand to an LLM and easy to run for real:

What you get Why it matters
All 48 endpoints, auto-generated from the official spec Full coverage of receipts, transactions, postings, invoices and master data β€” nothing hand-picked or left behind.
Every tool is safety-categorized 🟒 / 🟑 / πŸ”΄ A banner at the top of each tool description tells the model exactly what it does β€” fetch, create, update, revert or delete β€” before it acts.
Machine-readable MCP annotations (readOnlyHint, destructiveHint) Hosts that honor annotations (Claude included) can auto-trust reads and demand confirmation before anything destructive.
Two transports: stdio and Streamable HTTP Use it locally in Claude Desktop, or run one always-on server that any number of MCP clients reach over HTTP.
Docker + docker-compose, health check, auto-restart Production-style deployment out of the box: docker compose up and it stays up.
Optional bearer-token auth on the HTTP endpoint Put the server behind a shared secret the moment it's reachable beyond localhost.
Built-in rate limiting Self-throttles under BuchhaltungsButler's 100 requests/customer/minute cap so you never trip it.
Your secrets never reach the model Credentials live in the server's environment and are injected on every request β€” the assistant only ever sees tool inputs and API responses.

How it compares

At the time of writing this appears to be the only dedicated BuchhaltungsButler MCP server. You could instead point a generic OpenAPI→MCP wrapper at the spec — here's what that leaves on the table:

Capability This project Generic OpenAPI→MCP wrapper*
All 48 BuchhaltungsButler endpoints as tools βœ… βœ…
Per-tool 🟒 / 🟑 / πŸ”΄ safety category + banner βœ… ❌
readOnlyHint / destructiveHint MCP annotations βœ… βž–
$ref batch-payload resolution + HTML-stripped descriptions βœ… βž–
Built-in rate limiting (stays under BB's 100/customer/min) βœ… ❌
stdio transport βœ… βœ…
Streamable-HTTP transport βœ… βž–
Docker + docker-compose, health check, auto-restart βœ… ❌
Optional bearer-token auth on the endpoint βœ… ❌
Credentials injected server-side, never sent to the model βœ… βž–
License MIT varies

<sub>*Generic OpenAPIβ†’MCP wrappers turn any Swagger/OpenAPI spec into MCP tools. They can reach the same endpoints, but treat every operation identically β€” no safety categories, no deployment story, and no guardrails tuned for live accounting data. "βž–" = varies by tool / not guaranteed. Snapshot from July 2026.</sub>

What you can do

Once it's connected, ask your assistant things like:

  • "List all inbound receipts from last month that are still unpaid."
  • "Create a draft invoice for ACME GmbH: 10 hours of consulting at €120 each."
  • "Book this bank transaction against posting account 4400."
  • "Upload this PDF receipt and assign it to the matching transaction."
  • "Show me my creditors, and add a new one for our hosting provider."

Tools are generated automatically from the official API and grouped into 🟒 read-only, 🟑 write, and πŸ”΄ destructive β€” so a well-behaved host can treat each group differently.

How it works

Claude / Cursor / any MCP client  ──MCP──►  this server  ──HTTPS──►  BuchhaltungsButler API (cloud)

The server parses the bundled OpenAPI spec into MCP tools (resolving $ref batch payloads and stripping HTML from descriptions), tags each with its safety category, and injects your Basic-auth credentials and api_key on every outgoing request. Your credentials stay in the server's environment β€” the model never sees or handles them.

Requirements

  • A BuchhaltungsButler account with API access β€” an API Client + API Secret (Settings β†’ API) and a customer api_key (see Get your API credentials).
  • Docker (Docker Desktop on macOS/Windows) for the quick start below β€” or Node.js β‰₯ 18 to run from source.

Quick start (Docker)

1. Add your credentials. Copy the example config and fill it in:

cp .env.example .env
# edit .env β†’ set BB_API_CLIENT, BB_API_SECRET, BB_API_KEY
#           β†’ set MCP_AUTH_TOKEN to a long random string if reachable beyond localhost

2. Start the server:

docker compose up -d --build

3. Confirm it's running:

curl -s http://localhost:3000/health     # β†’ {"status":"ok","server":"buchhaltungsbutler-mcp"}

4. Connect your MCP client. Remote endpoints are added in Claude as a custom connector (Settings β†’ Connectors), or bridged locally with mcp-remote. Add this under mcpServers in your client config, then fully quit and reopen the app:

{
  "mcpServers": {
    "buchhaltungsbutler": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:3000/mcp",
        "--header", "Authorization: Bearer YOUR_MCP_AUTH_TOKEN"
      ]
    }
  }
}

(Drop the --header line if you left MCP_AUTH_TOKEN empty.)

Prefer a prebuilt image?

Every push to main publishes a ready-to-run image to the GitHub Container Registry, so you can skip the local build entirely:

docker run -d --name buchhaltungsbutler-mcp -p 3000:3000 --env-file .env \
  ghcr.io/ohneben/buchhaltungsbutler-mcp:latest

Get your API credentials

BuchhaltungsButler uses two layers of authentication (see the official docs):

  1. HTTP Basic auth β€” an API Client + API Secret, your global API credentials. Find or create them in BuchhaltungsButler under Settings β†’ API.
  2. api_key β€” identifies which customer account a request acts on. It lives in that customer's company-data settings.

Put all three in .env. The server injects them on every request, so your assistant never sees them. A single tool call may optionally pass its own api_key to target a different customer.

Configuration

Everything is set in .env (copied from .env.example):

Variable Required Default Description
BB_API_CLIENT βœ… β€” API Client (Basic-auth username)
BB_API_SECRET βœ… β€” API Secret (Basic-auth password)
BB_API_KEY βœ… β€” Default customer api_key
MCP_TRANSPORT β€” stdio stdio or http (the Docker image defaults to http)
PORT β€” 3000 HTTP listen port
HOST β€” 0.0.0.0 HTTP bind address
MCP_HTTP_PATH β€” /mcp HTTP MCP route
MCP_AUTH_TOKEN β€” (off) Require Authorization: Bearer <token> on /mcp
BB_RATE_LIMIT β€” 90 Client-side requests/minute cap
BB_BASE_URL β€” (from spec) Override the API base URL

After changing .env, reload with docker compose up -d --force-recreate.

Tool safety categories

Each tool's description starts with one of these banners and carries the matching MCP annotations:

Banner Count readOnlyHint destructiveHint Meaning
🟒 READ-ONLY 12 true false Fetches data only. Safe.
🟑 WRITE Β· creates data 22 false false Creates records (not idempotent β€” may duplicate).
🟑 WRITE · updates data 4 false false Modifies existing master data in place.
🟑 WRITE Β· links/unlinks 4 false false Assigns/unassigns receipt ↔ transaction. Reversible.
🟑 WRITE · reverts state 4 false false Un-confirms postings / restores receipts. Reversible.
πŸ”΄ DESTRUCTIVE Β· deletes 2 false true Deletes a record. Confirm first.

Hosts that respect annotations (Claude included) can require confirmation for destructiveHint tools and trust readOnlyHint tools automatically.

Run npm run list-tools (no credentials needed) to print the full catalog at any time.

<details> <summary><strong>🟒 READ-ONLY (12)</strong></summary>

Tool Endpoint
accounts_get POST /accounts/get
cost_locations_get POST /cost-locations/get
postings_get POST /postings/get
receipts_get POST /receipts/get
receipts_get_id_by_customer POST /receipts/get/id_by_customer
receipts_assigned_transactions_get POST /receipts/assigned-transactions/get
transactions_get POST /transactions/get
transactions_get_id_by_customer POST /transactions/get/id_by_customer
transactions_assigned_receipts_get POST /transactions/assigned-receipts/get
settings_get_creditors POST /settings/get/creditors
settings_get_debtors POST /settings/get/debtors
settings_get_postingaccounts POST /settings/get/postingaccounts
</details>

<details> <summary><strong>🟑 WRITE · creates data (22)</strong></summary>

Tool Endpoint
accounts_add POST /accounts/add
comments_add POST /comments/add
cost_locations_add POST /cost-locations/add
invoices_create POST /invoices/create
invoices_create_draft POST /invoices/create/draft
invoices_create_e_invoice POST /invoices/create/e-invoice
postings_add_free POST /postings/add/free
postings_add_receipt POST /postings/add/receipt
postings_add_transaction POST /postings/add/transaction
postings_add_batch_free POST /postings/add-batch/free
postings_add_batch_receipts POST /postings/add-batch/receipts
postings_add_batch_transactions POST /postings/add-batch/transactions
receipts_add POST /receipts/add
receipts_addBatch POST /receipts/addBatch
receipts_upload POST /receipts/upload
settings_add_creditor POST /settings/add/creditor
settings_add_debtor POST /settings/add/debtor
settings_add_postingaccount POST /settings/add/postingaccount
settings_add_batch_creditors POST /settings/add-batch/creditors
settings_add_batch_debtors POST /settings/add-batch/debtors
transactions_add POST /transactions/add
transactions_addBatch POST /transactions/addBatch
</details>

<details> <summary><strong>🟑 WRITE · updates (4) · links (4) · reverts (4)</strong></summary>

Tool Endpoint Sub-category
cost_locations_update POST /cost-locations/update update
settings_update_creditor POST /settings/update/creditor update
settings_update_debtor POST /settings/update/debtor update
settings_update_postingaccount POST /settings/update/postingaccount update
transactions_assign_receipt POST /transactions/assign/receipt link
transactions_assign_batch_receipt POST /transactions/assign-batch/receipt link
transactions_unassign_receipt POST /transactions/unassign/receipt link
postings_assign_receipt_to_free_posting POST /postings/assign/receipt-to-free-posting link
postings_unconfirm_free POST /postings/unconfirm/free revert
postings_unconfirm_receipt POST /postings/unconfirm/receipt revert
postings_unconfirm_transaction POST /postings/unconfirm/transaction revert
receipts_restore_id_by_customer POST /receipts/restore/id_by_customer revert
</details>

<details> <summary><strong>πŸ”΄ DESTRUCTIVE Β· deletes (2)</strong></summary>

Tool Endpoint Note
receipts_delete_id_by_customer POST /receipts/delete/id_by_customer Restorable via receipts_restore_id_by_customer
cost_locations_delete POST /cost-locations/delete Not restorable
</details>

Run from source (stdio, no Docker)

Prefer the classic stdio mode for Claude Desktop? Build it locally:

npm install
npm run build

Then point Claude Desktop at the compiled entrypoint in claude_desktop_config.json:

{
  "mcpServers": {
    "buchhaltungsbutler": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/Buchhaltungsbutler MCP/dist/index.js"],
      "env": {
        "MCP_TRANSPORT": "stdio",
        "BB_API_CLIENT": "your-api-client",
        "BB_API_SECRET": "your-api-secret",
        "BB_API_KEY": "your-customer-api-key"
      }
    }
  }
}

Or run the container over stdio instead:

{
  "mcpServers": {
    "buchhaltungsbutler": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MCP_TRANSPORT=stdio",
        "-e", "BB_API_CLIENT", "-e", "BB_API_SECRET", "-e", "BB_API_KEY",
        "buchhaltungsbutler-mcp:latest"
      ],
      "env": {
        "BB_API_CLIENT": "your-api-client",
        "BB_API_SECRET": "your-api-secret",
        "BB_API_KEY": "your-customer-api-key"
      }
    }
  }
}

(Build the image first: docker build -t buchhaltungsbutler-mcp:latest .)

Keeping the spec current

The bundled spec.json is the official BuchhaltungsButler v1 OpenAPI spec β€” the source of truth for the tools. To refresh against a newer API version:

curl -s https://app.buchhaltungsbutler.de/docs/api/v1.de.json -o spec.json
npm run build

New paths are picked up automatically; add them to PATH_CATEGORY in src/categories.ts so they get the correct safety category (unmapped paths fall back to the safe-but-conservative create category).

Development

npm install
npm run build      # compile TypeScript β†’ dist/
npm test           # run the Vitest suite
npm run list-tools # print the categorized tool catalog (no credentials needed)

CI builds and tests every push across Node 20 and 22; pushes to main also publish a Docker image to the GitHub Container Registry.

Notes & conventions

  • Dates: YYYY-MM-DD. Amounts: dot decimal separator (e.g. -12.30).
  • File uploads (receipts_upload, receipts_add, receipts_addBatch): pass the file as a base64 string in the file field.
  • Paging: most get tools accept limit and offset.
  • Batch tools take arrays of objects; item schemas are resolved from the spec definitions and shown to the model.
  • Rate limit: BuchhaltungsButler allows 100 requests/customer/minute; the server self-throttles at BB_RATE_LIMIT (default 90) to stay safely under it.

Security

  • Your API credentials live only in .env, which is git-ignored. Never commit real secrets. If any leak, rotate them in BuchhaltungsButler β†’ Settings β†’ API.
  • The HTTP endpoint is unauthenticated by default (fine on localhost). To expose it beyond your machine, set MCP_AUTH_TOKEN and send it as an Authorization: Bearer <token> header β€” ideally behind TLS.

See SECURITY.md for the full policy and how to report a vulnerability.

Credits & license

An unofficial community integration for BuchhaltungsButler; not affiliated with or endorsed by BuchhaltungsButler. Built on the Model Context Protocol. Licensed under the MIT License.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured