# Mexico Invoice MCP > A remote MCP server that lets any AI agent issue Mexico CFDI 4.0 electronic invoices (factura electrónica, SAT-stamped/timbrada through a certified PAC) via Facturapi — create, query, cancel and email facturas. Stateless, bring-your-own credentials, never stores anything. - MCP endpoint (Streamable HTTP): https://inv-mx.wishpool.app/mcp - Credentials header: x-facturapi-key: your Facturapi secret key (free sk_test_ from facturapi.io never reaches SAT; sk_live_ stamps real CFDIs). Your CSD certificate stays in your own Facturapi account. - Flow: create_invoice (stamped immediately, uuid = SAT folio fiscal) -> send_invoice emails the PDF + XML to the buyer -> cancel_invoice voids at SAT if needed. - Amounts in MXN. SAT catalog defaults applied: product_key 01010101, payment_form 03, use G03 (override per call). Generic consumer: RFC XAXX010101000 + tax_system 616 + use S01. ## Tools - create_invoice: Issue a stamped CFDI 4.0 (factura electrónica) — customer RFC + zip + line items in, uuid (folio fiscal) out. - query_invoice: Check invoice status — VALID (stamped) or CANCELED; includes SAT verification_url. - cancel_invoice: Void a CFDI at SAT with the required motive code (01-04, default 02). - send_invoice: Email the stamped PDF + XML to the buyer via Facturapi. - Owner policy guardrails: x-agentpay-max-amount (hard cap on invoice total), x-agentpay-approval-above (returns an unsigned draft for human review), x-agentpay-allowed-tools (tool allow-list) — set by the human owner in the MCP client config; the agent cannot relax them. ## Safety Stateless translation layer. The SAT/PAC certification burden sits with Facturapi; the merchant's CSD certificate and API key stay in the merchant's own Facturapi account. This server never stores credentials, invoices, or customer data. Privacy policy: https://inv-mx.wishpool.app/privacy ## Sister servers Same stateless BYO pattern, local payments in 81 countries — full list: https://mcp.wishpool.app/llms.txt (Taiwan e-invoice 電子發票 lives in https://mcp.wishpool.app/mcp). More invoice countries coming: Brazil NF-e, Chile DTE, Peru CPE, India GST e-invoicing, Poland KSeF, Romania e-Factura, Italy SdI.