einvoice-precheck logo

einvoice-precheck

by Agustín RecobaGitHubUpdated Dec 3, 2026

Pre-check an EN 16931 e-invoice (UBL or CII XML): the rules it fails, where, and for amount errors the expected value. Not a certification.

e-invoicingublcii+5

Start using this server

Get Pro →

Connect einvoice-precheck

Pick where you'll use it. We'll show the one step you need.

  1. Get access

    Pro · $9/mo. Create an account and pick a plan to get your API key.

    Get Pro
  2. Add it to Claude

    Opens Claude with this server filled in as a custom connector. Click Add, then Connect and sign in with MCPize. Works on claude.ai, Claude Desktop and mobile.

    Unlocks once you have access above

    On Claude Team and Enterprise, only organization Owners can add custom connectors.

    Using Claude Code?

    terminal
    claude mcp add --transport http --scope user einvoice-precheck https://einvoice-precheck.mcpize.run --header "Authorization: Bearer YOUR_API_KEY"
    Manual setup & config

    Paste this JSON config

    JSON
    {
      "mcpServers": {
        "einvoice-precheck": {
          "type": "http",
          "url": "https://einvoice-precheck.mcpize.run",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY"
          }
        }
      }
    }

    Config file: Claude Code: .mcp.json (project) or ~/.claude.json (user). claude.ai, Claude Desktop and mobile: use Add to Claude above.

    Subscribe to get your API key

Config files for Claude, Cursor and VS Code

Replace the YOUR_ placeholder values with your own API key or credentials.

Claude Code

Run in your terminal.

claude mcp add --transport http --scope user einvoice-precheck https://einvoice-precheck.mcpize.run --header "Authorization: Bearer YOUR_API_KEY"

Cursor

Add to ~/.cursor/mcp.json, or .cursor/mcp.json in your project.

{
  "mcpServers": {
    "einvoice-precheck": {
      "url": "https://einvoice-precheck.mcpize.run",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

VS Code

Run in your terminal, or add the server to .vscode/mcp.json.

code --add-mcp '{"name":"einvoice-precheck","type":"http","url":"https://einvoice-precheck.mcpize.run","headers":{"Authorization":"Bearer YOUR_API_KEY"}}'

About einvoice-precheck

A rule id such as BR-CO-15 says that something does not add up. This server also says where in the XML and, for amounts and rates, what it expected.

  • Both syntaxes: UBL 2.1 invoices and credit notes, and UN/CEFACT CII (the XML inside Factur-X and ZUGFeRD).
  • 196 EN 16931 rules: mandatory fields, totals, rounding, decimal precision and the VAT category rules, including reverse charge and intra-community supply.
  • Structured results: rule id, XML path, expected and found values, and a tool that recomputes the VAT breakdown and totals.
  • Deterministic: the same invoice gives the same answer. No language model runs in the server.
  • Compared with the official test material (CEN release 1.3.17): it agrees with all 1056 unit test expectations for the rules it implements and reports no errors on the 34 example invoices. Those unit tests are almost all UBL; CII is covered mainly by the examples and by this project's own tests.

What it does not do

It does not check XML schemas, code lists (BR-CL), syntax binding rules, XRechnung, Peppol or other national rule sets, BR-CO-25, or PDF/A-3, and it does not extract XML from a PDF.

It is a pre-check, not a certification of compliance, and not legal or tax advice. A result without errors does not make an invoice valid or compliant. It is meant for people who build or run invoicing software. Run the validator your recipient or platform requires before going live. The official CEN artefacts and the KoSIT validator are free.

Privacy

The server processes each invoice in memory, writes none of it to disk, does not log request contents and calls no other service. Requests pass through MCPize's gateway. MCPize's privacy policy says it collects log data (IP address, access times, error logs) and usage metrics; it does not say whether request contents are recorded. Use anonymised invoices for testing.

Tools

ToolWhat it does
validate_invoiceCheck an invoice and list the failed rules
recompute_totalsDerive the VAT breakdown and totals from the lines, next to the stated values
explain_ruleDescribe a rule such as BR-AE-08

Try it

  • "Validate this invoice XML and tell me how to fix each error."
  • "Recompute the totals of this invoice and compare them with what it states."
  • "What does BR-CO-17 require?"

Questions

Is a passing result enough to send the invoice? No. It means no errors were found in the rules listed above.

Which formats are supported? UBL 2.1 and CII D16B XML, up to 2 MB per call.

Can I send a PDF? No. Extract the embedded XML first.

Is there a rate limit? Besides the plan's monthly calls, each server instance accepts 600 tool calls per minute, shared by all its callers. Over the limit it answers with the seconds to wait.

Which MCP versions? 2026-07-28 and the earlier initialize based versions from 2024-11-05 to 2025-11-25, over HTTP.

How was it built? It was written with AI assistance and tested against the official test material.

Tools

  • Describe an EN 16931 business rule id such as BR-CO-15 or BR-AE-08.

    Try: "What does rule BR-CO-15 mean?"
  • Derive the VAT breakdown and document totals from the invoice lines, allowances and charges, next to the values the document states. Use it to fix BR-CO-10 to BR-CO-17 and VAT taxable amount errors. The figures are arithmetic on the document to review, not tax advice.

    Try: "Recalculate the VAT breakdown for this invoice XML"
  • Check an e-invoice against EN 16931 mandatory fields, arithmetic, decimal precision and VAT category rules. Returns each failed rule with its XML location and, where computable, the expected value. Checks EN 16931 model rules (BR, BR-CO, BR-DEC and VAT category rules). Does not check XML schema validity, code lists (BR-CL), syntax binding rules (UBL-, CII-), PDF/A-3, or national and Peppol rule sets. Pre-check only: not a certification of compliance and not legal or tax advice. Run the validator required by your recipient before going live.

    Try: "Check this UBL invoice for EN 16931 compliance"

Loading reviews...

Developer

AR
@agustin-recoba

Data architect based in Montevideo, Uruguay, and Computer Science Engineer (Universidad de la República). I have led a big data engineering team, designed batch data pipelines serving hundreds of retail clients, and now define architecture guidelines and data modeling standards for data teams.