cmendezs avatar

Mcp Facturacion Electronica Es

cmendezs/mcp-facturacion-electronica-es

If you're dealing with Spanish tax compliance, this server bridges Claude to Spain's famously complex six-system e-invoicing landscape. It generates and validates VERI*FACTU records with chained SHA-256 hashes for real-time AEAT submission, handles Facturae 3.2.2 XML with XAdES-EPES signatures for B2G invoicing via FACe, and detects which regime applies based on fiscal address and revenue. You get tools for SII SOAP/REST submissions (mandatory over €6M turnover), TicketBAI provincial XML variants for the Basque Country, and Crea y Crece B2B compliance checks. Built on mcp-einvoicing-core alongside the French and Belgian servers. Most functionality is marked pending regulatory confirmation, so treat this as pre-production until the January 2027 VERI*FACTU deadline firms up.

GitHub stars
2
tools
10
auth
Required
transport
STDIO
env vars
6
last updated
Sep 12, 2026

Tools

10 tools

Public tool metadata for what this MCP can expose to an agent.

es__generate_verifactu_recordGenerates a tamper-proof invoice record (Orden HAC/1177/2024) with SHA-256 `Huella` chaining that links it to the previous record.

Generates a tamper-proof invoice record (Orden HAC/1177/2024) with SHA-256 `Huella` chaining that links it to the previous record.

No parameter schema in public metadata yet.

es__validate_verifactu_recordValidates a VERI*FACTU XML record against the official XSD published with Orden HAC/1177/2024 (BOE-A-2024-22138).

Validates a VERI*FACTU XML record against the official XSD published with Orden HAC/1177/2024 (BOE-A-2024-22138).

No parameter schema in public metadata yet.

es__submit_verifactu_to_aeatSubmits a signed VERI*FACTU record to the AEAT real-time endpoint via MTLS (FNMT-RCM Class 1 certificate) or, if `EINVOICING_SIGNER_SOCKET` is configured, via the signer microservice.

Submits a signed VERI*FACTU record to the AEAT real-time endpoint via MTLS (FNMT-RCM Class 1 certificate) or, if `EINVOICING_SIGNER_SOCKET` is configured, via the signer microservice.

No parameter schema in public metadata yet.

es__generate_qr_verifactuGenerates the mandatory VERI*FACTU QR code (HAC/1177/2024 Art. 10) as a base64-encoded PNG.

Generates the mandatory VERI*FACTU QR code (HAC/1177/2024 Art. 10) as a base64-encoded PNG.

No parameter schema in public metadata yet.

es__cancel_verifactu_recordGenerates a VERI*FACTU cancellation record (`RegistroAnulacion`, `TipoHuella=01`) chained to the current fingerprint sequence.

Generates a VERI*FACTU cancellation record (`RegistroAnulacion`, `TipoHuella=01`) chained to the current fingerprint sequence.

No parameter schema in public metadata yet.

es__query_verifactu_statusQueries the `EstadoRegistro` of an already-submitted VERI*FACTU record (`ConsultaFactuSistemaFacturacion` / `ConsultaLR.xsd`).

Queries the `EstadoRegistro` of an already-submitted VERI*FACTU record (`ConsultaFactuSistemaFacturacion` / `ConsultaLR.xsd`).

No parameter schema in public metadata yet.

es__generate_facturae_xmlGenerates a Facturae 3.2.2 compliant XML invoice for B2G submission.

Generates a Facturae 3.2.2 compliant XML invoice for B2G submission.

No parameter schema in public metadata yet.

es__sign_facturae_xadesApplies an XAdES-EPES digital signature (ETSI EN 319 132-1) to a Facturae XML document.

Applies an XAdES-EPES digital signature (ETSI EN 319 132-1) to a Facturae XML document.

No parameter schema in public metadata yet.

es__submit_to_faceSubmits a signed Facturae XML to FACe (Punto General de Entrada de Facturas Electronicas) via the FACe integrator REST API.

Submits a signed Facturae XML to FACe (Punto General de Entrada de Facturas Electronicas) via the FACe integrator REST API.

No parameter schema in public metadata yet.

es__get_face_invoice_statusQueries the processing status of an invoice on FACe.

Queries the processing status of an invoice on FACe.

No parameter schema in public metadata yet.

Sponsors

Configuration

AEAT_ENV*

Target environment for AEAT endpoints: 'sandbox' or 'production'.

AEAT_CERTIFICATE_PATH

Filesystem path to the FNMT-RCM PKCS#12 certificate (.p12 / .pfx) used for MTLS submission to AEAT (VERI*FACTU and SII) and for JWS-signed FACe submission.

AEAT_CERTIFICATE_PASSWORD

Passphrase for the PKCS#12 certificate at AEAT_CERTIFICATE_PATH.

AEAT_NIF

Taxpayer NIF used as the default submitter identity for AEAT submissions.

FACE_ENV

Target environment for FACe API: 'sandbox' or 'production'.

LOG_LEVEL

Logging level inherited from mcp-einvoicing-core: DEBUG, INFO (default), WARNING, or ERROR.

Readme

mcp-facturacion-electronica-es 🇪🇸

English | Espanol

License PyPI version Python mcp-facturacion-electronica-es MCP server


Introduction


View the full README on GitHub

Details

Repository
github.com/cmendezs/mcp-facturacion-electronica-es
Category
Sales & Marketing
Package
mcp-facturacion-electronica-es
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from cmendezs

Related Sales & Marketing MCP servers

View all
1heyalerio avatarSpain Legal by Legal Fournierheyalerio/legalfournier-spain-legal-mcpSpain legal screening, articles, videos, interactive apps, public skills, and consent-based contact.2stars
2natden444 avatarPickanagencynatden444/pickanagency-mcpSearch 47,000+ marketing agencies and get AI-matched with fitted agencies, from Pick an Agency.2stars
3mambalabsdev avatarMcp Domain To Linkedin Url Resolvermambalabsdev/mcp-domain-to-linkedin-url-resolverResolves a company domain or name to its LinkedIn URL from search results, with confidence.2stars
4pablixnieto2 avatarEtld Mcp Serverpablixnieto2/etld-mcp-serverDeterministic B2B Data Middleware. Waterfall parsing for CSV, EDI, SEC & Finance. No hallucinations.2stars
5getcoherence avatarMcpgetcoherence/mcp-serverCoherence MCP — chat with your CRM's AI agent from Claude, Cursor, and Cline.0stars
6ozten avatarCantripozten/mcp-server-cantripMCP server for Cantrip — AI-powered GTM engine for solo founders1stars