VeriFactu

io.github.ArceeDev由 GitHub 账号 ArceeDev 发布v0.1.0更新于 Nov 7, 2026

Audit VERI*FACTU hash chains, build the AEAT tax QR, build and validate Facturae 3.2.2 invoices.

已验证Streamable HTTP可网页运行金融开发者工具商业与电商

概览

AI 生成的概览

审计西班牙 VERI*FACTU 发票哈希链、生成 AEAT 税务二维码,并构建或校验 Facturae 3.2.2 发票。

可以做什么
  • 审计 VERI*FACTU 记录链(JSON 或导出的 XML):SHA-256 指纹、链接关系、重复、作废、格式
  • 计算单条记录的指纹并显示被哈希的原始字符串
  • 生成 AEAT 税务二维码链接与 PNG/SVG 图片及打印规则
  • 根据普通发票数据构建未签名的 Facturae 3.2.2 XML
  • 校验 Facturae 文件:XSD、算术、NIF、DIR3 角色与签名是否存在
  • 查询合规期限,以及 NIF 校验、二维码链接检查、额度余额等免费辅助功能
适用场景
适合代账事务所、会计和发票软件团队,用于核查西班牙开票系统生成的记录、准备 Facturae 数据,或在申报、发送发票前确认 VERI*FACTU 期限。
运行要求
需要 KEYFLINT_LICENSE 中的 KeyFlint 许可证(LIC-...),付费工具必需。可作为托管端点通过 OAuth 使用,也可用 uvx 从 PyPI 包 verifactu-keyflint-mcp 本地运行;多买家托管模式使用 Bearer 许可证头。可选变量可配置价格、公钥、结账地址和最大输入大小。
安装前请注意
付费工具按次消耗额度,会产生费用;许可证密钥需妥善保管。它不是开票系统:不存储任何记录,也不向 AEAT 发送数据。生成的 Facturae XML 未签名,发送至 FACe 或 B2B 平台前须用开票方证书签名。期限信息应以 BOE 为准。

安装

在 SourceWeft 中

  1. 打开 控制台中的 VeriFactu,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.ArceeDev%2Fverifactu-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "verifactu": {
      "type": "http",
      "url": "https://mcp.keyflint.dev/verifactu/mcp"
    }
  }
}

README

verifactu-mcp

On PyPI as verifactu-keyflint-mcp (the name verifactu-mcp belongs to another project).

MCP server for Spanish invoicing compliance, built for AI agents working for gestorías, accountants and invoicing-software teams. Offline and stateless: nothing is stored and nothing is sent to the AEAT.

  • Audit VERI*FACTU chains: recompute the SHA-256 fingerprint (huella) of every record (alta and anulación) exactly as the AEAT specifies, and check that each record links to the previous one. Works on JSON records or on the XML any invoicing program exports (validated against the official SuministroLR.xsd).
  • AEAT tax QR: URL and PNG/SVG image (error correction M) for VERI*FACTU and non-VERI*FACTU systems, production or test portal, with the printing rules.
  • Facturae 3.2.2: build an invoice from plain data (totals, VAT breakdown, IRPF withholding, recargo de equivalencia, DIR3 codes for FACe, IBAN) and validate any Facturae file: official XSD, the arithmetic FACe checks, NIFs, DIR3 roles and signature presence.

The fingerprint code is tested against the three reference vectors published by the AEAT.

Tools

ToolCreditsWhat it does
validate_invoice_chain3Audit a chain of records (JSON, up to 20,000): fingerprints, links, PrimerRegistro, duplicates, cancellations of unknown invoices, timestamps, NIF/date/amount/TipoFactura formats. continues_from audits a chain in pieces.
validate_verifactu_xml3Same audit on exported XML (RegFactuSistemaFacturacion, SOAP envelope or any XML with RegistroAlta/RegistroAnulacion), plus XSD validation.
verifactu_hash1Fingerprint of one record, with the exact string hashed.
generate_verifactu_qr1Tax QR URL + image + printing rules.
build_facturae3Facturae 3.2.2 XML (unsigned) from plain invoice data, XSD-validated.
validate_facturae2XSD + arithmetic + NIF + DIR3 + signature check of a Facturae file.
verifactu_calendarfreeDeadlines in force and what is pending in the BOE, with sources.
check_qr_url, validate_nif, pricing, credits_balancefreeHelpers.

