
Verifactu Mcp
io.github.KmOnBeIbI31Published by GitHub account KmOnBeIbI31v0.1.1Updated Oct 24, 2026
MCP server para VeriFactu (AEAT). Facturación electrónica española desde Claude Code.
Overview
MCP server that lets an assistant generate, send, cancel and check Spanish VeriFactu (AEAT) electronic invoice records from natural language.
- What you can do
- Generate and hash invoice records: build valid VeriFactu XML with a chained SHA-256 hash, or compute the hash of any record without sending it.
- Send and cancel records: submit alta or anulación records to the AEAT through the verifactuapi.es API.
- Check and list records: query the status of a record and list sent records with optional issuer and pagination filters.
- Inspect local state: return the last hash stored locally for an issuer from a local SQLite audit log.
- When to use it
- Useful for Spanish businesses or developers that must issue VeriFactu-compliant electronic invoices and want to drive the AEAT workflow conversationally from Claude Code or Cursor instead of reading the AEAT technical documentation. Test against the sandbox first.
- Requirements
- Runs as a local Python process installed from PyPI (pip install -e . or python -m verifactu_mcp.server). Needs the VERIFACTU_API_TOKEN environment variable to send records, plus network access to the verifactuapi.es API. Optional variables: VERIFACTU_API_BASE (defaults to production) and VERIFACTU_STATE_DB (defaults to ~/.verifactu-mcp/state.db).
Installation
In SourceWeft
- Open Verifactu Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
verifactu-mcp
Servidor MCP para integrar VeriFactu (AEAT) con Claude Code y Cursor.
Permite generar, encadenar y enviar registros de facturación electrónica desde lenguaje natural, sin necesidad de leer la documentación técnica de la AEAT.
Herramientas disponibles
El encadenamiento real lo gestiona la API verifactuapi.es internamente (vía
previous_id). El servidor MCP persiste la huella canónica que devuelve la
API en SQLite local (~/.verifactu-mcp/state.db) como audit log, no como
mecanismo de encadenamiento operativo. La herramienta get_last_hash consulta
ese log.
calculate_hash y la huella huella_local_estimada de send_invoice son
estimaciones heurísticas para inspección — la huella canónica AEAT incluye
el timestamp server-side y solo el servidor puede generarla.
Smoke test contra sandbox
Ejecuta list_invoices + send_invoice (¡emite registro real en sandbox!) +
check_invoice_status + get_last_hash. NO ejecutar contra producción.
Instalación
Configuración en Claude Code
Tras pip install -e ., el script verifactu-mcp queda disponible globalmente.
Añade esto a tu ~/.claude.json (o claude_desktop_config.json):
Alternativa sin script instalado (vía python -m):
Uso desde Claude Code
Variables de entorno
Entornos AEAT
Para certificados de prueba (sandbox): [email protected]
Licencia
MIT
Source: README.md at commit 9878e30
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts