mcp-facturacion-electronica-es
v0.11.0Spanish e-invoicing MCP server: VERI*FACTU, Facturae/FACe, SII, Crea y Crece B2B.
Values you need
| Variable | What it is | |
|---|---|---|
AEAT_ENV | required | Target environment for AEAT endpoints: 'sandbox' or 'production'. |
AEAT_CERTIFICATE_PATH | optional | 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 | optional | Passphrase for the PKCS#12 certificate at AEAT_CERTIFICATE_PATH. |
AEAT_NIF | optional | Taxpayer NIF used as the default submitter identity for AEAT submissions. |
FACE_ENV | optional | Target environment for FACe API: 'sandbox' or 'production'. |
LOG_LEVEL | optional | Logging level inherited from mcp-einvoicing-core: DEBUG, INFO (default), WARNING, or ERROR. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add mcp-facturacion-electronica-es -e 'AEAT_ENV=<AEAT_ENV>' -- uvx mcp-facturacion-electronica-es==0.11.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-facturacion-electronica-es": {
"args": [
"mcp-facturacion-electronica-es==0.11.0"
],
"command": "uvx",
"env": {
"AEAT_ENV": "<AEAT_ENV>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-facturacion-electronica-es": {
"args": [
"mcp-facturacion-electronica-es==0.11.0"
],
"command": "uvx",
"env": {
"AEAT_ENV": "<AEAT_ENV>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "AEAT_ENV",
"id": "aeat-env",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-facturacion-electronica-es": {
"args": [
"mcp-facturacion-electronica-es==0.11.0"
],
"command": "uvx",
"env": {
"AEAT_ENV": "${input:aeat-env}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-facturacion-electronica-es]
command = "uvx"
args = ["mcp-facturacion-electronica-es==0.11.0"]
env = { "AEAT_ENV" = "<AEAT_ENV>" }For AI agents
- Ask the user for: AEAT_ENV. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: es__generate_verifactu_record, es__validate_verifactu_record, es__submit_verifactu_to_aeat, es__query_verifactu_status, es__generate_qr_verifactu, es__cancel_verifactu_record, es__generate_facturae_xml, es__sign_facturae_xades, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json