mcp-facturacion-electronica-es

v0.11.0
io.github.cmendezs/mcp-facturacion-electronica-es Checked 3 days ago Published 12 days ago

Spanish e-invoicing MCP server: VERI*FACTU, Facturae/FACe, SII, Crea y Crece B2B.

Values you need

VariableWhat it is
AEAT_ENVrequired Target environment for AEAT endpoints: 'sandbox' or 'production'.
AEAT_CERTIFICATE_PATHoptional 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_PASSWORDoptional Passphrase for the PKCS#12 certificate at AEAT_CERTIFICATE_PATH.
AEAT_NIFoptional Taxpayer NIF used as the default submitter identity for AEAT submissions.
FACE_ENVoptional Target environment for FACe API: 'sandbox' or 'production'.
LOG_LEVELoptional 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.0
Add 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

  1. Ask the user for: AEAT_ENV. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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