InvoiceIn
OfficialProcess European e-invoices into canonical JSON, validation reports, HTML/CSV/DATEV exports.
Parse one UBL, CII, XRechnung, Peppol BIS, FatturaPA, or KSeF XML invoice or ZUGFeRD/Factur-X hybrid PDF up to 25 MB into canonical EN 16931 JSON with source metadata, timings, and a validation report.
Validate an invoice and return only the verdict: valid flag, error/warning counts, applied rule sets and versions, and issues with rule id, severity, affected field, responsible party, and plain-language fix hints in en/de/pl/it/fr.
Render an invoice as a self-contained printable HTML page with inline CSS and localized labels.
Export an invoice as flat CSV, either one row per line item or one row per document, for spreadsheet or database import.
Convert received invoices into a DATEV Buchungsstapel EXTF 700 file for German bookkeeping, with SKR03/SKR04 and creditor account selection.
Supply invoice content as base64 or, over stdio only, as an absolute local file path; plain or scanned PDFs without embedded XML are rejected because OCR is not supported.
All tools are read-only, non-destructive, idempotent, and closed-world; unreadable files return structured errors, and nothing is stored.
Allows exporting processed invoice data to DATEV Buchungsstapel (EXTF 700, cp1252), with configuration options for SKR 03/04 and creditor account.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
InvoiceIn — examples
Any European or UAE (PINT AE) e-invoice a business receives → one canonical EN 16931 JSON, a validation report with plain-language fix hints, a PDF, CSV or DATEV export. One stateless endpoint, nothing stored.
Accepts: XRechnung (UBL and CII), EN 16931 UBL 2.1 Invoice/CreditNote, Peppol BIS Billing 3, CII D16B, ZUGFeRD 1.0 / 2.x and Factur-X hybrid PDFs, Italy's FatturaPA 1.2, Poland's KSeF FA(2)/FA(3), Romania's RO e-Factura (CIUS-RO), the UAE's PINT AE (Billing and Self-Billing).
Validated against: EN 16931 validation artefacts 1.3.17, XRechnung 3.0.2 (KoSIT Schematron 2.6.0), Peppol BIS Billing 3, FNFE CTC-FR 1.4.0.04 (the BR-FR rules; runs when seller and buyer are both established in France), CIUS-RO 1.0.1, OpenPeppol's PINT AE 1.0.4 for the UAE (free check page: https://invoicein.peculiar.systems/uae), the UBL, CII, FatturaPA and KSeF schemas — plus arithmetic cross-checks on every format and market conventions no Schematron reads (German Skonto terms in free text, the Polish KSeF number). The live list with versions is at GET /v1/formats.
Product page: https://invoicein.peculiar.systems (EN · DE · PL · IT · FR)
API reference (interactive): https://invoicein-api.peculiar.systems/docs
OpenAPI: https://invoicein-api.peculiar.systems/openapi.json
Postman: public collection · published docs — or import
postman/InvoiceIn.postman_collection.json. Every request already carries a real XRechnung in its body, so Send works with no setupMCP server:
https://invoicein-api.peculiar.systems/mcp(streamable HTTP) — on the official registry asio.github.peculiar-systems/invoiceinand on Smithery
This repository holds runnable examples, sample invoices you can test with, and the MCP registry manifest. The service itself is not open source.
Nothing you send is stored: the document is parsed in memory and the response is built from it. Privacy (full policy) · Terms
The bridge in bridge/ is a transparent proxy, not a second implementation: it mirrors whatever tools/list returns from the hosted server, so the two can never drift. The five tools and their annotations — all read-only, non-destructive, idempotent, closed-world — are in bridge/tools.json, checked by tests/. A static analyser reading the bridge source alone sees one dispatch callback and no tools; that is the proxy, not the tool surface.
60 seconds
curl -X POST "https://invoicein-api.peculiar.systems/v1/invoice?include=validation&lang=en" \
-H "X-Api-Key: $INVOICEIN_KEY" \
-F file=@samples/factur-x-en16931.pdfNo key yet? Leave the header out: 5 invoices a day per IP, same output, and every answer says how many are left. A free key — 100 invoices, no card, no expiry — is issued at once, on the product page or with one call:
curl -X POST "https://invoicein-api.peculiar.systems/v1/keys" \
-H "Content-Type: application/json" -d '{"email": "you@company.com"}'The response (full example):
{
"ok": true,
"source": { "syntax": "UBL", "format": "peppol-bis3", "profile": "Peppol BIS Billing 3.0", "container": "xml" },
"invoice": { // canonical EN 16931, field names carry BT/BG numbers in /v1/schema
"document": { "id": "Snippet1", "issue_date": "2017-11-13", "type_code": "380", "currency": "EUR", "due_date": "2017-12-01", ... },
"seller": { "name": "SupplierOfficialName Ltd", "vat_id": "GB1232434", "electronic_address": { "value": "9482348239847239874", "scheme": "0088" }, ... },
"buyer": { ... },
"lines": [ { "id": "1", "quantity": 7, "unit": "DAY", "net_amount": 2800, "tax": { "category": "S", "rate": 25 }, "item": { "name": "item name" } }, ... ],
"tax_breakdown": [ { "taxable_amount": 1325, "tax_amount": 331.25, "category": "S", "rate": 25 } ],
"totals": { "line_net": 1300, "charges": 25, "net": 1325, "tax": 331.25, "gross": 1656.25, "due": 1656.25 },
"payment": { "means_code": "30", "remittance_info": "Snippet1", "credit_transfers": [ { "iban": "IBAN32423940", "account_name": "AccountName", "bic": "BIC324098" } ] }
},
"validation": { "valid": true, "errors": 0, "warnings": 0,
"rule_sets": [ { "id": "XSD:ubl-invoice" }, { "id": "EN16931-UBL", "version": "EN 16931 validation artefacts 1.3.17" }, { "id": "Peppol-UBL" } ],
"issues": [] },
"timings_ms": { "detect": 0.5, "map": 14.4, "validate": 86.0, "total": 100.8 },
"credits": { "mode": "key", "remaining": 99 }
}When something is wrong, every failed rule carries a hint in the requested language (example, KSeF FA(3) in Polish):
{ "id": "XSD-UNEXPECTED-ELEMENT", "severity": "error", "rule_set": "XSD:fa3",
"message": "Element '{http://crd.gov.pl/wzor/2025/06/25/13775/}Adnotacje': This element is not expected. Expected is one of ( {http://crd.gov.pl/wzor/2025/06/25/1 …",
"hint": "XML zawiera element, którego schemat nie dopuszcza w tym miejscu. Nazwa elementu jest błędna, element należy do innego profilu/wersji (np. UBL 2.0 lub ZUGFeRD EXTENDED), jest zdublowany albo jest własnym rozszerzeniem. Usuń go lub zmień jego nazwę.",
"who": "sender", "location": "/*/*[4]/*[8]", "line": 43 }Related MCP server: eleata e-invoice MCP server
Endpoints
Call | Returns |
| everything in one JSON (extras base64/inline) |
| canonical JSON only |
| validation report only |
| human-readable rendering, labels in the five languages |
| flat CSV |
| DATEV Buchungsstapel (EXTF 700, cp1252) |
| formats + rule versions · explain a rule id · field guide |
| which format each country's mandate asks for, and what we validate it with |
| EU VAT number: format offline, then live VIES, with a dated receipt |
| is a counterparty published on Peppol, and what can it receive |
Body: multipart field file, or the raw XML/PDF. Send a real User-Agent (Cloudflare rejects the default Python-urllib one with error 1010). Auth: X-Api-Key or Authorization: Bearer. One invoice = one credit whatever outputs you request; a file that carries several invoices (a FatturaPA lot) costs one per invoice. Remaining credits come back in X-Credits-Remaining.
Examples in this repo
examples/curl.sh— every endpoint onceexamples/node.mjs—fetch+FormData, no dependenciesexamples/python.py— standard library onlyexamples/n8n-workflow.json— mailbox attachment → InvoiceIn → JSON, importable into n8nmcp/server.json— manifest for the MCP registry;mcp/clients.md— Claude Desktop / Cursor configbridge/invoicein_mcp_bridge.py— local stdio MCP server that mirrors the hosted server's tools one-to-one and forwards every call (for clients without remote support;Dockerfilebuilds it;bridge/tools.jsonis the offline copy of the tool definitions)
Sample invoices
File | What it is | Source / licence |
| the same XRechnung 3.0 invoice in both syntaxes | KoSIT XRechnung testsuite, Apache-2.0 |
| Peppol BIS Billing 3 base example | OpenPeppol, Apache-2.0 |
| Factur-X hybrid PDF, EN 16931 profile | ZUGFeRD corpus (FNFE-MPE examples), Apache-2.0 |
| KSeF FA(3) official example no. 1 | Polish Ministry of Finance, public |
| FatturaPA 1.2 official example FPR01 | Agenzia delle Entrate, public |
Both XRechnung files produce the same canonical JSON (only the syntax-specific extensions block differs) — that is the point of the canonical model.
What it does not do
No OCR (a PDF without embedded XML is rejected with pdf-no-xml). Not a Peppol access point, not a French PDP, not a UAE Accredited Service Provider, not a KSeF or SdI client: it reads what you already received and never transmits an invoice anywhere. Factur-X/ZUGFeRD profiles below EN 16931 (MINIMUM, BASIC WL, BASIC) get schema and arithmetic checks only, because the EN 16931 rules would only produce noise there. Validation results are informational, not legal advice.
Licence
The examples in this repository are MIT. Sample invoices keep the licences listed above.
Available Tools
5 toolsinvoice_to_csvExport invoice as CSVARead-onlyIdempotentInspect
Export one European e-invoice as a flat CSV table for a spreadsheet or a database import. Document columns: invoice id, type, issue and due date, currency, seller and buyer name / VAT id / country, buyer and order reference, net / tax / gross / due totals, IBAN, BIC, remittance info, detected format and profile; with level=lines each row adds line id, item name, seller item id, quantity, unit, unit price, net amount, VAT category and rate, note. Use invoice_to_datev for DATEV bookkeeping and read_invoice for the full JSON. Input: XML (UBL, CII, XRechnung, Peppol BIS 3, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). A FatturaPA lot yields rows for every invoice in it. Returns the CSV as one text string: comma-separated, header row first, LF line endings, decimal point; an unreadable file returns a tool error with the reason. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
Inputs: path, level, file_base64. Returns: result
invoice_to_datevExport invoice as DATEV BuchungsstapelARead-onlyIdempotentInspect
Convert one received (purchase) e-invoice into a DATEV Buchungsstapel import file (EXTF format 700) for German bookkeeping in DATEV Kanzlei-Rechnungswesen or Unternehmen online. Use it only for incoming invoices booked on the German side; use invoice_to_csv for a generic table, read_invoice for the raw data, validate_invoice for rule checks (this tool does not validate). Input: XML (UBL, CII, XRechnung, Peppol BIS 3, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the file content as one text string, decoded from cp1252: the EXTF header line, the DATEV column header, then one booking row per VAT-rate group with the gross amount and S/H flag (H for credit notes), the expense account chosen by rate under the selected SKR (e.g. SKR03 3400 for 19 %, 3300 for 7 %, 3200 for 0 %, 3120 intra-EU, 3425 reverse charge), the creditor account as Gegenkonto, document and due date, invoice number in Belegfeld 1, seller name as Buchungstext and the seller VAT id on intra-EU / reverse-charge rows. Save it as cp1252 with CRLF before importing; the account mapping is a default to confirm with the tax advisor. An unreadable file returns a tool error with the reason. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
Inputs: skr, path, file_base64, creditor_account. Returns: result
invoice_to_htmlRender invoice as HTMLARead-onlyIdempotentInspect
Render one European e-invoice as a self-contained, printable HTML page: header, seller and buyer, line items, VAT breakdown, totals and payment details in one layout regardless of the source syntax, labels in lang. Use it to show an invoice to a person or to print it to PDF from a browser; it does not validate (use validate_invoice) and is not an accounting export (use invoice_to_csv or invoice_to_datev). Input: XML (UBL, CII, XRechnung, Peppol BIS 3, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the HTML document as one text string with inline CSS and no external assets; an unreadable file returns a tool error with the reason. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
Inputs: lang, path, file_base64. Returns: result
read_invoiceRead invoiceARead-onlyIdempotentInspect
Parse one European e-invoice into canonical EN 16931 JSON and validate it against the official rule sets in the same call. Use it when you need the invoice content (seller, buyer, lines, totals, payment) together with the verdict; use validate_invoice for a verdict-only answer, invoice_to_html / invoice_to_csv / invoice_to_datev for renderings. Input: XML (UBL, CII, XRechnung, Peppol BIS 3, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the parsed invoice, the validation report with fix hints in lang, and timings; an unreadable file returns ok=false with error.code/message/hint instead of raising. A FatturaPA lot returns only its first invoice, with a note. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
Inputs: lang, path, file_base64. Returns: ok, note, error, source, +3 more
validate_invoiceValidate invoiceARead-onlyIdempotentInspect
Validate one European e-invoice against the official rule sets (XSD, EN 16931, XRechnung, Peppol BIS, FatturaPA, KSeF, arithmetic) and return the verdict without the invoice body. Use it for pass/fail and the list of errors and warnings; use read_invoice when you also need lines, totals and payment data. Input: XML (UBL, CII, XRechnung, Peppol BIS 3, FatturaPA, KSeF FA(2)/FA(3)) or a ZUGFeRD/Factur-X hybrid PDF up to 25 MB; plain or scanned PDFs without embedded XML are rejected (no OCR). Returns the validation report (valid flag, counts, rule sets with versions, failed rules with rule id, severity, fix hint in lang, affected field and who must act), the detected source and the document header; an unreadable file returns ok=false with error.code/message/hint instead of raising. Costs one invoice credit per call; without an API key the anonymous quota is 20 invoices per day per IP. Nothing is stored.
Inputs: lang, path, file_base64. Returns: ok, error, source, document, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose (HTML rendering, JSON parsing, validation, CSV export, DATEV export). However, read_invoice and validate_invoice both involve validation and could be confused from names alone, though descriptions clarify the difference.
The naming pattern is inconsistent: three tools use noun_to_format (invoice_to_html, invoice_to_csv, invoice_to_datev) while two use verb_noun (read_invoice, validate_invoice). This mixed convention makes the tool names less predictable.
Five tools is a well-scoped set for the stated domain of European e-invoice processing, covering the main output formats and validation needs without unnecessary bloat.
The tool surface covers the core lifecycle: reading, validating, and converting to HTML, CSV, and DATEV. No significant gaps are apparent for the domain, especially since HTML can be used for PDF rendering.
Maintenance
Related MCP Connectors
Validate, generate & convert EU e-invoices (UBL, CII, XRechnung, Factur-X) — EN 16931 pre-validated.
Validate, generate, convert and extract EN 16931 e-invoices for businesses.
Validate Factur-X, CII & UBL e-invoices free, no key. Generate compliant invoices from JSON.
Validate and parse German e-invoices (XRechnung, ZUGFeRD, Factur-X). Offline via npx or hosted.
211
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceInvoiceXML brings e-invoice compliance to your AI agent. Create, validate, convert, render, and extract structured invoices across UBL (Peppol BIS Billing 3.0, used worldwide), CII, Factur-X, ZUGFeRD, and XRechnung, all checked against the EN 16931 standard and official Schematron rules. Ask your assistant to generate a compliant invoice, validate one for errors, or convert between formats, with n5MIT- AlicenseAqualityDmaintenanceValidates EU electronic invoices (Peppol, XRechnung, FatturaPA, etc.) and explains validation error codes, enabling AI coding agents to check invoice validity and get fixes before rejection.345 npmMIT
- AlicenseAqualityBmaintenanceValidates electronic invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS, etc.) against authority-pinned rules and explains failures.5243 npmMIT
- AlicenseNot gradedqualityDmaintenanceEU e-invoice validation, as a developer API. Check whether an electronic invoice conforms to EN 16931 — the European standard behind France, Germany, Belgium, Poland and the 2030 ViDA mandate — with a single REST call. Structured JSON errors mapped to the official BR-* business rules. No enterprise sales call required.MIT