Listed from the MCP registry; nobody on Odel publishes it.
Complete sevDesk MCP server: all API endpoints, guarded writes, built-in bookkeeping audits.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y sevdesk-mcp
MCP client config
{
"mcpServers": {
"sevdesk": {
"command": "npx",
"args": [
"-y",
"sevdesk-mcp"
]
}
}
}English · Deutsch
The complete MCP server for sevDesk: every API endpoint, guarded writes, and a built-in bookkeeping audit layer.
Connect Claude (or any MCP client) to your sevDesk account: list and create vouchers and invoices, reconcile bank transactions, reach all 154 API operations — and run audits that know what a wrong booking looks like: a foreign supplier booked as domestic 0 % instead of Reverse Charge §13b, a tax rule the booking account doesn't allow, a payment with no receipt behind it.
Status: v0.6.0. Live-validated against a real sevDesk account (bookkeeping system 2.0) — where the audit found exactly the class of mis-booking it was built for. See CHANGELOG.md.
You need: Node.js ≥ 22, a sevDesk account, and an MCP client (Claude Code, Claude Desktop, or any other).
1. Get your API token
In sevDesk: Settings → Users → your user → API. The token is a 32-character hex string.
⚠️ A sevDesk API token has no scopes — it can do everything your login can. Treat it like your password, and start in read-only mode.
2. Connect your MCP client
Claude Code — one command, then put your real token into the config it writes (~/.claude.json):
claude mcp add --scope user sevdesk \
--env SEVDESK_API_TOKEN=REPLACE_ME \
--env SEVDESK_READ_ONLY=true \
-- npx -y sevdesk-mcp
Claude Desktop — add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"sevdesk": {
"command": "npx",
"args": ["-y", "sevdesk-mcp"],
"env": {
"SEVDESK_API_TOKEN": "your-token",
"SEVDESK_READ_ONLY": "true"
}
}
}
}
Any other MCP client works the same way: stdio transport, npx -y sevdesk-mcp (or node dist/index.js from a clone), config via environment variables. To run from source instead: git clone https://github.com/joosthel/sevdesk-mcp && cd sevdesk-mcp && npm install && npm run build.
3. First run
Restart your client and ask it to run sevdesk_ping. You should see ok: true, your bookkeeping system version (2.0 = taxRule, 1.0 = legacy taxType) and the mode (READ-ONLY). Then start asking:
What a finding looks like:
{
"severity": "high",
"code": "zero_rate_booked_as_domestic",
"voucher": "2026-06-24 · Acme Cloud, Inc. · 88.03 EUR · #INV-2043",
"detail": "Booked as \"Vorsteuerabziehbare Aufwendungen\" (taxRule 9) but every position carries 0 % VAT, and the supplier's contact is registered in \"us\".",
"suggestion": "If this is a service from a supplier established abroad, it is Reverse Charge: taxRule 12 (§13b Abs. 2, with input-tax deduction) …"
}
4. Enabling writes (optional, later)
Once you trust the setup, set SEVDESK_READ_ONLY to "false" and restart the client. Every write tool accepts dryRun (and honors the global SEVDESK_DRY_RUN) — it shows exactly what would be sent without sending it. See Write safety.
30 tools cover all 154 API operations (26 without SEVDESK_ALLOW_BOOKING).
| Tool | What it does |
|---|---|
sevdesk_audit_vat | Flags reverse-charge mis-bookings, rules from the wrong side of the books, tax rules the booking account doesn't allow, rates that contradict the tax rule, sums that don't add up, suppliers booked inconsistently. Uses the supplier contact's country where available |
sevdesk_reverse_charge_report | Totals the §13b tax base for a period — split into nets-to-zero (rule 12/14), actually payable (rule 13) and own revenue (rule 5) |
sevdesk_find_duplicates | Repeated document numbers, same supplier + amount within N days, vouchers stuck in Entwurf |
sevdesk_subscription_gaps | Detects monthly cadences per supplier and reports the missing months |
sevdesk_diff_receipt_folder | Diffs a local folder of receipt PDFs against booked vouchers, both directions (requires SEVDESK_RECEIPT_DIRS) |
sevdesk_reconcile_transactions | Matches bank transactions against vouchers by amount and date proximity: payments without a receipt, vouchers without a payment |
sevdesk_invoice_aging | Who owes you money and for how long: open invoices bucketed by days overdue, partially paid remainders, drafts never sent |
sevdesk_ping · sevdesk_summarize · sevdesk_list_vouchers · sevdesk_get_voucher · sevdesk_list_invoices · sevdesk_list_contacts · sevdesk_list_transactions · sevdesk_receipt_guidance · sevdesk_upload_voucher_file · sevdesk_create_voucher · sevdesk_set_tax_rule · sevdesk_create_invoice · sevdesk_get_invoice_pdf · sevdesk_mark_invoice_sent
Booking (only with SEVDESK_ALLOW_BOOKING=true): sevdesk_link_transaction books vouchers against an existing bank transaction, the same as assigning receipts in the sevDesk UI; a split payment goes in one call. sevdesk_reset_voucher_to_open removes all payments from a voucher again. sevdesk_delete_voucher and sevdesk_set_transaction_private (see Ledger cleanup) are booking tools too, and sevdesk_update_draft_voucher only accepts finalize with the flag. sevdesk_create_voucher takes status 100 (open), 1000 (paid), payDate and paidAmount only with the flag; it creates drafts otherwise. With the flag, sevdesk_call can also book invoice and credit-note payments (bookInvoice, bookCreditNote); without it, those and the other booking operations are refused.
Highlights: sevdesk_summarize aggregates invoices or vouchers server-side — counts and net/tax/gross sums grouped by month, status or contact — so questions like "revenue in Q2" or "expenses by supplier" cost a few hundred tokens however large the ledger is. sevdesk_receipt_guidance answers "which booking account / tax rule / rate combinations does sevDesk actually accept" from sevDesk's own validation table. sevdesk_set_tax_rule rebooks a draft voucher onto a different VAT rule with guardrails. sevdesk_create_invoice always creates drafts — nothing reaches a customer without review. sevdesk_get_invoice_pdf saves the rendered PDF without touching the invoice's send state.
| Tool | What it does |
|---|---|
sevdesk_delete_voucher | Deletes a draft voucher (status 50) without payments, e.g. a duplicate; returns what was deleted. Needs SEVDESK_ALLOW_BOOKING |
sevdesk_set_transaction_private | Marks an open bank transaction (status 100) as private (300); sevDesk books it as a private withdrawal or deposit. Needs SEVDESK_ALLOW_BOOKING |
sevdesk_upload_voucher_file_content | Uploads a receipt sent inline as base64 (PDF/PNG/JPG or XML e-invoice, checked by content, max 10 MB) — for hosted clients without filesystem access |
sevdesk_update_draft_voucher | Corrects a draft: date, document number, supplier, tax rule, positions (amount, rate, booking account); finalize sets it to open (100) and needs SEVDESK_ALLOW_BOOKING. A new tax rule is checked against the voucher's side and the position rates |
All four refuse enshrined objects, accept dryRun, and read the object back to verify the change. They exist so that routine cleanup does not need the generic sevdesk_call, which knows nothing about an object's state. To mark a voucher paid, link it to its bank transaction with sevdesk_link_transaction; it takes an optional type per voucher (CB for a Skonto, MTC for bank charges, O for other reductions) and warns when the bank text does not name the supplier.
sevdesk_list_operations · sevdesk_describe_operation · sevdesk_call
Rather than registering 154 tools and swamping the client's tool list, the server ships a searchable catalogue generated from sevDesk's OpenAPI document. Search for what you need, read its signature, call it. Every endpoint is reachable.
The tools compose — these are everyday bookkeeping jobs, each a single prompt:
SEVDESK_RECEIPT_DIRS)The package ships an Agent Skill with these workflows spelled out — monthly close order, receipt triage, §13b investigation, audit-finding interpretation — so agents load the know-how on demand instead of rediscovering it each session. For Claude Code, copy it next to your project:
cp -r node_modules/sevdesk-mcp/skills/sevdesk-bookkeeping .claude/skills/
(or copy from a clone of this repo). Clients without skill support lose
nothing: the server's own instructions and tool descriptions carry the
essentials.
| Variable | Default | Purpose |
|---|---|---|
SEVDESK_API_TOKEN | (required) | Your sevDesk API token |
SEVDESK_READ_ONLY | false | Boolean (1/true/yes/on or 0/false/no/off; anything else fails at startup). Hide write tools; sevdesk_call stays listed but refuses mutating operations at call time |
SEVDESK_DRY_RUN | false | Boolean, same accepted values. Show what a write would send, without sending it |
SEVDESK_RECEIPT_DIRS | (unset — file tools disabled) | Allowlist of absolute directories the receipt file tools may read and write, separated by the platform path separator (: on macOS/Linux, ; on Windows). Symlinks are resolved, so a link pointing outside the list is refused |
SEVDESK_BASE_URL | https://my.sevdesk.de/api/v1 | Override the API host. Must be https:// (the token is sent as a header); plain http:// is accepted only for localhost, 127.0.0.1 and [::1] |
SEVDESK_TIMEOUT_MS | 30000 | Per-request timeout (whole number > 0) |
SEVDESK_MAX_RETRIES | 3 | Whole number >= 0; 0 means no retries at all. Retries with jittered backoff and a clamped Retry-After. A 429 is always retried (the throttled call never ran); a 5xx or network failure is retried only for reads — a write is never replayed on an ambiguous failure, so a timeout cannot create a duplicate draft |
SEVDESK_RATE_LIMIT | 4 | Client-side pacing in requests/second (token bucket), so bursty audit fan-outs don't collide with sevDesk's throttle. 0 disables pacing |
SEVDESK_ALLOW_BOOKING | false | Boolean, same accepted values. List the booking tools (sevdesk_link_transaction, sevdesk_reset_voucher_to_open, sevdesk_delete_voucher, sevdesk_set_transaction_private), which book and remove payments or delete and reclassify, allow finalize on sevdesk_update_draft_voucher, allow status 100/1000, payDate and paidAmount on sevdesk_create_voucher, and lets sevdesk_call run the booking operations (bookVoucher, bookInvoice, bookCreditNote, their *ResetToOpen and *ResetToDraft, createPrivateTransactionRule) and the generic writes that book (see Write safety). Has no effect in read-only mode |
SEVDESK_DEBUG | false | Boolean, same accepted values. Log METHOD /path -> status to stderr — never query strings, bodies or the token |
Set these in the env block of your MCP client — that is the supported path and the
one the client controls. For runs outside a client (npm run dev, node dist/index.js
from a clone), copy .env.example to .env in the package root and the server reads it
at startup. The file is read from the package root, never the working directory, and
real environment variables always win over it, so a client's env block can never be
shadowed by a stale .env. .env is gitignored.
The threat model, guarantees and vulnerability reporting are documented in SECURITY.md.
Everything runs locally: your token and accounting data flow only between your MCP client and the sevDesk API — no storage, no telemetry, no third parties. Full policy: PRIVACY.md.
Read-only mode is enforced three times: write tools are hidden from the tool list, the dispatcher refuses them, and the HTTP client refuses every mutating request independently. sevdesk_call treats GETs that change state (sendByWithRender, a truthy enshrine* flag, preventSendBy turned off) as writes. With writes enabled:
dryRun and honors the global SEVDESK_DRY_RUN.sevdesk_create_voucher and sevdesk_create_invoice default to drafts — nothing is booked or sent silently.SEVDESK_ALLOW_BOOKING=true the booking tools are hidden and refused, and sevdesk_call refuses the ten booking operations (bookVoucher, bookInvoice, bookCreditNote, their *ResetToOpen and *ResetToDraft, createPrivateTransactionRule) and writes whose body books: updateCheckAccountTransaction with a status, updateVoucher with a status other than 50, paidAmount or payDate, voucherFactorySaveVoucher with the same on voucher, createTransaction with a status other than 100, and any write that carries paidAmount, payDate, or a transfer link anywhere in the body or query, or sets an invoice, credit note or voucher to 750 (partly paid) or 1000 (paid), dry runs included. sevdesk_create_voucher refuses status 100/1000, payDate and paidAmount, and sevdesk_update_draft_voucher refuses finalize. sevdesk_link_transaction only takes open bank transactions and checks every voucher and the total before the first booking. sevdesk_reset_voucher_to_open is marked destructive. Both refuse foreign-currency vouchers. sevdesk_delete_voucher and sevdesk_set_transaction_private are booking tools as well.sevdesk_set_tax_rule and sevdesk_mark_invoice_sent refuse enshrined documents and verify their changes by reading the document back.sevdesk_delete_voucher is the only tool that cannot be undone; it carries the MCP destructiveHint.sevdesk_get_invoice_pdf never overwrites an existing file.With sevdesk-Update 2.0, sevDesk models VAT through taxRule — split into a revenue set and an expense set. Older documents still carry the deprecated taxType string; the server understands both generations.
Expense rules (incoming vouchers, creditDebit: "C"):
| taxRule | Meaning | Rates | Legacy taxType |
|---|---|---|---|
8 | Innergemeinschaftliche Erwerbe | 0 / 7 / 19 % | — |
9 | Vorsteuerabziehbare Aufwendungen | 0 / 7 / 19 % | default |
10 | Nicht vorsteuerabziehbare Aufwendungen | 0 % | ss |
12 | Reverse Charge §13b Abs. 2, mit Vorsteuerabzug | 0 % | — |
13 | Reverse Charge §13b, ohne Vorsteuerabzug | 0 % | — |
14 | Reverse Charge §13b Abs. 1, EU | 0 % | — |
16 | Nicht steuerbar (Ausgabe) | 0 % | — |
Revenue rules (outgoing documents, creditDebit: "D"):
| taxRule | Meaning | Rates | Legacy taxType |
|---|---|---|---|
1 | Umsatzsteuerpflichtige Umsätze | 0 / 7 / 19 % | default |
2 | Ausfuhren | 0 % | — |
3 | Innergemeinschaftliche Lieferungen | 0 / 7 / 19 % | eu |
4 | Steuerfreie Umsätze §4 UStG | 0 % | — |
5 | Reverse Charge §13b (Feld 60) | 0 % | — |
11 | Steuer nicht erhoben nach §19 UStG | 0 % | ss |
17 | Nicht im Inland steuerbare Leistung | 0 % | noteu |
22 | Nicht steuerbar (Einnahme) | 0 % | — |
(Rules 18–21 — One Stop Shop and §18b — exist on invoices but are not accepted on vouchers; the audit flags them if they appear anyway.)
The classic mis-booking: a subscription from a supplier established abroad, booked as a plain domestic expense (taxRule 9) with a 0 % position. It looks harmless — reverse charge nets to zero for anyone with input-tax deduction — but it silently drops the §13b tax base out of your VAT return. The correct booking is taxRule 12 (or 13/14, depending on your situation). A CSV export cannot show you the difference, because it only carries the rate, not the rule. sevdesk_audit_vat finds it.
npm run dev # run from source
npm test # unit tests
npm run typecheck # tsc --noEmit
npm run build:catalog # regenerate the operation catalogue from openapi/sevdesk-openapi.yaml
See CONTRIBUTING.md.
src/server.ts)MIT