# eRechio – German e-invoice validator (XRechnung, ZUGFeRD)

> Validate German e-invoices (XRechnung, ZUGFeRD XML) with official KoSIT rules; errors explained.

- name: de.erechio/erechio
- version: 1.5.0
- connection class: R1 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 89/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/de.erechio%2Ferechio
- tools: https://api.protogrid.dev/v1/servers/de.erechio%2Ferechio/tools

**An agent can connect on its own if it already holds `ERECHIO_TOKEN`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "erechio": {
      "type": "http",
      "url": "https://api.erechio.de/mcp",
      "headers": {
        "Authorization": "Bearer ${ERECHIO_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${ERECHIO_TOKEN}`.

## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-7d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 89/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-06-18; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 94 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 1 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 3 of 3 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 964 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 100 (weight 15)

- pass `stability.changes`: 5 tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 3, about 964 tokens to load them all
- tool set hash: 35f75b56793833f40551113e84aa1dd6
- tools last changed: 2026-11-22T21:04:10.003Z
- badge: [![protogrid quality](https://protogrid.dev/badge/de.erechio/erechio.svg)](https://protogrid.dev/servers/de.erechio/erechio)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-22 `status` removed
  - Zustand, Version und Regelstand der eRechio API (wie GET /v1/status). Ohne Schlüssel, zählt nicht im Kontingent.
- 2026-11-22 `rechnung_pruefen` removed
  - Prüft eine E-Rechnung (XRechnung UBL/CII oder ZUGFeRD-/Factur-X-XML) gegen XML-Schema, EN 16931 und die KoSIT-Regeln XRechnung 3.0.2 und erklärt jede Meldung auf Deutsch (was bedeutet der Regelcode, wie beheben). Braucht einen eRechio-API-Schlüssel (Header Authorization: Bearer pk_…); jede erfolgreiche Prüfung zählt ein Dokument im Monatskontingent. Prüft nicht die inhaltliche oder steuerliche Richtigkeit. Keine PDF-Annahme: bei ZUGFeRD die eingebettete XML-Datei senden.
- 2026-11-22 `get_status` added
  - Returns status, version and rule set of the eRechio API (same as GET /v1/status): structuredContent {status (ok or gestört), version, regeln, regelstand, zeit, gruende}. isError is true while the service is disturbed. No API key needed, not counted against the quota.
- 2026-11-22 `explain_rule` added
  - Explains a validation rule code (e.g. BR-DE-15, BR-CO-10, BR-S-08, PEPPOL-EN16931-R008) in German: what the rule requires, how to fix the invoice and which XML element is affected (UBL and CII path). Useful for findings from any validator, e.g. the KoSIT validator. No API key needed, not counted against the quota. Returns structuredContent {code, gefunden (boolean), titel, was, beheben, pfad_ubl, pfad_cii, mehr (link to the explanation page)}. Covers the 53 most frequent rules; for other codes gefunden is false and mehr links to the list of all explained rules (not an error).
- 2026-11-22 `validate_invoice` added
  - Validates one e-invoice (XRechnung UBL or CII, ZUGFeRD / Factur-X XML) against the XML schema, EN 16931 and the official KoSIT rules for XRechnung 3.0.2, and explains every finding in German (meaning of the rule code, how to fix it). Requires an eRechio API key (header Authorization: Bearer pk_…; free test key: https://api.erechio.de/testschluessel?lang=en). Each successful validation counts one document against the monthly quota; repeats with the same idempotency_key within 24 hours do not count. Does not check content or tax correctness. No PDF input: for ZUGFeRD send the embedded XML file. Returns (texts in German): content[0] a short summary, content[1] and structuredContent the full result of POST /v1/validate: vollstaendig_validiert (boolean, the decisive field: XML schema and rules passed), regelpruefung_bestanden, schemapruefung, syntax (UBL or CII), szenario, fehler (number of errors), warnungen (number of warnings), meldungen (list of {code, level: fehler|warnung|hinweis, text, location, erklaerung {titel, was, beheben, pfad, mehr}}), leitweg_id, kontingent {genutzt, limit, rest}, regelstand, ohne (what is not checked). Errors are returned as a tool result with isError true and structuredContent {http_status, fehler {code, text}, retry_after}: schluessel (401, API key missing or invalid), kontingent (429, monthly quota used up; the free test key has 50 documents per month), rate (429, more than 60 validations per minute, retry_after 60), zu_gross (413, invoice larger than 2 MB), kein_xml / kein_format / dtd (400/422, not an XML e-invoice), idempotenz_laeuft (409, same idempotency_key still running, retry after 2 s), idempotenz_konflikt (422, same idempotency_key with a different invoice), ausgelastet / zeitlimit (503, retry later).

Full history: https://api.protogrid.dev/v1/servers/de.erechio%2Ferechio/changes

## Remotes

- https://api.erechio.de/mcp (streamable-http, auth api_key ${ERECHIO_TOKEN}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (3)

- `explain_rule`: Explains a validation rule code (e.g. BR-DE-15, BR-CO-10, BR-S-08, PEPPOL-EN16931-R008) in German: what the rule requires, how to fix the invoice and which XML element is affected (UBL and CII path). Useful for findings from any validator, e.g. the KoSIT validator. No API key needed, not counted against the quota. Returns structuredContent {code, gefunden (boolean), titel, was, beheben, pfad_ubl, pfad_cii, mehr (link to the explanation page)}. Covers the 53 most frequent rules; for other codes gefunden is false and mehr links to the list of all explained rules (not an error).
- `get_status`: Returns status, version and rule set of the eRechio API (same as GET /v1/status): structuredContent {status (ok or gestört), version, regeln, regelstand, zeit, gruende}. isError is true while the service is disturbed. No API key needed, not counted against the quota.
- `validate_invoice`: Validates one e-invoice (XRechnung UBL or CII, ZUGFeRD / Factur-X XML) against the XML schema, EN 16931 and the official KoSIT rules for XRechnung 3.0.2, and explains every finding in German (meaning of the rule code, how to fix it). Requires an eRechio API key (header Authorization: Bearer pk_…; free test key: https://api.erechio.de/testschluessel?lang=en). Each successful validation counts one document against the monthly quota; repeats with the same idempotency_key within 24 hours do not count. Does not check content or tax correctness. No PDF input: for ZUGFeRD send the embedded XML file. Returns (texts in German): content[0] a short summary, content[1] and structuredContent the full result of POST /v1/validate: vollstaendig_validiert (boolean, the decisive field: XML schema and rules passed), regelpruefung_bestanden, schemapruefung, syntax (UBL or CII), szenario, fehler (number of errors), warnungen (number of warnings), meldungen (list of {code, level: fehler|warnung|hinweis, text, location, erklaerung {titel, was, beheben, pfad, mehr}}), leitweg_id, kontingent {genutzt, limit, rest}, regelstand, ohne (what is not checked). Errors are returned as a tool result with isError true and structuredContent {http_status, fehler {code, text}, retry_after}: schluessel (401, API key missing or invalid), kontingent (429, monthly quota used up; the free test key has 50 documents per month), rate (429, more than 60 validations per minute, retry_after 60), zu_gross (413, invoice larger than 2 MB), kein_xml / kein_format / dtd (400/422, not an XML e-invoice), idempotenz_laeuft (409, same idempotency_key still running, retry after 2 s), idempotenz_konflikt (422, same idempotency_key with a different invoice), ausgelastet / zeitlimit (503, retry later).
