Argentine electronic invoicing via AFIP web services. Your agent issues facturas, notas de credito, and validates CUIT/CUIL.
AFIP gives your agent 20 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.
create_invoice — Create an electronic invoice (Factura Electrónica) via AFIPget_invoice — Get invoice details by type, point of sale, and numberget_last_invoice_number — Get last authorized invoice number for a point of sale and type// 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-afip@alphaAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"afip": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-afip@alpha"
],
"env": {
"AFIP_CERT_PATH": "<your_afip_cert_path>",
"AFIP_KEY_PATH": "<your_afip_key_path>",
"AFIP_CUIT": "<your_afip_cuit>"
}
}
}
}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.
AFIP_CERT_PATHPath to AFIP certificate (.crt)
AFIP_KEY_PATHPath to AFIP private key (.key)
AFIP_CUITCUIT number
Each tool is independent — your agent loads only what it needs to reduce context and response time.
create_invoiceget_invoiceget_last_invoice_numberget_cae_statuslist_invoice_typeslist_tax_typesget_server_statusget_authorized_points_of_saleMCP is a protocol — any framework that speaks it can mount this server.