MCP 服务器

invoicehub

dev.invoicehub/invoicehub
商业与运营 法律与合规 公开且可连接 MCP 2026-07-28

此 MCP 可以做什么

Generates, converts, and validates EU electronic invoices against EN 16931, XRechnung, UBL, and CII rules.

convert_invoice
Convert an e-invoice between formats via the shared EN 16931 canonical model: parse the source document, re-serialize as the target, and validate the result before returning it — never a document that has not been checked. Format ids: "UBL_2.1" (OASIS UBL, the universal Peppol/EN16931 baseline), "UN_CEFACT_CII" (UN/CEFACT Cross Industry Invoice, required syntax for Chorus Pro/France and many ERP back-ends), "XRechnung_UBL" / "XRechnung_CII" (Germany's mandatory B2G format, XRechnung 3.0 — required for invoicing German public-sector buyers), "Factur-X" (France/Germany hybrid PDF+XML — a human-readable PDF/A-3 with the structured invoice embedded, common for French B2B). Binary formats (Factur-X) are base64 in both directions. Requires an API key on the Pro plan or above for any target beyond plain UBL_2.1 — call list_supported_formats to see current availability.
幂等
输入模式
{'type': 'object', 'required': ['from', 'to', 'document'], 'properties': {'to': {'type': 'string', 'description': 'Target format id, e.g. "UN_CEFACT_CII", "XRechnung_UBL", "XRechnung_CII", or "Factur-X".'}, 'from': {'type': 'string', 'description': 'Source format id, e.g. "UBL_2.1".'}, 'document': {'type': 'string', 'description': 'The source document: raw text for XML formats, base64 for binary formats (Factur-X).'}}}
generate_invoice
Generate an EN 16931-conformant UBL 2.1 invoice from structured fields. The result is self-validated before being returned. Provide seller, buyer, and at least one line; for standard-rated (category "S") lines include a vatRate and the seller vatId.
幂等
输入模式
{'type': 'object', 'required': ['invoiceNumber', 'issueDate', 'currency', 'seller', 'buyer', 'lines'], 'properties': {'buyer': {'type': 'object'}, 'lines': {'type': 'array', 'items': {'type': 'object'}}, 'seller': {'type': 'object'}, 'dueDate': {'type': 'string'}, 'payment': {'type': 'object'}, 'currency': {'type': 'string', 'description': 'ISO 4217, e.g. EUR.'}, 'issueDate': {'type': 'string', 'description': 'ISO date, e.g. 2026-06-19.'}, 'invoiceNumber': {'type': 'string'}}}
list_supported_formats
List the e-invoice formats InvoiceHub validates today and what is on the roadmap.
只读 幂等
输入模式
{'type': 'object', 'properties': {}}
validate_invoice
Validate an EU e-invoice XML string against the official EN 16931 Schematron. Accepts either syntax — UBL 2.1 (Invoice or CreditNote) or UN/CEFACT CII — and auto-detects which. A document declaring the XRechnung 3.0 CustomizationID is additionally checked against KoSIT's XRechnung delta ruleset. Returns whether it is valid and any failing BR-* / BR-DE-* business rules.
只读 幂等
输入模式
{'type': 'object', 'required': ['xml'], 'properties': {'xml': {'type': 'string', 'description': 'Raw e-invoice XML (UBL 2.1 or UN/CEFACT CII).'}}}
已添加
list_supported_formats
2026年9月17日 12:39
已添加
convert_invoice
2026年9月17日 12:39
已添加
generate_invoice
2026年9月17日 12:39
已添加
validate_invoice
2026年9月17日 12:39