Skip to main content
Glama
biorazlagaem-dev

e-rechnung-mcp

e-rechnung-mcp

MCP server for German e-invoicing. Two tools, fully local — no network calls, no accounts:

  • generate_xrechnung — create a valid XRechnung (EN 16931, CII XML) from structured input. Supports German VAT rates (19/7), § 19 UStG small businesses (Kleinunternehmer) and Leitweg-ID for B2G invoices. Input is validated (§ 14 UStG mandatory fields) before generation.

  • validate_einvoice — check an XRechnung / ZUGFeRD CII XML: mandatory fields, EN 16931 basics and total calculations. Findings are returned in plain German.

The invoice core is the same one that powers e-rechnungsbuch.de and is tested against the official KoSIT/Mustang validator.

Usage

Claude Desktop / Claude Code / any MCP client (stdio):

{
  "mcpServers": {
    "e-rechnung": {
      "command": "npx",
      "args": ["-y", "e-rechnung-mcp"]
    }
  }
}

Example prompts once connected:

  • "Erstelle eine XRechnung: Rechnung RE-2026-042 von Testfirma GmbH an Kunde AG, 2 Stunden Beratung je 150 Euro, 19 % USt."

  • "Validate this e-invoice XML and explain the findings." (paste XML)

Related MCP server: einvoice-mcp

Notes

  • Dates are ISO (YYYY-MM-DD); amounts are net EUR with max 2 decimals.

  • For Kleinunternehmer set kleinunternehmer: true — the invoice carries the § 19 UStG exemption note instead of VAT.

  • Validation covers CII syntax (XRechnung and the XML part of ZUGFeRD); it complements but does not replace the official KoSIT schema validation.

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server for electronic invoicing that enables generating, validating, and parsing Factur-X and ZUGFeRD compliant XML invoices. It supports the French 2026 B2B reform and provides integration with Chorus Pro for automated invoice submission and status tracking.
    9
    25 npm
    1
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    MCP server for DACH e-invoicing. Create XRechnung (UBL) and ZUGFeRD 2.3 (Factur-X CII) invoices, validate against EN 16931 rules, extract data from XML, and convert between UBL, CII and JSON formats.
    6
    30 npm
    2
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Model Context Protocol (MCP) server for German Electronic Invoicing (ZUGFeRD 2.x / XRechnung 3.x). Provides tools to validate, generate, parse, and convert invoices compliant with EN 16931 and KoSIT.
    50
    218 PyPI
    2
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Model Context Protocol (MCP) server for Spanish Electronic Invoicing. Provides tools to generate, validate, and submit invoices across VERI\*FACTU, Facturae/FACe, SII, TicketBAI, and Crea y Crece B2B.
    20
    2
    Apache 2.0