Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

io.github.cmendezs/mcp-cfdi-mx

PYPI · MCP-CFDI-MX

MCP server for Mexican electronic invoicing (CFDI 4.0, Pagos 2.0)

Available components

−15 this week 78 Trust /100

Last scanned (21 hours ago)

Scores higher than 76% of PyPI servers

Category Finance and Payments

Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security50
  • Malware scan not yet available for this package.Unverified
  • No known CVEs affecting this package version or its production dependencies.Pass
  • Runs hatchling.build at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
  • 2 of 28 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency100
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Cryptographically verified build provenance (signed, bound to cmendezs/mcp-cfdi-mx). View diagnostics → Pass
  • Clear OSI-approved license (Apache-2.0).Pass
  • Actively maintained (last published 52 days ago).Pass
  • Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability61
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 2155 tokens (~359/item across 6 items; 6 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
  • No destabilizing schema changes in the last 30 days.Pass
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
  • Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • We read all 6 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
  • An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a current MCP spec version (2026-07-28).Pass
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Nov 26 −15
    • Malware scan: pass → unverified ▼ security
  • 2 Nov 26 +15
    • Malware scan: unverified → pass ▲ security
    • Stability: 0.97 → pass security
  • 1 Nov 26 −15
    • Malware scan: pass → unverified ▼ security
    • Stability: pass → 0.97 functional
  • 31 Oct 26 +15
    • Malware scan: unverified → pass ▲ security
  • 30 Oct 26 −15
    • Malware scan: pass → unverified ▼ security
  • 26 Oct 26 0
    • Stability: 0.97 → pass security
  • 25 Oct 26 0
    • Stability: pass → 0.97 functional
  • 22 Oct 26 +15
    • Malware scan: unverified → pass ▲ security
Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 4 Nov 2026 · Analysed pypi/mcp-cfdi-mx@0.4.1

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem pypi
Reason Verified
Discovered via Registry attestation endpoint
Source repo cmendezs/mcp-cfdi-mx
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/cmendezs/mcp-cfdi-mx/.github/workflows/publish.yml@refs/tags/v0.4.1
Rekor log index 2805187344
Predicate type PyPI publish attestation https://docs.pypi.org/attestations/publish/v1
Subject digest sha256:dbd179eeb0f1e2f57dee016903725968bd785768b986bde47ab137a917d5f526

Background: How many MCP packages publish verified provenance →

Install scripts 1 script
Hook Tier Command
build_backend allowlisted hatchling.build

Background: Why install scripts are a supply-chain risk →

Dependencies 28 packages
Packages resolved 28
Stale 1
No linked repository 1
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 6 exposed · ~2,031 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
mx__build_cfdi ~317

Build a well-formed, unsealed CFDI 4.0 `Comprobante` XML (Ingreso or Egreso). `comprobante_data` is validated against `CFDIComprobante` — see that model for the full field list (`seller`/`buyer` as `MXEmisor`/ `MXReceptor`, `lines` as `CFDIConcepto`, `tipo_de_comprobante`, etc.). RFC fields are validated via `TaxIdentifier.validate_mx_rfc` as part of model construction; a malformed RFC is reported as a validation error, not a generated document. The output XML omits `Sello`/`NoCertificado`/`Certificado` — those three schema-required attributes are populated by `mx__seal_cfdi`, run afterward. `mx__validate_cfdi` run on this output is expected to report exactly those three attributes missing; that is not a bug in this tool. For `TipoDeComprobante="P"` (Complemento de Pagos), use `mx__build_pago` instead — this tool only builds Ingreso/Egreso Comprobantes. Returns a dict with: - ``xml``: the generated, unsealed CFDI 4.0 XML string - ``total``: the computed `Total` attribute (SubTotal - Descuento + traslados - retenciones)

NameTypeReqDescription
comprobante_dataobjectyesFields matching the CFDIComprobante schema (Ingreso or Egreso only)

Structured output declared, but exposes no named fields.

No examples provided.

mx__build_pago ~329

Build a well-formed, unsealed Complemento de Pagos 2.0 CFDI. Composes the fixed single-`Concepto` wrapper SAT's Guía de llenado de pagos mandates for a Pago-type `Comprobante` (`ClaveProdServ`, `ClaveUnidad`, `Descripcion`, `ValorUnitario`, `Importe`, `ObjetoImp` are all fixed conventional values — see this module's docstring constants) with the `Pagos20` complement built from `pagos_data`, and attaches the complement under `cfdi:Complemento`. `buyer.uso_cfdi` is forced to `"CP01"` (the schema requires it for every Pagos CFDI per the same guide, regardless of what the caller passes) — mirrors how this tool already forces `SubTotal`/`Moneda`/etc. The output XML omits `Sello`/`NoCertificado`/`Certificado`, same as `mx__build_cfdi` — seal afterward with `mx__seal_cfdi`. Returns a dict with: - ``xml``: the generated, unsealed CFDI XML string (with the Pagos complement attached)

