fudaut-erechnung-bmf-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fudaut-erechnung-bmf-mcp Validate rechnung.pdf against BMF 15.10.2026 e-invoice rules"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fudaut-erechnung-bmf-mcp
MIT-licensed Model Context Protocol (MCP) server and CLI for deterministic German B2B e-invoicing validation (BMF circular of 15.10.2026, EN 16931, XRechnung 3.0, ZUGFeRD 2.3), JTL-Wawi WAWI-86919 PDF/A-3 XMP inspection, Shopware 6 B2B credit note math, and GAEB DA XML (X83/X84/X86) to ERP-JSON parsing.
English
fudaut-erechnung-bmf-mcp gives MCP-compatible AI assistants (Claude Desktop, Claude Code, Cursor, Windsurf, custom MCP hosts) and CI pipelines four deterministic local tools for the exact technical edge cases where German B2B e-invoicing and construction/wholesale ERP handoffs fail ahead of the mandatory issuance deadline on 01.01.2027 (for companies above 800,000 EUR prior-year revenue).
It runs 100 % locally over stdio or as a CLI binary, makes zero network calls, uses BigInt fixed-point decimal arithmetic (10^8 scale, zero IEEE-754 float drift), blocks XML External Entity (<!ENTITY / XXE) attacks, and enforces strict single-folder path isolation (ERECHNUNG_ORDNER). Both users and maintainer Ilia Isakov (Fudaut) pay 0 EUR in license or external API fees.
Scope & Legal Boundary (German StBerG): This software is a purely technical format, metadata, and arithmetic verification utility (§ 2 Abs. 3 Nr. 2 StBerG). It provides no tax advice (keine Steuerberatung, § 5 StBerG) and no legal advice. Tax rates, tax exemptions, account assignments, and final commercial release always remain with the operating business and its tax advisor (Steuerberater).
Four MCP Tools & CLI Commands
MCP Tool | CLI Subcommand | What It Checks / Produces | Modifies Disk |
|
| Validates XRechnung 3.0 and ZUGFeRD 2.3 ( | No ( |
|
| Inspects raw | No ( |
|
| Audits B2B credit notes ( | No ( |
|
| Parses GAEB DA XML ( | No ( |
Server-Enforced Safety Boundaries
Single-Folder Isolation (
ERECHNUNG_ORDNER): All file paths passed to MCP tools are resolved againstERECHNUNG_ORDNER(defaults toprocess.cwd()). Parent traversal (..), outside paths, and symlinks or Windows junctions pointing outside the root are rejected viafs.realpathSync. Files above20 MBare refused.Read-Only & Offline: Every tool is strictly read-only (
readOnlyHint: true), writes nothing to disk, and opens zero network connections.XXE & Zip-Bomb Protection:
<!ENTITYdeclarations in XMLDOCTYPEblocks are rejected deterministically;/FlateDecodePDF streams enforce a hard20 MBdecompression ceiling.Redacted Audit Log on
stderr: Each MCP call logs one compact JSON line tostderr(zeit,werkzeug,quelle,ergebnis) without company names, item texts, or monetary amounts.Exact
BigIntFixed-Point Math: Quantities, unit prices, discounts, and VAT amounts are computed at10^8fixed-point precision and commercially rounded half-away-from-zero to integer cents.
Quickstart & Installation
Prerequisite: Node.js >= 20.
1. Run Directly via npx (Claude Desktop, Claude Code, Cursor, Windsurf)
Works immediately from GitHub without requiring a local clone (and via npm once published):
{
"mcpServers": {
"erechnung-bmf": {
"command": "npx",
"args": ["-y", "github:iisakovbusiness-wq/fudaut-erechnung-bmf-mcp"],
"env": {
"ERECHNUNG_ORDNER": "/absolute/path/to/invoices-and-gaeb"
}
}
}
}Or from a local checkout (recommended for deterministic production environments):
git clone https://github.com/iisakovbusiness-wq/fudaut-erechnung-bmf-mcp.git
cd fudaut-erechnung-bmf-mcp
npm ci
npm test{
"mcpServers": {
"erechnung-bmf": {
"command": "node",
"args": ["/absolute/path/to/fudaut-erechnung-bmf-mcp/dist/cli.js"],
"env": {
"ERECHNUNG_ORDNER": "/absolute/path/to/invoices-and-gaeb"
}
}
}
}Where to place this JSON snippet:
Claude Desktop:
claude_desktop_config.jsonClaude Code:
.mcp.jsonin your project root or~/.claude.jsonCursor:
.cursor/mcp.jsonWindsurf:
~/.codeium/windsurf/mcp_config.json
2. Command-Line Interface (CLI & CI Gate)
When called with a subcommand, fudaut-erechnung-bmf-mcp runs as a deterministic CLI validator (Exit 0 when ok = true, Exit 1 when defects are detected, Exit 2 on I/O or usage errors):
# 1. Validate a construction final invoice against BMF 15.10.2026 & EN 16931
npx -y github:iisakovbusiness-wq/fudaut-erechnung-bmf-mcp check-bmf fixtures/bmf-schlussrechnung-valide-ubl.xml
# 2. Detect JTL-Wawi WAWI-86919 PDF/A-3 XMP defects as structured JSON
npx -y github:iisakovbusiness-wq/fudaut-erechnung-bmf-mcp check-xmp fixtures/jtl-wawi-86919-defekt-pdfa3.pdf --json
# 3. Audit a Shopware 6 B2B credit note for BG-20 sign errors and > 0.01 EUR drift
npx -y github:iisakovbusiness-wq/fudaut-erechnung-bmf-mcp check-storno fixtures/shopware-storno-defekt-cii.xml
# 4. Parse a GAEB X84 bid into structured ERP-JSON
npx -y github:iisakovbusiness-wq/fudaut-erechnung-bmf-mcp parse-gaeb fixtures/gaeb-angebot-valide.x84 --json3. Docker Container
docker build -t fudaut-erechnung-bmf-mcp .
docker run -i --rm -v /path/to/files:/data:ro -e ERECHNUNG_ORDNER=/data fudaut-erechnung-bmf-mcpPositive-Control Test Suite (fixtures/ & test/)
npm test compiles the TypeScript sources (strict: true) and runs automated tests (node --test) across 11 synthetic reference and defect fixtures (using strictly fictional .example company data):
Valid baselines (
0false positives):bmf-schlussrechnung-valide-ubl.xml,zugferd-valide-pdfa3.pdf,shopware-gutschrift-valide-ubl.xml,gaeb-ausschreibung-valide.x83,gaeb-angebot-valide.x84.Injected real-world failure modes (verified
ok: false):bmf-schlussrechnung-defekt-bt113-cii.xml(missingBT-113+ generic description),bmf-lv-pauschal-defekt-ohne-bg24.xml(missingBG-24LV attachment + brokenBT-112),jtl-wawi-86919-defekt-pdfa3.pdf(emptyfx:Version+ missingpdfaExtension:schemas),zugferd-defekt-ohne-xml.pdf(missing XML attachment),shopware-storno-defekt-cii.xml(BG-20sign inversion +BR-27+ rounding drift> 0.01 EUR),gaeb-auftrag-defekt-summe.x86(item and total sum mismatch).
Production E-Invoicing & ERP Integration (Fudaut)
This open-source MCP server and CLI remain permanently free (0 EUR license and API cost; users pay 0 EUR, maintainer Ilia Isakov / Fudaut pays 0 EUR external API fees).
If your business needs an automated production bridge between legacy ERPs, JTL-Wawi, Shopware 6, weclapp, Sage, or GAEB bills of quantities and BMF-compliant e-invoicing before 01.01.2027, Fudaut builds and operates turnkey pipelines at fixed prices (final prices under § 19 UStG, paid by the direct client to Fudaut):
48h Handoff Bridge (
48h-Übergabe-Brücke):1,450 EURfixed price (direct client pays725 EURat start and725 EURafter acceptance on real sample data, 100 % credited toward an implementation package).Turnkey E-Invoicing & ERP Packages:
3,900 EUR(Package S: single outbound/partial invoice or JTL/Shopware repair bridge),7,900 EUR(Package M: multi-route pipeline including GAEB/PDF bill-of-quantities extraction and validation),12,900 EUR(Package L: full end-to-end ERP/DMS integration), paid by the direct client to Fudaut.
Overview (German): https://www.fudaut.com/de/e-rechnung-automatisieren
Overview (English): https://www.fudaut.com/en/e-rechnung-automatisieren
Related MCP server: Kontor MCP
Deutsch
fudaut-erechnung-bmf-mcp ist ein lokal über stdio laufender Open-Source-MCP-Server und Kommandozeilen-Prüfer (MIT-Lizenz, TypeScript / Node.js) für genau die technischen Sonderfälle, an denen deutsche B2B-E-Rechnungen und Bau-/Großhandels-Schnittstellen vor dem gesetzlichen Ausstellungs-Stichtag am 01.01.2027 (für Unternehmen über 800.000 € Vorjahresumsatz) in der Praxis scheitern.
Der Server arbeitet zu 100 % lokal ohne externe Netzwerk- oder API-Aufrufe, rechnet exakt mit BigInt-Festkomma-Arithmetik (10^8-Skalierung ohne IEEE-754-Rundungsfehler), blockiert <!ENTITY-Angriffe (XXE) und erzwingt eine harte Einzelordner-Grenze (ERECHNUNG_ORDNER). Anwender zahlen 0 € Lizenz- oder API-Kosten, Ilia Isakov (Fudaut) zahlt 0 € laufende Drittanbieter-API-Kosten.
Rechtliche Abgrenzung (StBerG) & Systemgrenze
Dieses Projekt ist ein reines technisches Format-, Metadaten- und Rechenprüfwerkzeug (§ 2 Abs. 3 Nr. 2 StBerG). Es leistet keine Steuerberatung (§ 5 StBerG), keine Rechtsberatung und keine Kontierung. Steuersätze, Steuerbefreiungen, Rechnungsfreigaben und Buchungsentscheidungen liegen ausschließlich beim anwendenden Unternehmen und seiner Steuerkanzlei.
Die vier MCP-Werkzeuge & CLI-Befehle
MCP-Werkzeug | CLI-Befehl | Geprüfte Regeln & Ergebnis | Schreibt auf Platte |
|
| Prüft XRechnung 3.0 und ZUGFeRD 2.3 ( | nein ( |
|
| Prüft rohe | nein ( |
|
| Prüft B2B-Gutschriften ( | nein ( |
|
| Parst GAEB DA XML ( | nein ( |
Installation & Einbindung in MCP-Clients
Voraussetzung: Node.js ab Version 20.
1. Direktstart über npx (Claude Desktop, Claude Code, Cursor, Windsurf)
Sofort ohne lokalen Klon direkt von GitHub nutzbar:
{
"mcpServers": {
"erechnung-bmf": {
"command": "npx",
"args": ["-y", "github:iisakovbusiness-wq/fudaut-erechnung-bmf-mcp"],
"env": {
"ERECHNUNG_ORDNER": "/absoluter/pfad/zum/beleg-und-gaeb-ordner"
}
}
}
}Oder aus einem lokalen Klon für feste Produktionsumgebungen:
git clone https://github.com/iisakovbusiness-wq/fudaut-erechnung-bmf-mcp.git
cd fudaut-erechnung-bmf-mcp
npm ci
npm test{
"mcpServers": {
"erechnung-bmf": {
"command": "node",
"args": ["/absoluter/pfad/zu/fudaut-erechnung-bmf-mcp/dist/cli.js"],
"env": {
"ERECHNUNG_ORDNER": "/absoluter/pfad/zum/beleg-und-gaeb-ordner"
}
}
}
}Konfigurationsorte der gängigen Clients:
Claude Desktop:
claude_desktop_config.jsonClaude Code:
.mcp.jsonim Projektordner oder~/.claude.jsonCursor:
.cursor/mcp.jsonWindsurf:
~/.codeium/windsurf/mcp_config.json
2. Nutzung als CLI und in CI/CD-Pipelines
Mit Unterbefehl arbeitet fudaut-erechnung-bmf-mcp als schneller Kommandozeilen-Prüfer (Exit 0 bei fehlerfreier Datei, Exit 1 bei fachlichem Befund, Exit 2 bei Dateifehler):
# Bau-Schlussrechnung gegen BMF-Schreiben vom 15.10.2026 prüfen
node dist/cli.js check-bmf fixtures/bmf-schlussrechnung-valide-ubl.xml
# Hybride ZUGFeRD-PDF auf JTL WAWI-86919 XMP-Fehler prüfen (JSON-Ausgabe)
node dist/cli.js check-xmp fixtures/jtl-wawi-86919-defekt-pdfa3.pdf --json
# Shopware-6-Storno auf Vorzeichenumkehr und Rundungsdrift > 0,01 EUR prüfen
node dist/cli.js check-storno fixtures/shopware-storno-defekt-cii.xml
# GAEB-X84-Angebot in strukturiertes ERP-JSON umwandeln
node dist/cli.js parse-gaeb fixtures/gaeb-angebot-valide.x84 --jsonProjektstruktur & Registry-Metadaten
src/math.ts Exakte BigInt-Festkomma-Arithmetik (Skalierung 10^8, kaufmännische Rundung)
src/xml.ts Deterministischer XML-Parser mit Zeilennummern, xmlns und XXE-Sperre
src/invoiceModel.ts Kanonisches EN-16931-Modell für UBL 2.1 (Invoice/CreditNote) und UN/CEFACT CII
src/pdfContainer.ts PDF/A-3-Container-Leser (/Metadata, /Filespec, /FlateDecode via node:zlib)
src/bmf2026.ts Werkzeug 1: BMF-Schreiben 15.10.2026, EN 16931 & Storno-Prüfung
src/pdfa3Xmp.ts Werkzeug 2: ZUGFeRD / Factur-X PDF/A-3 XMP & JTL WAWI-86919
src/shopwareStorno.ts Werkzeug 3: Shopware 6 B2B Gutschrifts-, BG-20/21- & Rundungsprüfung
src/gaebParser.ts Werkzeug 4: GAEB DA XML (X83, X84, X86) nach ERP-JSON samt Summenabgleich
src/server.ts MCP-Server (stdio), Einzelordner-Grenze (ERECHNUNG_ORDNER), stderr-Protokoll
src/cli.ts Kombinierter MCP-Starter (0 Argumente) und CLI-Runner
fixtures/ 11 synthetische Positiv- und Defekt-Musterdateien (nur .example-Daten)
test/ Automatisierte Unit-, Positivkontroll-, MCP-stdio- und CLI-Tests (node --test)
server.json Metadaten nach Official MCP Registry Schema (2025-12-11)
glama.json Glama-Maintainer-Metadaten
Dockerfile Mehrstufiges Node-22-Alpine-Image (non-root USER node)Produktive E-Rechnungs- & ERP-Strecke aufbauen lassen (Fudaut)
Dieses Open-Source-Paket ist unter der MIT-Lizenz dauerhaft kostenlos (0 € Lizenz- und API-Kosten; Anwender zahlen 0 €, Ilia Isakov / Fudaut zahlt 0 € externe API-Gebühren).
Wenn Ihr Betrieb vor dem 01.01.2027 eine durchgehend automatisierte Brücke zwischen bestehendem ERP, JTL-Wawi, Shopware 6, weclapp, Sage oder GAEB-Leistungsverzeichnissen und BMF-konformen E-Rechnungen benötigt, setzt Fudaut die produktive Strecke zum klaren Festpreis um (Endpreise nach § 19 UStG, jeweils gezahlt vom Direktkunden an Fudaut):
48h-Übergabe-Brücke:
1.450 €Festpreis (Direktkunde zahlt725 €bei Start und725 €erst nach Abnahme an echten Musterdaten, zu 100 % anrechenbar auf ein Umsetzungspaket).Schlüsselfertige E-Rechnungs- & ERP-Pakete:
3.900 €(Paket S: BMF-konforme Ausgangs-/Abschlagsrechnung oder JTL-/Shopware-Reparaturbrücke),7.900 €(Paket M: Mehrstrecken-Prüfung inklusive GAEB-/PDF-LV-Extraktion und ERP-Übergabe),12.900 €(Paket L: vollständige ERP-/DMS-Integration inklusive Sonderfall-Workflows), jeweils gezahlt vom Direktkunden an Fudaut.
Alle Details und Ablauf: https://www.fudaut.com/de/e-rechnung-automatisieren
Marken- und Lizenzhinweis / Trademarks & License
Markenhinweis / Trademarks: JTL und JTL-Wawi sind Marken der JTL-Software-GmbH. Shopware ist eine Marke der shopware AG. DATEV ist eine eingetragene Marke der DATEV eG. ZUGFeRD ist eine Marke des Forums elektronische Rechnung Deutschland (FeRD) / AWV e.V. GAEB ist eine Bezeichnung des Gemeinsamen Ausschusses Elektronik im Bauwesen. Dieses Open-Source-Projekt steht in keiner gesellschaftsrechtlichen oder vertraglichen Verbindung zu den genannten Rechteinhabern und ist von ihnen weder geprüft noch zertifiziert. Alle Firmen-, Projekt- und Rechnungsangaben unter
fixtures/sind frei erfunden (.example).Lizenz / License: Veröffentlicht unter der MIT-Lizenz (siehe
LICENSE).
Available Tools
4 toolscheck_bmf_2026_erechnungBMF 15.10.2026 & EN 16931 E-Rechnung prüfenARead-onlyIdempotent
Prüft XRechnung 3.0 und ZUGFeRD 2.3 (UBL 2.1 Invoice/CreditNote, UN/CEFACT CII XML oder hybride PDF/A-3) deterministisch auf EN-16931-Kernarithmetik (BT-106, BT-109, BT-110, BT-112, BT-115), die Sonderregeln des BMF-Schreibens vom 15.10.2026 für Bau-/SHK-Abschlags- und Schlussrechnungen (BT-113 Vorauszahlung, Einzelaufstellung in BT-22/BT-25 oder Anhang BG-24, konkrete Leistungsbeschreibung BT-153/BT-154 bzw. LV-Anhang BG-24) sowie Storno-/Gutschrifts-Typcodes (381/384/389) und Rabatt-Vorzeichenfehler. Rein lokal, keine externen APIs.
Inputs: xml, pfad. Returns: ok, summen, syntax, befunde, +13 more
check_shopware_storno_mathShopware 6 B2B Storno-, Gutschrifts- & RundungspruefungARead-onlyIdempotent
Prüft B2B-Gutschriften (381), Rechnungskorrekturen (384), Stornos, Positionen und Dokument-/Positionsnachlaesse (BG-20/BG-21, BG-27/BG-28) in UBL 2.1 und UN/CEFACT CII auf Vorzeichenumkehr, negative Einzelpreise (BR-27), fehlende Bezugsrechnungen (BT-25) und Brutto-zu-Netto-Rundungsdrift > 0,01 EUR.
Inputs: xml, pfad. Returns: ok, summen, syntax, befunde, +11 more
check_zugferd_pdfa3_xmpZUGFeRD / Factur-X PDF/A-3 XMP & JTL WAWI-86919 prüfenARead-onlyIdempotent
Analysiert rohe PDF/A-3-Dateien oder XMP-Metadaten gezielt auf den JTL-Wawi-Fehler WAWI-86919 (leeres oder fehlerhaftes fx:Version / zf:Version-Feld, fehlendes pdfaExtension:schemas für Factur-X/ZUGFeRD, fehlendes eingebettetes factur-x.xml/zugferd-invoice.xml) sowie Dokumenttyp- und Summenabweichungen zwischen XMP, eingebettetem XML und optionalen Referenzbeträgen.
Inputs: pfad, xmpXml, pdfBase64, embeddedXml, +3 more. Returns: ok, pdfa, befunde, eingabeTyp, +5 more
parse_gaeb_xmlGAEB DA XML (X83/X84/X86) nach ERP-JSON parsenARead-onlyIdempotent
Parst GAEB DA XML Leistungsverzeichnisse (X83 Angebotsaufforderung, X84 Angebotsabgabe, X86 Auftragserteilung; Versionen 3.2 und 3.3) in sauberes, strukturiertes ERP-JSON inklusive Projekt-/Vergabekopf, Los-/Titel-Hierarchie, Ordnungszahl (OZ), Menge, Einheit, Einheitspreis (EP), Gesamtpreis (GP) sowie exaktem Abgleich zwischen berechneter und ausgewiesener Gesamtsumme.
Inputs: xml, pfad, dateiname. Returns: ok, kopf, summen, befunde, +4 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct artifact: general XRechnung/ZUGFeRD BMF compliance, Shopware credit-note sign math, PDF/A-3 XMP metadata, and GAEB XML parsing. However, the first two both examine sign errors, credit-note type codes (381/384) and UBL/CII documents, so an agent may hesitate over which to call for a credit note. Descriptions mitigate this but the boundary is not razor-sharp.
All names are snake_case with a verb-first pattern: check_bmf_2026_erechnung, check_shopware_storno_math, check_zugferd_pdfa3_xmp, parse_gaeb_xml. The verb shift (three check_ vs one parse_) is justified by function and remains readable. Minor inconsistency in name shape (domain identifiers like 'bmf_2026' vs 'zugferd_pdfa3_xmp') but overall predictable.
Four tools map cleanly onto four distinct document classes (XRechnung/ZUGFeRD, Shopware credit notes, PDF/A-3 XMP, GAEB), with each tool earning its place. The surface is well-scoped for a niche validation server with no redundant or filler tools.
Validation coverage is deep for the BMF 2026 construction context, credit notes, and GAEB parsing, but there are notable gaps: only GAEB offers a parse-to-JSON operation, with no equivalent extraction/normalization for UBL/CII invoices, no generic EN-16931 or XRechnung-CIUS schematron check outside the BMF 2026 rules, and no remediation/export tool. Agents may hit dead ends when asked to summarize or fix a non-construction e-invoice.
Maintenance
Related MCP Connectors
Create ZUGFeRD e-invoices from JSON or PDF, verify Factur-X, check VAT IDs and Peppol.
Validate, parse, fix and render e-invoices: XRechnung, ZUGFeRD, Peppol, KSeF, Facturae, MyInvois
XRechnung, Factur-X, Peppol, PINT AE, FatturaPA, KSeF → JSON + fix hints. Hosted; MIT=examples only
EN 16931: validate invoice data, UBL/CII or PDF; emit XRechnung/Peppol XML, never a PDF.
Related MCP Servers
- AlicenseAqualityBmaintenanceValidates electronic invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS, etc.) against authority-pinned rules and explains failures.5247 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to locally parse, validate, audit, explain, generate, and convert XRechnung and ZUGFeRD/Factur-X e-invoices using official rule sets, fully offline with no API keys required.Apache 2.0

rechnungsapi-mcpofficial
AlicenseAqualityBmaintenanceEnables AI assistants and agents to create, validate, read and convert German and EU e-invoices in ZUGFeRD, XRechnung and Factur-X formats, including extracting structured data from scanned or PDF invoices and embedding XML into PDF/A-3 files. It can run as a hosted remote server or locally, with each request authenticated by the caller's own API token.1010 npmMIT- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read, validate against the official KoSIT rules (no Java), create, and display XRechnung and ZUGFeRD e-invoices, and export incoming invoices as DATEV posting batches. Running it with a cloud language model sends invoice contents to that provider's service.1MIT