eleata-einvoice-mcp is an MCP (Model Context Protocol) server for AI coding agents, focused on EU electronic invoice validation and error code explanation. It is designed to help developers quickly find and fix problems before invoices are rejected by official systems.
Purpose: This tool is used to validate EU electronic invoice formats, including Peppol BIS, XRechnung, Factur-X/ZUGFeRD, UBL and CII. It can be called directly within AI coding agents (such as Claude, Cursor, Copilot), allowing the agent to run official Schematron rules and return rule IDs and remediation suggestions. Typical scenarios include: checking the validity of an invoice before submission, avoiding rejections such as SdI scarto, Chorus Pro rejection or KSeF errors.
Main capabilities:
- Validate electronic invoices: through the validate_einvoice tool, send invoice files to the hosted eleata validation API for validation.
- List supported formats: through the list_formats tool, list the currently validatable electronic invoice formats locally offline.
- Explain error codes: through the explain_error_code tool, query the built-in error code reference locally offline, explain the meaning of errors and provide fixes.
- Support multiple formats: Peppol, XRechnung, Factur-X, UBL/CII, etc.
- Integrate with AI agents: can be configured into MCP-compatible agents such as Claude Desktop, Claude Code, Cursor, etc.
How to use:
- Get a free API key: visit https://eleata.io/signup/ to register, 200 validations per month are provided, no credit card required.
- Add the server to the agent's MCP configuration:
- Claude Desktop / Claude Code: add the configuration in claude_desktop_config.json or .mcp.json.
- Cursor: add the configuration in ~/.cursor/mcp.json.
- Example prompts:
- "Validate this XRechnung file and tell me what needs to be fixed" (paste XML)
- "What does FatturaPA error 00400 mean, and how do I fix it?"
- "Which electronic invoice formats can currently be validated?"
Applicable scenarios:
- Developers pre-validating EU electronic invoices before submission.
- Integrating validation into CI/CD processes (via CLI: npx @eleata/validate-einvoice).
- Scenarios that need to quickly understand validation error codes and get remediation suggestions.
- When using AI coding agents for invoice-related development, directly call the validation function through the agent.
Limitations:
- validate_einvoice sends the invoice to the hosted eleata API for validation, which involves data privacy, see https://eleata.io/privacy/。
- list_formats and explain_error_code are local offline functions, and the error code reference is built in.
- The free API key is limited to 200 validations per month.
- The tool uses the MIT license. The Schematron engine uses Mustang / phive, and the rules come from CEN, OpenPeppol, KoSIT.
- For more information, visit https://eleata.io,错误代码参考见 https://eleata.io/error/。