NameTypeReqDescription
comprobante_dataobjectyesFields matching CFDIComprobante, minus SubTotal/Moneda/FormaPago/MetodoPago/CondicionesDePago/lines/TipoDeComprobante — all fixed or derived for a Pagos CFDI, do not supply them
pagos_dataobjectyesFields matching the Pagos20 schema

Structured output declared, but exposes no named fields.

No examples provided.

mx__get_supported_scope ~127

Return the CFDI document types, complementos, and sealing modes this package supports. Reflects Phase 1 scope: CFDI 4.0 Ingreso + Egreso + Complemento de Pagos 2.0, PAC-agnostic sealing. Build (`mx__build_cfdi`/`mx__build_pago`), XSD validation (`mx__validate_cfdi`), sealing (`mx__seal_cfdi`), and TFD verification (`mx__verify_tfd`) are all implemented. PAC submission transport and later-phase complementos are not.

Input schema present but exposes no named parameters.

NameTypeReqDescription
out_of_scopearray–Capabilities deliberately not implemented yet
phaseintegeryesPackage's own delivery-phase number
schema_versionstringyesWire-format schema version this package targets
sealing_modesarrayyes–
supported_complementosarrayyes–
supported_document_typesarray–Document-type codes supported today

No examples provided.

mx__seal_cfdi ~554

