Facturación electrónica argentina vía web services de AFIP. Tu agente emite facturas, notas de crédito y valida CUIT/CUIL.
AFIP le da a tu agente 20 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
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@alphaAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"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>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 20 herramientas de abajo — probá create_invoice primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
AFIP_CERT_PATHPath to AFIP certificate (.crt)
AFIP_KEY_PATHPath to AFIP private key (.key)
AFIP_CUITCUIT number
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_invoiceget_invoiceget_last_invoice_numberget_cae_statuslist_invoice_typeslist_tax_typesget_server_statusget_authorized_points_of_saleMCP es un protocolo — cualquier framework que lo hable puede montar este server.