XRechnung Validator

v0.3.0
io.github.wenboteng/xrechnung-validator Checked 3 hours ago Published 3 days ago

Validate XRechnung XML and ZUGFeRD / Factur-X PDFs with the free checkxrechnung.com API.

Stdio MCP server, package version 0.2.1. Tools: The free limit is shared: 50 requests per IP per UTC day, 10 per minute. XML validation is 5 MB. The ZUGFeRD tools are 10 MB. validate_xrechnung takes exactly one of file_path or xml. validate_zugferd and extract_zugferd take file_path only.

Summary extracted from the README.

xrechnung-validator-mcp

Stdio MCP server, package version 0.2.1. Tools:

  • validate_xrechnung uploads an XRechnung XML file (UBL or CII) or a ZUGFeRD PDF to POST https://checkxrechnung.com/v1/validate (file_path or xml).
  • validate_zugferd uploads a PDF to POST https://checkxrechnung.com/v1/zugferd/validate (file_path). PDF/A-3 check, profile, EN 16931 CII Schematron, rule_url.
  • extract_zugferd uploads a PDF to POST https://checkxrechnung.com/v1/zugferd/extract (file_path) and returns the raw XML plus a JSON summary.

The free limit is shared: 50 requests per IP per UTC day, 10 per minute. XML validation is 5 MB. The ZUGFeRD tools are 10 MB.

validate_xrechnung takes exactly one of file_path or xml. validate_zugferd and extract_zugferd take file_path only.

Validation output is valid plus errors[]. Each error has rule_id, severity, location, message, hint, and rule_url when a rule code is present. rule_url is the API value when the response includes rule_url or ruleUrl; otherwise https://checkxrechnung.com/fehler/<code> (lowercase). extract_zugferd returns ok, summary, and xml.

The service reports persisted: false. The tools call the network, so they are not a local read-only check. The server calls the keyless API. For more volume, get a free API key (500 checks per calendar month, no daily cap) at https://checkxrechnung.com/en/docs#free-key and use it with the HTTP API in the X-API-Key header. API Pro (EUR 19/month, 5,000 checks) upgrades that same key. On HTTP 429 the tools return the API Pro link.

Package name: xrechnung-validator-mcp. Registry name in server.json: io.github.wenboteng/xrechnung-validator (mcpName matches). It is listed in the MCP registry as io.github.wenboteng/xrechnung-validator. Install with npx -y xrechnung-validator-mcp. A local build is npm run build, then node dist/index.js.

Hosted MCP server (no install)

https://checkxrechnung.com/mcp is a remote MCP server (Streamable HTTP) with the same tools: validate_xrechnung (xml or file_base64), validate_zugferd and extract_zugferd (file_base64 of the PDF). Files are sent inline, nothing is stored. Without a key the free limit is 50 checks per IP per UTC day; send a free API key as X-API-Key or Authorization: Bearer for 500 a month. Claude Code: claude mcp add --transport http xrechnung https://checkxrechnung.com/mcp. Generic config: {"mcpServers": {"xrechnung": {"type": "http", "url": "https://checkxrechnung.com/mcp"}}}.

Claude Desktop

claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "xrechnung-validator": {
      "command": "npx",
      "args": ["-y", "xrechnung-validator-mcp"]
    }
  }
}

Cursor

~/.cursor/mcp.json or the project file .cursor/mcp.json:

{
  "mcpServers": {
    "xrechnung-validator": {
      "command": "npx",
      "args": ["-y", "xrechnung-validator-mcp"]
    }
  }
}

From a checkout, before the npm publish:

{
  "mcpServers": {
    "xrechnung-validator": {
      "command": "node",
      "args": ["mcp/dist/index.js"]
    }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "xrechnung-validator": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "xrechnung-validator-mcp"]
    }
  }
}

Docs: https://checkxrechnung.com/en/docs · Rules: https://checkxrechnung.com/fehler/ · OpenAPI: https://checkxrechnung.com/openapi.json

MIT. Copyright (c) 2026 Bobook Limited.