Validate an XRechnung or Peppol invoice from your AI assistant
AI assistants are good at writing invoice XML and bad at knowing whether it is valid. The official rules (EN 16931, XRechnung, Peppol BIS) are hundreds of Schematron assertions, and a model that says "this looks correct" has not run any of them.
An MCP server fixes that by giving the assistant a tool that runs the real rules. Ours has one read-only tool, validate_invoice. It takes the invoice XML text and returns whether it is valid, the rule set that was applied, and the errors and warnings with rule IDs. No AI model runs on our side, and the XML is processed in memory, not stored.
What it checks
XRechnung (UBL and CII), Peppol BIS Billing 3.0, ZUGFeRD and Factur-X, and the French CII and UBL profiles. The tool picks the rule set from the document. It takes XML only. A plain PDF is refused, so for a ZUGFeRD PDF send the embedded XML.
Setup in ChatGPT's desktop app
In ChatGPT's desktop app, open the settings and add a custom MCP server:
- Type: Streamable HTTP
- URL:
https://valinvo.bmk-hub.com/mcp - Headers:
X-Accept-Terms=1.0. This accepts the terms of use. With an API key you sendAuthorization: Bearer <key>instead. - Leave the bearer-token field empty.
Start a new chat, enable the server and ask it to validate an invoice with validate_invoice. Other clients that support remote MCP servers take the same URL and header.
Clients with a fixed list of header names
Some connector forms only let you pick a header name from a fixed list. Claude Desktop's is one: it rejects X-Accept-Terms. For these clients the server accepts two other names:
- Without a key:
x-org=1.0. It counts exactly likeX-Accept-Terms: 1.0. - With an API key:
x-api-key= your key. It is the same key as inAuthorization: Bearer, and it counts against the same monthly limit.
What the answer looks like
We asked the assistant to find a fictional Peppol sample and validate it. It built a compact Peppol BIS Billing 3.0 invoice and sent it. The answer:
Result: invalid, 2 errors, no warnings.
BR-S-02: a standard-rated VAT line requires a seller VAT identifier.
BR-CO-26: the seller needs an identifier, a legal registration identifier or a VAT identifier.
Rule set applied: peppol-bis-3.0.22-ubl-invoice
The rule IDs come from the official rules, so you can look them up. The assistant can fix the XML and validate again until the answer is "valid".
Without an assistant
The endpoint speaks plain JSON-RPC, so you can try it with curl:
curl -s https://valinvo.bmk-hub.com/mcp \
-H "X-Accept-Terms: 1.0" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Limits
Use sample data or invoices you may share, because the XML goes through your assistant provider as well as to our server. A valid result means the document passes the official rules. It does not mean the invoice is right for your tax situation.
Free use is for businesses and testing, with a per-minute limit. The quickstart has the same setup for Claude Code, and the API reference describes the endpoint.
Checked on 2026-12-05 against the live endpoint. We make Valinvo, a validator and API for these formats.
Quickstart · XRechnung validator · Peppol validator · ZUGFeRD / Factur-X validator · ZUGFeRD-csharp: your options · XRechnung from PHP or Node.js · XRechnung in Python · XRechnung EndpointID (BT-34, BT-49) · Validate from an AI assistant (MCP) · E-invoicing 2027 for software vendors · Changelog · Security overview · API change policy · API reference · Error codes