World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Spanish e-invoicing MCP server: VERI*FACTU, Facturae/FACe, SII, Crea y Crece B2B.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 7/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 19/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install MCP Facturacion Electronica Es. Follow https://mcp.popnx.com/i/cmendezs-mcp-facturacion-electronica-es.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 17, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a MCP Facturacion Electronica Es key (create it on the maker’s site) · 1 setting(s) to fill in (AEAT_ENV) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Facturacion Electronica Es for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "facturacion-electronica-es": { "command": "uvx", "args": [ "mcp-facturacion-electronica-es" ], "env": { "AEAT_ENV": "your-value", "AEAT_CERTIFICATE_PASSWORD": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For AEAT_CERTIFICATE_PASSWORD, AEAT_ENV, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Facturacion Electronica Es tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
AEAT_ENV Target environment for AEAT endpoints: 'sandbox' or 'production'.Descriptions are as written by the maker.
SettingsDeveloperEdit Config
{
"mcpServers": {
"facturacion-electronica-es": {
"command": "uvx",
"args": [
"mcp-facturacion-electronica-es"
],
"env": {
"AEAT_ENV": "your-value",
"AEAT_CERTIFICATE_PASSWORD": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use MCP Facturacion Electronica Es and tell me what you can do for me, then show me one thing✓ If Claude says it is using MCP Facturacion Electronica Es or shows a MCP Facturacion Electronica Es tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
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_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.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect MCP Facturacion Electronica Es yet
MCP Facturacion Electronica Es runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect MCP Facturacion Electronica Es
B · Others in Other that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a MCP Facturacion Electronica Es key (create it on the maker’s site) · 1 setting(s) to fill in (AEAT_ENV) · Install Python (uv) on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Facturacion Electronica Es for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user facturacion-electronica-es --env AEAT_ENV=your-value --env AEAT_CERTIFICATE_PASSWORD=your-value -- uvx mcp-facturacion-electronica-es 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For AEAT_CERTIFICATE_PASSWORD, AEAT_ENV, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Facturacion Electronica Es tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
AEAT_ENV Target environment for AEAT endpoints: 'sandbox' or 'production'.Descriptions are as written by the maker.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user facturacion-electronica-es --env AEAT_ENV=your-value --env AEAT_CERTIFICATE_PASSWORD=your-value -- uvx mcp-facturacion-electronica-esReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see MCP Facturacion Electronica Es listed as connected
Use MCP Facturacion Electronica Es and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using MCP Facturacion Electronica Es or shows a MCP Facturacion Electronica Es tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
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_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.Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a MCP Facturacion Electronica Es key (create it on the maker’s site) · 1 setting(s) to fill in (AEAT_ENV) · Install Python (uv) on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Facturacion Electronica Es for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "facturacion-electronica-es": { "command": "uvx", "args": [ "mcp-facturacion-electronica-es" ], "env": { "AEAT_ENV": "your-value", "AEAT_CERTIFICATE_PASSWORD": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For AEAT_CERTIFICATE_PASSWORD, AEAT_ENV, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Facturacion Electronica Es tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
AEAT_ENV Target environment for AEAT endpoints: 'sandbox' or 'production'.Descriptions are as written by the maker.
In the MCP Facturacion Electronica Es settings, AEAT_CERTIFICATE_PASSWORD, AEAT_ENV is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use MCP Facturacion Electronica Es and tell me what you can do for me, then show me one thing✓ If Cursor says it is using MCP Facturacion Electronica Es or shows a MCP Facturacion Electronica Es tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
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_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.Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a MCP Facturacion Electronica Es key (create it on the maker’s site) · 1 setting(s) to fill in (AEAT_ENV) · Install Python (uv) on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server MCP Facturacion Electronica Es for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "facturacion-electronica-es": { "type": "stdio", "command": "uvx", "args": [ "mcp-facturacion-electronica-es" ], "env": { "AEAT_ENV": "your-value", "AEAT_CERTIFICATE_PASSWORD": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For AEAT_CERTIFICATE_PASSWORD, AEAT_ENV, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the MCP Facturacion Electronica Es tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
AEAT_ENV Target environment for AEAT endpoints: 'sandbox' or 'production'.Descriptions are as written by the maker.
In the MCP Facturacion Electronica Es settings, AEAT_CERTIFICATE_PASSWORD, AEAT_ENV is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use MCP Facturacion Electronica Es and tell me what you can do for me, then show me one thing✓ If VS Code says it is using MCP Facturacion Electronica Es or shows a MCP Facturacion Electronica Es tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
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_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.Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user facturacion-electronica-es --env AEAT_ENV=your-value --env AEAT_CERTIFICATE_PASSWORD=your-value -- uvx mcp-facturacion-electronica-esClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"facturacion-electronica-es": {
"command": "uvx",
"args": [
"mcp-facturacion-electronica-es"
],
"env": {
"AEAT_ENV": "your-value",
"AEAT_CERTIFICATE_PASSWORD": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"facturacion-electronica-es": {
"command": "uvx",
"args": [
"mcp-facturacion-electronica-es"
],
"env": {
"AEAT_ENV": "your-value",
"AEAT_CERTIFICATE_PASSWORD": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"facturacion-electronica-es": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-facturacion-electronica-es"
],
"env": {
"AEAT_ENV": "your-value",
"AEAT_CERTIFICATE_PASSWORD": "your-value"
}
}
}
}AEAT_ENV required envAEAT_CERTIFICATE_PATH envAEAT_CERTIFICATE_PASSWORD secret required envAEAT_NIF envFACE_ENV envLOG_LEVEL envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026
The registry name was verified with the GitHub account cmendezs, which owns the repo
Code last changed 3 days ago
Uses Apache-2.0
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Not checked yet
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/cmendezs-mcp-facturacion-electronica-es)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: AEAT_CERTIFICATE_PASSWORD
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 3 days ago, and the latest version (0.10.2) reached the registry 3 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
| This one MCP Facturacion Electronica Es | World Monitor | openstatus | Oh My Posh Validator | Strata | Jitsu | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | No | No | No | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 1/4 | 4/4 |
| License | Apache-2.0 | AGPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | MIT |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
mcp-facturacion-electronica-es is an MCP (Model Context Protocol) server specialized in Spanish e-invoicing. It provides tools to generate, validate, and submit electronic invoices under the six coexisting systems in Spain: VERI\*FACTU, Facturae/FACe, SII, TicketBAI (Basque Country), NaTicket (Navarre), and the B2B obligations of Ley 18/2022 "Crea y Crece". The server is built on mcp-einvoicing-core, the shared base library used by mcp-facture-electronique-fr (France, XP Z12-013) and mcp-einvoicing-be (Belgium, Peppol BIS 3.0), which provides common models, validation abstractions, XML utilities, and the exception hierarchy. mcp-einvoicing-core is installed automatically as a transitive dependency, no additional steps are required.
Spain operates one of the most complex e-invoicing landscapes in Europe, with six overlapping systems that apply depending on taxpayer size, sector, and region. VERI\*FACTU (Royal Decree 1007/2023, Order HAC/1177/2024) is the forthcoming mandatory real-time invoice registry for non-SII taxpayers, with hard deadlines in January and July 2027 (RD-ley 15/2025). SII (Suministro Inmediato de Informacion, Immediate Information Supply) already applies to large taxpayers (>6M EUR turnover). The Basque Country runs TicketBAI and Navarre runs NaTicket, both independent of the national AEAT framework. B2G invoicing via Facturae XML on the FACe portal has been mandatory since 2015 (Ley 25/2013).
pip install mcp-facturacion-electronica-es
Without prior installation, using uvx:
uvx mcp-facturacion-electronica-es
git clone https://github.com/cmendezs/mcp-facturacion-electronica-es.git
cd mcp-facturacion-electronica-es uv sync --all-extras
All configuration is done through environment variables or a .env file.
| Variable | Description | Required |
|---|---|---|
AEAT_ENV | sandbox or production | Yes |
AEAT_CERTIFICATE_PATH | Path to FNMT-RCM PKCS#12 certificate | For submission |
AEAT_CERTIFICATE_PASSWORD | Certificate password | For submission |
AEAT_NIF | Taxpayer NIF | For submission |
| Variable | Description | Required |
|---|---|---|
FACE_ENV | sandbox or production | Yes |
FACe authenticates via JWS using the same AEAT_CERTIFICATE_PATH / AEAT_CERTIFICATE_PASSWORD certificate as VERI\*FACTU/SII (see the AEAT section above); no separate FACe credentials are required.
| Variable | Description | Required |
|---|---|---|
TICKETBAI_ENV | sandbox or production | Yes |
TICKETBAI_CERTIFICATE_PATH | Provincial signing certificate path | Yes |
TICKETBAI_CERTIFICATE_PASSWORD | Certificate password | Yes |
mcp-einvoicing-core)| Variable | Description | Default |
|---|---|---|
LOG_LEVEL | DEBUG, INFO, WARNING, ERROR | INFO |
To use this server with Claude, add this configuration to your claude_desktop_config.json file:
{
"mcpServers": { "facturacion-es": { "command": "uvx", "args": ["mcp-facturacion-electronica-es"], "env": { "AEAT_ENV": "sandbox", "AEAT_CERTIFICATE_PATH": "/path/to/cert.p12", "AEAT_CERTIFICATE_PASSWORD": "certificate-password" } } } }
Cursor supports MCP servers via stdio. Add the configuration in:
~/.cursor/mcp.json.cursor/mcp.json{
"mcpServers": { "facturacion-es": { "command": "uvx", "args": ["mcp-facturacion-electronica-es"], "env": { "AEAT_ENV": "sandbox", "AEAT_CERTIFICATE_PATH": "/path/to/cert.p12", "AEAT_CERTIFICATE_PASSWORD": "certificate-password" } } } }
Reload the Cursor window (Ctrl+Shift+P then *Reload Window*) to apply the changes.
Kiro supports MCP servers via its dedicated configuration file. Two levels are available:
~/.kiro/settings/mcp.json.kiro/settings/mcp.json{
"mcpServers": { "facturacion-es": { "command": "uvx", "args": ["mcp-facturacion-electronica-es"], "env": { "AEAT_ENV": "sandbox", "AEAT_CERTIFICATE_PATH": "/path/to/cert.p12", "AEAT_CERTIFICATE_PASSWORD": "certificate-password" }, "disabled": false, "autoApprove": [] } } }
The file is automatically reloaded on save. You can also open the config via the command palette (Cmd+Shift+P / Ctrl+Shift+P) then *MCP*.
Kiro security tip: rather than writing secrets in plain text, use the syntax
"AEAT_CERTIFICATE_PASSWORD": "${AEAT_CERTIFICATE_PASSWORD}", Kiro resolves shell environment variables at startup.
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
invoice | InvoiceDocument | Yes | Core invoice model (seller, buyer, lines, VAT) |
previous_hash | string | No | SHA-256 Huella of the preceding record (null = first in chain) |
software_id | string | Yes | IDSistemaInformatico of the certified software |
software_nif | string | Yes | NIF of the software manufacturer |
invoice_type | string | Yes | F1, F2, R1-R5 or F3 |
{
"tool": "es__generate_verifactu_record", "arguments": { "invoice": { "date": "2025-03-15", "number": "2025-0042", "currency": "EUR", "seller": { "tax_id": { "country_code": "ES", "identifier": "B12345678" }, "name": "Empresa SL" }, "buyer": { "tax_id": { "country_code": "ES", "identifier": "A98765432" }, "name": "Cliente SA" }, "lines": [{ "line_number": 1, "description": "Servicios", "quantity": 10, "unit_price": 100.00, "vat_rate": 21.0 }] }, "previous_hash": "3C4A9B...", "software_id": "SW-001", "software_nif": "B87654321", "invoice_type": "F1" } }
The
Huellachaining algorithm (SHA-256 over the keyedcampo=valor&canonical string) is
confirmed byte-for-byte against AEAT's own huella specification and its worked examples
(
specs/verifactu/documentation/Veri-Factu_especificaciones_huella_hash_registros.pdf).
⚠️ Still pending: full XSD v1.0 validation against a live AEAT test-environment acknowledgement.
es__validate_verifactu_recordValidates a VERI\*FACTU XML record against the official XSD published with Orden HAC/1177/2024 (BOE-A-2024-22138).
| Parameter | Type | Required | Description |
|---|---|---|---|
xml | string | Yes | Raw VERI\*FACTU XML record |
schema_version | string | No | Schema version (default: "1.0") |
{ "tool": "es__validate_verifactu_record", "arguments": { "xml": "<RegistroFacturacion>...</RegistroFacturacion>" } }
Structural checks now branch correctly on
RegistroAltavs.RegistroAnulacion(a prior version
false-flagged valid
RegistroAnulaciondocuments as missingTipoFactura/CuotaTotal/ImporteTotal,
fields that only apply to
RegistroAlta). Full XSD-mode validation (SuministroLR.xsd, bundled
under
resources/verifactu/) requires network access at runtime — it imports the W3C xmldsig-core
schema by remote URL — and falls back to the structural checks above when that import can't
resolve.
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. Respects AEAT_ENV=sandbox|production. The submission endpoint (.../SistemaFacturacion/VerifactuSOAP) is confirmed from the official AEAT WSDL and shared by both the alta/anulación submission and the es__query_verifactu_status query operation.
| Parameter | Type | Required | Description |
|---|---|---|---|
xml | string | Yes | Signed VERI\*FACTU XML |
nif | string | Yes | Sender NIF |
{ "tool": "es__submit_verifactu_to_aeat", "arguments": { "xml": "<RegistroFacturacion>...</RegistroFacturacion>", "nif": "B12345678" } }
The response includes a chain object implementing the accepted-only chain contract: chain.safe_to_chain_from (the submitted record's own emisor_nif/num_serie/fecha/huella) is populated only when AEAT's EstadoRegistro is Correcto or AceptadoConErrores — both mean the record was actually stored under that Huella. Otherwise safe_to_chain_from is null with an explicit warning not to use this record's Huella as the next record's previous_hash, or (for a deferred result) a note to call es__query_verifactu_status first.
es__generate_qr_verifactuGenerates the mandatory VERI\*FACTU QR code (HAC/1177/2024 Art. 10) as a base64-encoded PNG. Encodes the AEAT verification URL with the text "Factura verificable en la sede electronica de la AEAT". Candidate for promotion to mcp-einvoicing-core (QR generation). URL format (host, path, nif/numserie/fecha/importe query parameters, and per-parameter URL-encoding) is confirmed against the official AEAT QR specification (specs/verifactu/documentation/DetalleEspecificacTecnCodigoQRfactura.pdf); the URL switches between the sandbox and production ValidarQR host based on AEAT_ENV.
| Parameter | Type | Required | Description |
|---|---|---|---|
nif | string | Yes | Issuer NIF |
invoice_number | string | Yes | NumSerieFactura |
invoice_date | string | Yes | FechaExpedicionFactura (YYYY-MM-DD) |
total_amount | number | Yes | Invoice total including VAT |
size_px | integer | No | QR size in pixels (default: 200) |
{ "tool": "es__generate_qr_verifactu", "arguments": { "nif": "B12345678", "invoice_number": "2025-0042", "invoice_date": "2025-03-15", "total_amount": 1210.00 } }
es__cancel_verifactu_recordGenerates a VERI\*FACTU cancellation record (RegistroAnulacion, TipoHuella=01) chained to the current fingerprint sequence. Both the anulación Huella (SHA-256 over IDEmisorFacturaAnulada/NumSerieFacturaAnulada/FechaExpedicionFacturaAnulada/Huella/ FechaHoraHusoGenRegistro — a distinct field set from RegistroAlta's, not a reduced copy of it) and the top-level block's element names are confirmed against the official AEAT huella specification and SuministroInformacion.xsd.
| Parameter | Type | Required | Description |
|---|---|---|---|
original_invoice_number | string | Yes | NumSerieFactura to cancel |
original_invoice_date | string | Yes | FechaExpedicionFactura (YYYY-MM-DD) |
issuer_nif | string | Yes | Issuer NIF |
previous_hash | string | Yes | Huella of the last record in the chain |
{ "tool": "es__cancel_verifactu_record", "arguments": { "original_invoice_number": "2025-0042", "original_invoice_date": "2025-03-15", "issuer_nif": "B123