ZUGFeRD Validator

v1.0.2
de.zugferd-validator/validator Checked 2 days ago Published 4 months ago

Validiert E-Rechnungen (ZUGFeRD/Factur-X, XRechnung) gegen EN 16931 mit Korrekturvorschlägen.

Values you need

VariableWhat it is
ZUGFERD_API_KEYrequired secret API-Key von https://zugferd-validator.de/konto (Demo-Key: zv_demo_public_zugferd_2026)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add validator -e 'ZUGFERD_API_KEY=<ZUGFERD_API_KEY>' -- npx -y --package=zugferd-mcp-client@1.1.1 zugferd-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "validator": {
      "args": [
        "-y",
        "--package=zugferd-mcp-client@1.1.1",
        "zugferd-mcp"
      ],
      "command": "npx",
      "env": {
        "ZUGFERD_API_KEY": "<ZUGFERD_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "validator": {
      "args": [
        "-y",
        "--package=zugferd-mcp-client@1.1.1",
        "zugferd-mcp"
      ],
      "command": "npx",
      "env": {
        "ZUGFERD_API_KEY": "<ZUGFERD_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "ZUGFERD_API_KEY",
      "id": "zugferd-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "validator": {
      "args": [
        "-y",
        "--package=zugferd-mcp-client@1.1.1",
        "zugferd-mcp"
      ],
      "command": "npx",
      "env": {
        "ZUGFERD_API_KEY": "${input:zugferd-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.validator]
command = "npx"
args = ["-y", "--package=zugferd-mcp-client@1.1.1", "zugferd-mcp"]
env = { "ZUGFERD_API_KEY" = "<ZUGFERD_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http validator https://api.zugferd-validator.de/mcp --header 'X-Api-Key: <X-Api-Key>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "validator": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.zugferd-validator.de/mcp",
        "--header",
        "X-Api-Key: <X-Api-Key>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "validator": {
      "headers": {
        "X-Api-Key": "<X-Api-Key>"
      },
      "url": "https://api.zugferd-validator.de/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "validator": {
      "headers": {
        "X-Api-Key": "<X-Api-Key>"
      },
      "type": "http",
      "url": "https://api.zugferd-validator.de/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.validator]
command = "npx"
args = ["-y", "mcp-remote", "https://api.zugferd-validator.de/mcp", "--header", "X-Api-Key: <X-Api-Key>"]

For AI agents

  1. Ask the user for: ZUGFERD_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: validate_invoice, extract_xml, check_consistency, create_invoice.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json