FacturX API

v0.1.2
com.facturxapi/mcp Checked 1 day ago Published 21 days ago

Official MCP server for the FacturX API: dry run, Factur-X conversion, validation, rule lookup.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

facturx_dry_run

Check a complete ERP invoice JSON WITHOUT producing a file and WITHOUT using quota. Use it first, every time. Returns ready (true only when generationReadiness.status is 'ready'; success=false can still be ready), the readiness detail, request_id and idempotency_key.

ParameterTypeDescription
invoice *object
outputstring
validation_targetstring

facturx_convert

Final conversion: COSTS 1 invoice of the account quota (refunded by the API when no file is produced). Call it only after facturx_dry_run returned ready=true. Writes factur-x.pdf and factur-x.xml into out_dir and returns their paths, sizes, sha256, the verified target and the idempotency_key. If the call fails without an answer, call again with the SAME idempotency_key: the API will not charge twice.

ParameterTypeDescription
invoice *object
out_dir *string
idempotency_key
outputstring
validation_targetstring

facturx_validate

Validate an existing Factur-X PDF or CII XML file from the local disk against validation_target (default en16931, the same target as facturx_dry_run and facturx_convert; pass france_2026 to check the invoice is ready for a French PA, plateforme agréée). Returns valid, validationStatus, profile, target and the first errors as reported by the API. Counts 1 invoice of the account quota when the API returns a report.

ParameterTypeDescription
file_path *string
validation_targetstring

facturx_explain_error

Explain an EN16931 / France 2026 rule (e.g. BR-CO-15), a business term (e.g. BT-1) or an invoice JSON path (e.g. totals.gross): returns the matching invoice fields from the API's public integration contract (JSON path, BT, rule, CII XPath, requirement). Free, no API key needed. API error codes (409/503 …) are not in this public source yet.

ParameterTypeDescription
code_or_rule *string