MCP.Market

Verifactu MCP server

by KmOnBeIbI31·io.github.KmOnBeIbI31/verifactu-mcp·v0.1.1

MCP server para VeriFactu (AEAT). Facturación electrónica española desde Claude Code.

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

0 stars21 downloads/wk

Reviews

Write one

Nobody has reviewed Verifactu yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Verifactu tools (2, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • cancel_invoicewrite action

    Envía un registro de anulación de factura a la AEAT.

  • check_invoice_status

    Consulta el estado de un registro de facturación en la AEAT.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan13 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 130 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Verifactu compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 63% of 48,255 servers
Tools
2
the typical server has 7
Tools that change things
50%
typical: 0%. Fewer write tools means less an agent can break
Downloads a week
21
more than 8% of 12,191 servers with a package

What its tools let an agent do: 1 read · 1 delete

Install Verifactu in Claude Code, Cursor or VS Code

claude mcp add verifactu-mcp -- uvx verifactu-mcp
Add to Cursor

What the publisher says

From the Verifactu repository's README, as published. We do not edit it. Read it on GitHub

verifactu-mcp

<!-- mcp-name: io.github.KmOnBeIbI31/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 previousid). 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 getlast_hash consulta ese log.

calculatehash y la huella huellalocalestimada de sendinvoice 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

$env:VERIFACTU_API_TOKEN = "<tu_token_sandbox>"
python smoke_test.py <id_emisor> [nif_receptor]

Ejecuta listinvoices + sendinvoice (¡emite registro real en sandbox!) + checkinvoicestatus + getlasthash. NO ejecutar contra producción.

Instalación

# 1. Clona el repositorio
git clone https://github.com/tuusuario/verifactu-mcp
cd verifactu-mcp

# 2. Instala las dependencias
pip install -e .

Configuración en Claude Code

Tras pip install -e ., el script verifactu-mcp queda disponible globalmente. Añade esto a tu ~/.claude.json (o claudedesktopconfig.json):

{
  "mcpServers": {
    "verifactu": {
      "command": "verifactu-mcp",
      "env": {
        "VERIFACTU_API_TOKEN": "tu_token_aqui"
      }
    }
  }
}

Alternativa sin script instalado (vía python -m):

{
  "mcpServers": {
    "verifactu": {
      "command": "python",
      "args": ["-m", "verifactu_mcp.server"],
      "cwd": "/ruta/a/verifactu-mcp",
      "env": {
        "VERIFACTU_API_TOKEN": "tu_token_aqui"
      }
    }
  }
}

Uso desde Claude Code

# Generar un XML sin enviar (ideal para pruebas)
"Genera un registro VeriFactu para una factura de 100€ + 21% IVA,
 emisor B12345678, serie 2025/001, fecha 15-05-2025,
 descripción: Servicios de desarrollo web"

# Enviar a la AEAT — la huella anterior se resuelve automáticamente
"Envía a la AEAT la factura 2025/001 del emisor B12345678,
 base 100€, IVA 21%, fecha hoy"

# Consultar estado
"¿Cuál es el estado del registro con ID 42?"

# Anular una factura
"Anula la factura 2025/001 del emisor B12345678"

# Listar las facturas enviadas
"Lista las últimas 50 facturas enviadas para el emisor B12345678"

# Inspeccionar el último hash del emisor
"¿Cuál es la última huella encadenada para B12345678?"

Variables de entorno

Entornos AEAT

Para certificados de prueba (sandbox): catentidades@correo.aeat.es

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Verifactu: common questions

Is Verifactu MCP server safe?
Mostly: it is graded B (82/100). Read the Verifactu safety report
How do I install Verifactu?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Verifactu need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Verifactu maintained?
The last commit was 168 days ago (2026-05-20). The latest release is v0.1.1.
How does Verifactu compare with other MCP servers?
safety score 82/100 (higher than 63% of 48,255 servers); tools 2 (the typical server has 7); tools that change things 50% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.