npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-server-erechnung

v1.0.2

Published

Zero-dependency Model Context Protocol (MCP) server for German B2B E-Rechnung compliance (EN 16931, KoSIT XRechnung 3.0.2, DATEV ZUGFeRD 2.5 / Factur-X PDF/A-3b, GiroCode SEPA QR & Hybrid Parsing).

Readme

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 13616 MOD-97): Your AI agent never generates raw XML and never computes final invoice math. Every qty * unitPriceNet, VAT bucket, and grossTotal is 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, SEPA BG-16), embeds TrueType fonts + sRGB ICC 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-infers 0% VAT categories (AE § 13b Reverse Charge, K § 6a Intra-EU, E § 19 UStG, G Export) with mandatory BT-120 German exemption text.
  • 100% Stateless & GDPR / DSGVO Safe: Zero invoice persistence or PII logging.

Available MCP Tools

| Tool Name | Description | | :--- | :--- | | generate_erechnung | Deterministically generate a ZUGFeRD 2.5 PDF/A-3b (with visual DIN 5008 layout + GiroCode QR + factur-x.xml) or pure XRechnung 3.0.2 XML from structured JSON (<300ms). | | validate_erechnung | Validate any ZUGFeRD PDF or XRechnung XML against official EN 16931 XSD, KoSIT XR_30 Schematron, and veraPDF (rule_id, field, human_hint). | | parse_erechnung | Smart Hybrid Empfangspflicht parser: ~20ms deterministic NATIVE_XML fast-path first, plus math-guarded legacy PDF extraction (math_verified, iban_valid, discrepancy). | | embed_zugferd_pdf | Upgrade an existing visual PDF (Base64) + JSON into a true PDF/A-3b ZUGFeRD 2.5 hybrid document. | | magic_convert_pdf | Convert a flat legacy PDF (Base64, max 5 pages) into ZUGFeRD 2.5 PDF/A-3b under strict BigDecimal & MOD-97 guardrails. |


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-erechnung

License

MIT © FGH Studio