Mexican CFDI 4.0 e-invoicing: create, stamp, and cancel invoices with SAT validation. Your agent handles Mexican fiscal compliance.
Facturapi gives your agent 20 tools it calls directly β pick the ones it needs, in Claude, Cursor, or any MCP client.
create_invoice β Create a CFDI invoiceget_invoice β Get invoice by IDlist_invoices β List invoices with filters// Your agent calls a tool directly β no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_invoice", { /* ... */ });$ npm install @codespar/mcp-facturapiAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"facturapi": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-facturapi"
],
"env": {
"FACTURAPI_API_KEY": "<your_facturapi_api_key>"
}
}
}
}After restart, your agent can call any of the 20 tools below β try create_invoice first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
FACTURAPI_API_KEYAPI key for FacturAPI
Each tool is independent β your agent loads only what it needs to reduce context and response time.
create_invoiceget_invoicelist_invoicescancel_invoicedownload_invoice_pdfdownload_invoice_xmlsend_invoice_emailcreate_customerMCP is a protocol β any framework that speaks it can mount this server.