Seal (or deliberately not seal) a CFDI 4.0 Comprobante, PAC-agnostic. `sealing_mode="local"` computes the cadena original via the actual SAT XSLT transform (`resources/cadenaoriginal_4_0.xslt`, with its `utilerias.xslt` and `Pagos20.xslt` includes resolved from `resources/`; any other complemento include a document might reference is not in Phase-1 scope and stubs to a no-op template — see `SelloDigitalSigner`'s docstring), then computes `Sello`/`NoCertificado`/`Certificado` via `mcp_einvoicing_core.digital_signature.SelloDigitalSigner` — no local reimplementation of the signing algorithm. `sealing_mode="pac"` returns *xml* unchanged: some PACs accept an unsealed, schema-valid CFDI and seal it on the emisor's behalf. This tool does not submit to any PAC — see the package README for the PAC-agnostic design. CSD key material is always a file path, never accepted as plaintext key content in a tool argument. Returns a dict with: - ``xml``: the sealed (or, for ``"pac"``, unchanged) XML string - ``sealing_mode``: echoes the mode used

NameTypeReqDescription
cert_path––Path to the CSD's DER-encoded certificate (.cer). Required when sealing_mode='local'.
key_password––Passphrase for the private key. Required when sealing_mode='local'. This is a secret that transits the tool call as plain text — callers should source it from an environment variable or secrets manag…
key_path––Path to the CSD's encrypted PKCS#8 DER private key (.key). Required when sealing_mode='local'.
no_certificado––The CSD's 20-digit serial number from the SAT enrollment acknowledgment (acuse). Not derived from the certificate bytes — no confirmed algorithm exists for that derivation, see SelloDigitalSigner's d…
sealing_modestringyes'local': compute Sello/NoCertificado/Certificado from the supplied CSD. 'pac': return the XML unchanged, for a PAC that seals on the emisor's behalf.
xmlstringyesThe unsealed CFDI 4.0 Comprobante XML, as returned by mx__build_cfdi/mx__build_pago

Structured output declared, but exposes no named fields.

No examples provided.

mx__validate_cfdi ~335

Validate a CFDI 4.0 document against the official SAT XSD schemas. Always validates the root `Comprobante` against `cfdv40.xsd`. If a `TimbreFiscalDigital` complement is present (i.e. the document has been stamped by a PAC), it is additionally validated against `TimbreFiscalDigitalv11.xsd.xml`. If a `Pagos` complement is present (`TipoDeComprobante="P"`), it is additionally validated against `Pagos20.xsd.xml`. This is XSD-only — business-rule checks from SAT's Matriz de errores (`specs/MatrizDeErrores_CFDI_v40_20260325.xls`) are not run, mirroring `mcp-nfe-br`'s `br__validate_nfe_xml` precedent (XSD-first, business rules deferred). A document that passes this validator is structurally conformant but not guaranteed to pass PAC certification. Returns a dict with: - ``valid``: True only if every schema that applies passed - ``comprobante``: the `cfdv40.xsd` validation result - ``tfd``: the TFD validation result, present only if a `TimbreFiscalDigital` element was found - ``pagos``: the Pagos 2.0 validation result, present only if a `Pagos` element was found

NameTypeReqDescription
xmlstringyesThe CFDI 4.0 Comprobante XML to validate, as a string

Structured output declared, but exposes no named fields.

No examples provided.

mx__verify_tfd ~369

Parse a Timbre Fiscal Digital 1.1 stamp and, optionally, verify SelloSAT. Always returns the TFD's own attributes (`UUID`, `FechaTimbrado`, `RfcProvCertif`, `SelloCFD`, `NoCertificadoSAT`, `SelloSAT`, ...) and the recomputed cadena original (via `cadenaoriginal_TFD_1_1.xslt`, per Anexo 20 Rubro III.B). If `pac_certificado_der_b64` is supplied, additionally verifies `SelloSAT` (SHA-256 + RSA-PKCS#1v1.5, the same algorithm as the emisor's own Sello) against that certificate's public key. Without it, `sello_sat_verified` is `null` — parsing succeeded but cryptographic verification was not attempted, not "passed". Returns a dict with: - ``found``: False if no `TimbreFiscalDigital` element exists in *xml* - ``fields``: the TFD's own attributes - ``cadena_original``: the recomputed cadena original string - ``sello_sat_verified``: True/False if `pac_certificado_der_b64` was supplied, else null

NameTypeReqDescription
pac_certificado_der_b64––Base64-encoded DER certificate of the PAC/SAT that stamped this TFD, used to cryptographically verify SelloSAT. SAT does not embed this certificate in the TFD itself, so it is not available without t…
xmlstringyesThe sealed, PAC-stamped CFDI XML (with a TimbreFiscalDigital complement)

Structured output declared, but exposes no named fields.

No examples provided.

Install

How do I install the io.github.cmendezs/mcp-cfdi-mx server?

io.github.cmendezs/mcp-cfdi-mx runs locally as a PyPI package, launched with uvx mcp-cfdi-mx. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

pypi · mcp-cfdi-mx

# add to Claude Code
claude mcp add cmendezs-mcp-cfdi-mx -- uvx mcp-cfdi-mx
Common questions

What is the io.github.cmendezs/mcp-cfdi-mx server?

io.github.cmendezs/mcp-cfdi-mx is listed in the public MCP registry as io.github.cmendezs/mcp-cfdi-mx. MCP server for Mexican electronic invoicing (CFDI 4.0, Pagos 2.0). This page covers its PyPI package (mcp-cfdi-mx).

Is the io.github.cmendezs/mcp-cfdi-mx server safe to use?

io.github.cmendezs/mcp-cfdi-mx scores 78 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 4 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the io.github.cmendezs/mcp-cfdi-mx server expose?

io.github.cmendezs/mcp-cfdi-mx exposes 6 tools: mx__get_supported_scope, mx__build_cfdi, mx__build_pago, mx__validate_cfdi, mx__seal_cfdi, mx__verify_tfd. Their descriptions and schemas cost roughly 2,031 tokens of context every time the server is loaded.

Is the io.github.cmendezs/mcp-cfdi-mx server still maintained?

io.github.cmendezs/mcp-cfdi-mx is still listed as active in the MCP registry. We last reached this channel on 4 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the io.github.cmendezs/mcp-cfdi-mx server under?

io.github.cmendezs/mcp-cfdi-mx declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.