Unreadable or invalid input is never charged; a tool that fails after charging is refunded.

Install

Claude Desktop / Claude Code / Cursor (mcpServers entry):

json
{  "verifactu": {    "command": "uvx",    "args": ["--from", "verifactu-keyflint-mcp", "verifactu-mcp"],    "env": { "KEYFLINT_LICENSE": "LIC-..." }  }}

Hosted (one server, many buyers): verifactu-mcp --http or the Dockerfile; each request carries Authorization: Bearer LIC-....

Environment: KEYFLINT_LICENSE, KEYFLINT_URL, KEYFLINT_PUBLIC_KEYS, KEYFLINT_CHECKOUT_URL, VERIFACTU_PRICES (e.g. validate_invoice_chain=5,build_facturae=4), VERIFACTU_MAX_BYTES (default 10 MB).

Visual cards (MCP Apps)

In Claude, ChatGPT, VS Code and Goose every paid tool and credits_balance renders as an interactive card in the chat: credit balance with a refill bar and a buy button, or a result summary (key figures, issues, table preview and credits charged). It is the ui://verifactu/card.html resource, self-contained with no network access. Other clients keep getting the same JSON as before.

Legal status (checked 2026-11-05)

  • VERI*FACTU (RD 1007/2023, Orden HAC/1177/2024; dates from RD-ley 15/2025): 1 Jan 2027 for corporate income tax payers, 1 Jul 2027 for everyone else. Hacienda announced on 5 Oct 2026 a further delay to October 2028, not yet published in the BOE. Taxpayers on SII and the foral territories are out of scope.
  • Mandatory B2B e-invoicing (RD 238/2026, Orden HAC/1028/2026): 6 Oct 2027 for turnover above 8 M EUR, 6 Oct 2028 for the rest; EN 16931 in UBL, CII, EDIFACT or Facturae.
  • Facturae with XAdES signature is mandatory for invoices to public administrations through FACe.

verifactu_calendar returns this with sources. Always confirm in the BOE.

Scope and limits

  • Not an invoicing system (SIF): it keeps no records, sends nothing to the AEAT and does not replace the producer's declaración responsable. Use it to check what a SIF produced, or to prepare data.
  • build_facturae produces unsigned XML. Sign it (XAdES-EPES) with the issuer's certificate before sending to FACe or a B2B platform. Corrective invoices (InvoiceClass OR) and batches are validated but not built yet.
  • If a stored fingerprint only matches after removing trailing zeros from the amounts, it is reported as a warning (correcta_sin_ceros): the record was generated with amounts written differently from the XML.

Sources

  • AEAT, Detalle de las especificaciones técnicas para generación de la huella o hash de los registros de facturación (reference vectors in tests/test_core.py).
  • AEAT, Características del QR y especificaciones del servicio de cotejo.
  • AEAT web service schemas SuministroLR.xsd / SuministroInformacion.xsd, and Facturaev3_2_2.xsd (facturae.gob.es), bundled in src/verifactu_mcp/schemas/ with the W3C xmldsig schema.

Development

bash
pip install -e '.[test]'pytest -q

Business Source License 1.1. Source available; production use needs a KeyFlint license (or must be non-commercial). Each version becomes Apache 2.0 four years after release. See LICENSE. The bundled XSD files belong to their publishers (AEAT, Ministerio de Hacienda, W3C).

来源:README.md,提交 1831b88

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v0.1.0最新Nov 7, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。