
Mcp Einvoicing De
io.github.cmendezsPublished by GitHub account cmendezsv0.11.4Updated Oct 24, 2026
German e-invoicing MCP server: ZUGFeRD 2.x, XRechnung 3.x, EN 16931, KoSIT validation, Peppol.
Overview
Local Python MCP server for German e-invoicing: create, validate, parse and convert ZUGFeRD 2.x and XRechnung 3.x invoices, plus Peppol lookups and sending.
- What you can do
- Create ZUGFeRD or XRechnung invoices as CII or UBL XML, or as PDF/A-3 hybrid PDFs, with German B2B mandate checks and an opt-in transitional-period override for DE VAT buyers. Validate invoices against EN 16931 and KoSIT BR-DE rules, locally by default or via KoSIT cloud validation when enabled. Parse structured data from ZUGFeRD/XRechnung XML or hybrid PDFs, and convert between ZUGFeRD profiles, CII headers and CII/UBL syntax. Export invoices as DATEV EXTF 700 booking CSVs and query German VAT rules such as reverse charge and Kleinunternehmer thresholds. Look up Peppol participants, service endpoints and the Peppol Directory, resolve SML DNS, send invoices via AS4, and check OpenPeppol and,
- When to use it
- Useful when an assistant must produce or check German and European e-invoices that comply with the 2025 B2B mandate, EN 16931 or Peppol BIS, or when you need to read invoice data out of XML or hybrid PDFs and hand it to accounting.
- Requirements
- Python package installed locally via pip or run with uvx; no credentials required. Optional extras: xslt2 for local Schematron validation and reporting tools, pdf or pymupdf for PDF utilities. Optional environment variables: EINVOICING_DE_KOSIT_ENABLE, EINVOICING_DE_KOSIT_VALIDATOR_URL, EINVOICING_DE_LOG_LEVEL, EINVOICING_PEPPOL_CODELIST_DIR, EINVOICING_EN16931_CODELIST_DIR. Network access for Peppol and cloud validation.
Installation
In SourceWeft
- Open Mcp Einvoicing De in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-einvoicing-de 🇩🇪
[License] [PyPI version] [Python] [mcp-einvoicing-de MCP server]
MCP server (Model Context Protocol) in Python for German electronic invoicing in ZUGFeRD 2.x and XRechnung 3.x formats (EN 16931, FeRD, KoSIT). Enables AI agents (Claude, IDEs) to create, validate, parse, and convert e-invoices that are fully compliant with the German B2B e-invoicing mandate (effective from 2025, phased enforcement through 2027 to 2028) and the European standard EN 16931.
Introduction
This package is built on mcp-einvoicing-core, a shared base library for European e-invoicing MCP servers. It provides shared models, validation abstractions, XML utilities, and the exception hierarchy.
mcp-einvoicing-core is automatically installed as a transitive dependency, no additional step required.
For developers:
pip install -e ".[dev]"installs the base package automatically from PyPI.
Installation
Via PyPI (recommended)
Without prior installation, using uvx:
From source
Optional extras
Configuration
The server does not require external credentials. Available environment variables:
The EUSR/TSR reporting and MLS tools additionally require the [xslt2] extra for Schematron validation.
Claude Desktop integration
Add the following entry to claude_desktop_config.json. No environment variables are required:
Cursor integration
Cursor supports MCP servers via stdio. Add the configuration in:
- Global (all projects):
~/.cursor/mcp.json - Project (this repository only):
.cursor/mcp.json
Reload the Cursor window (Ctrl+Shift+P then Reload Window) to apply the changes.
Kiro integration
Kiro supports MCP servers via its dedicated configuration file. Two levels are available:
- Global (all projects):
~/.kiro/settings/mcp.json - Workspace (this repository only):
.kiro/settings/mcp.json
The file is automatically reloaded on save. You can also open the config via the command palette (Cmd+Shift+P / Ctrl+Shift+P) then MCP.
Available tools
Peppol network tools
Peppol participant lookup, service-endpoint lookup, a DNS-only diagnostic, AS4 send, Peppol Directory search, and the OpenPeppol eDEC codelist tools are provided by the shared core Peppol tool plugin (mcp_einvoicing_core.peppol.tools.register_peppol_tools), mounted in server.py with a German-specific identifier adapter: a bare USt-IdNr (e.g. 123456789 or DE123456789) is normalized to the 9930:<value> Peppol scheme (DE:VAT); an already scheme-qualified identifier (e.g. 9930:DE123456789, or 0204:<leitweg-id> for Leitweg-ID-routed B2G invoices) passes through unchanged. To send via AS4, first produce XRechnung UBL with invoice_convert (or invoice_create with target_syntax='UBL'), then pass the result to peppol_send.
peppol_send signs outbound messages with a real wsse:Security signature as of mcp-einvoicing-core v1.20.0 (previously computed and discarded — see CHANGELOG.md v0.10.0).
See the mcp-einvoicing-core README for full parameter documentation on these tools.
Peppol reporting and status tools
Added in v0.10.0 via three opt-in core plugins, mounted unconditionally in server.py. Each raises a clear error at call time (not at registration) if its extra or data directory is missing.
See the mcp-einvoicing-core README for full parameter documentation on these tools.
Usage examples
Example 1: Validate an invoice
Example 2: Query German tax rules
Example 3: Check Peppol registration
Example 4: Parse invoice data
Architecture
Vendor neutrality
This server implements the standard itself: it builds, validates, and signs the document locally. It is not a client for a commercial invoicing platform, and your signing keys and credentials never leave your own infrastructure.
A Peppol access point is optional: transmission via peppol_send is one available channel,
and any accredited access point speaks the same AS4 profile, so switching providers is a
configuration change, not a code change. This package does not implement direct submission to
a German B2G state portal (ZRE/OZG-RE).
Supported standards
Note: ZUGFeRD 2.x and XRechnung 3.x share the same CII XML syntax at the EN 16931 profile level. Conversion between both formats is therefore possible without data loss. The EXTENDED profile is specific to ZUGFeRD and has no XRechnung equivalent.
Tests
Contributing
Contributions are welcome. Please open an issue before submitting a pull request for significant changes.
Other e-invoicing MCP servers
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details. For the full version history, see CHANGELOG.md.
Source: README.md at commit a77e33d
Tools
0Version history
1- v0.11.4LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts