mcp-server-erechnung
This MCP server lets AI agents deterministically generate, validate, parse, and upgrade German-compliant E-Rechnung documents (ZUGFeRD/XRechnung).
Generate ZUGFeRD 2.5 PDF/A-3b invoices with DIN 5008 layout, GiroCode QR, and embedded factur-x.xml, or pure XRechnung 3.0.2 XML from structured JSON in under 300ms.
Validate ZUGFeRD PDFs or XRechnung XML against EN 16931 XSD, KoSIT German BR-DE rules, and veraPDF, returning structured rule IDs, fields, and human hints.
Parse incoming E-Rechnung files via a fast native XML path or guarded legacy PDF extraction, including math and IBAN verification with discrepancy checks.
Embed ZUGFeRD XML and GiroCode into an existing visual PDF, upgrading it to a PDF/A-3b hybrid invoice.
Convert flat legacy PDFs up to 5 pages into ZUGFeRD 2.5 PDF/A-3b under strict BigDecimal math and MOD-97 IBAN guardrails.
Auto-map human units to UN/ECE Rec 20 codes and infer 0% VAT categories with mandatory BT-120 exemption text.
Operate statelessly with no invoice persistence or PII logging, keeping the server GDPR/DSGVO safe.
Generates and validates DATEV-compatible ZUGFeRD 2.5 / Factur-X PDF/A-3b e-invoices, enforcing German e-invoicing business rules and embedding structured invoice XML in PDF/A-3b documents.
Supports SEPA payments by stamping scannable EPC SEPA GiroCode QR codes on invoices and validating seller IBANs with ISO 13616 MOD-97 checks.
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., "@mcp-server-erechnung Create an XRechnung for 3 hours of consulting at €120 to Stadt Köln"
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.
German E-Rechnung MCP Server (mcp-server-erechnung)
Official Model Context Protocol (MCP) server for German B2B & B2G E-Invoicing compliance (EN 16931 / Wachstumschancengesetz 2025–2027, KoSIT XRechnung 3.0.2, DATEV ZUGFeRD 2.5 / Factur-X PDF/A-3b, SEPA GiroCode QR, and Smart Hybrid Parsing).
Connect Claude Desktop, Claude Code, Cursor, Windsurf, Cline, or n8n AI Agents to deterministic German E-Rechnung generation, official KoSIT/veraPDF validation, and guarded Empfangspflicht parsing — with zero silent LLM hallucinations in tax or monetary fields.
Why Use This MCP Server?
100% Deterministic Financial Math (
BigDecimal+ ISO 13616MOD-97): Your AI agent never generates raw XML and never computes final invoice math. Everyqty * unitPriceNet, VAT bucket, andgrossTotalis calculated deterministically in exact decimal arithmetic, and every Seller IBAN is verified via Modulo-97.DATEV & KoSIT XRechnung 3.0 Compliant (
BR-DE-*+veraPDF): Enforces German Business Rules (SellerContact,Leitweg-ID/BT-10, SEPABG-16), embeds TrueType fonts +sRGBICC profiles (ISO 19005-3 PDF/A-3b), and stamps scannable German GiroCode (EPC SEPA QR) payment codes.Smart Developer DX: Automatically maps human units (
"Stk","Std","Tage","pauschal","kg","kWh") to UN/ECE Rec 20 codes (C62,HUR,DAY,LS,KGM,KWH) and auto-infers0%VAT categories (AE§ 13b Reverse Charge,K§ 6a Intra-EU,E§ 19 UStG,GExport) with mandatoryBT-120German exemption text.100% Stateless & GDPR / DSGVO Safe: Zero invoice persistence or PII logging.
Related MCP server: Kontor MCP
Available MCP Tools
Tool Name | Description |
| Deterministically generate a |
| Validate any ZUGFeRD PDF or XRechnung XML against official EN 16931 XSD, KoSIT |
| Smart Hybrid Empfangspflicht parser: |
| Upgrade an existing visual PDF (Base64) + JSON into a true |
| Convert a flat legacy PDF (Base64, max 5 pages) into ZUGFeRD 2.5 |
Quickstart
1. Get an API Key (Free Tier Available)
Subscribe to the German E-Rechnung ZUGFeRD & XRechnung API on RapidAPI Hub: https://rapidapi.com/flamegoalhunter/api/german-e-rechnung-zugferd-and-xrechnung
2. Configure in Claude Desktop / Cursor / Windsurf / Claude Code
Add to your claude_desktop_config.json or .cursor/mcp.json (strictly one variable — your RAPIDAPI_KEY):
{
"mcpServers": {
"german-erechnung": {
"command": "npx",
"args": ["-y", "mcp-server-erechnung"],
"env": {
"RAPIDAPI_KEY": "YOUR_RAPIDAPI_KEY"
}
}
}
}Or add via Claude Code CLI in one command:
claude mcp add german-erechnung -e RAPIDAPI_KEY=YOUR_RAPIDAPI_KEY -- npx -y mcp-server-erechnungLicense
MIT © FGH Studio
Available Tools
5 toolsembed_zugferd_pdfARead-onlyIdempotent
Deterministically upgrade an existing visual PDF plus structured invoice JSON into an ISO 19005-3 PDF/A-3b ZUGFeRD 2.5 hybrid invoice with embedded factur-x.xml. Use when you already have BOTH a custom-designed PDF layout and structured invoice JSON; use generate_erechnung to render a new PDF from JSON alone, or magic_convert_pdf when you only have an unstructured PDF without JSON. Returns JSON with format ('ZUGFERD'), profile, filename, mimeType ('application/pdf'), sizeBytes, and pdfBase64 (Base64-encoded ZUGFeRD PDF/A-3b).
Inputs: invoice (required), pdfBase64 (required), profile, stampGiroCode.
generate_erechnungARead-onlyIdempotent
Deterministically generate a brand-new German E-Rechnung (ZUGFeRD 2.5 PDF/A-3b or KoSIT XRechnung 3.0.2 XML) from structured JSON (<300ms, exact BigDecimal math & MOD-97 IBAN verification). Use when creating an invoice from structured JSON without an existing PDF; use embed_zugferd_pdf if you already have a visual PDF, or magic_convert_pdf if you only have an unstructured PDF. Returns JSON containing format, filename, mimeType, and either xml (UTF-8 CII XML) or pdfBase64 (Base64 PDF/A-3b).
Inputs: invoice (required), format, profile, stampGiroCode.
magic_convert_pdfARead-onlyIdempotent
Convert a flat, unstructured legacy PDF invoice (max 5 pages) into a compliant ZUGFeRD 2.5 PDF/A-3b using guarded AI extraction verified by deterministic BigDecimal math and ISO 13616 MOD-97 IBAN checks. Use ONLY when you have a flat PDF and no structured JSON; prefer embed_zugferd_pdf when structured JSON is available, or generate_erechnung when creating an invoice from scratch. Returns JSON with format ('ZUGFERD'), profile, filename, mimeType ('application/pdf'), sizeBytes, and pdfBase64 (or an actionable validation error if math/IBAN guardrails fail).
Inputs: pdfBase64 (required), profile, stampGiroCode.
parse_erechnungARead-onlyIdempotent
Extract structured invoice header, seller, buyer, bank IBAN, tax breakdown, and line items from a ZUGFeRD PDF, XRechnung XML, or legacy flat PDF. Extracts embedded XML deterministically in ~20ms (source='NATIVE_XML') or falls back to guarded extraction on flat PDFs (source='AI_EXTRACTED'). Use for data extraction (Empfangspflicht); use validate_erechnung instead for strict KoSIT/veraPDF compliance checks. Returns JSON with source, math_verified, iban_valid, invoiceNumber, issueDate, currency, seller, buyer, items[], netTotal, vatTotal, and grossTotal.
Inputs: filename, fileBase64, xmlContent.
validate_erechnungARead-onlyIdempotent
Validate a ZUGFeRD PDF/A-3b or XRechnung 3.0 XML against official EN 16931 XSD, KoSIT German Business Rules (BR-DE-*), and veraPDF ISO 19005-3. Use to check statutory compliance and diagnose rule violations; use parse_erechnung instead when you want to extract invoice fields and line items. Returns JSON with valid (boolean), profile, format, pdfaCompliant, errors[], and warnings[] (each with rule_id, field, message, and human_hint).
Inputs: filename, fileBase64, xmlContent.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct action-object pair: create from JSON (generate_erechnung), compliance check (validate_erechnung), field extraction (parse_erechnung), attach XML to an existing PDF (embed_zugferd_pdf), and AI-based legacy conversion (magic_convert_pdf). The descriptions explicitly disambiguate the near-overlapping create/embed/convert trio by stating the input preconditions and cross-referencing the sibling tool to use instead.
Four tools follow a clean verb_noun pattern (generate_/validate_/parse_/embed_ + domain noun), making intent readable at a glance. The outlier is magic_convert_pdf, whose whimsical 'magic' prefix breaks the pattern and is the only name not self-describing in the same register.
Five tools map cleanly onto the distinct input scenarios of German e-invoicing (JSON only, JSON + visual PDF, flat PDF only, plus validate and parse), with no redundancy or filler. The surface is tightly scoped to the domain and every tool earns its place.
The lifecycle is well covered: creation in both XRechnung and ZUGFeRD formats, validation against EN 16931/KoSIT/veraPDF, extraction, and two upgrade paths for existing PDFs. Minor gaps remain, such as no direct XRechnung↔ZUGFeRD format conversion, no batch operation, and no correction/regeneration path for a validated-but-failing invoice.
Maintenance
Related MCP Connectors
German e-invoicing: generate XRechnung 3.0, pre-check and extract (incl. ZUGFeRD PDF). Paid.
Create, validate and read German e-invoices: ZUGFeRD, Factur-X, XRechnung CII/UBL. KoSIT-checked.
Create ZUGFeRD e-invoices from JSON or PDF, verify Factur-X, check VAT IDs and Peppol.
XRechnung and ZUGFeRD e-invoicing (EN 16931): create, validate, check Leitweg-IDs, German VAT.
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 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
- AlicenseAqualityAmaintenanceCreate and check EU e-invoices (XRechnung, ZUGFeRD / Factur-X PDF, Peppol BIS, UBL, CII) on your own machine. Validation runs the official KoSIT, CEN and Peppol rules, and its verdicts match the official KoSIT validator 100% on the official test invoices. Free, open source, no API key.67148 npm4Apache 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