Faturamento eletrônico argentino via web services da AFIP. Seu agente emite faturas, notas de crédito e valida CUIT/CUIL.
O AFIP dá ao seu agente 20 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer 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@alphaAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com 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>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 20 ferramentas abaixo — teste create_invoice primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.
AFIP_CERT_PATHPath to AFIP certificate (.crt)
AFIP_KEY_PATHPath to AFIP private key (.key)
AFIP_CUITCUIT number
Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
create_invoiceget_invoiceget_last_invoice_numberget_cae_statuslist_invoice_typeslist_tax_typesget_server_statusget_authorized_points_of_saleMCP é um protocolo — qualquer framework que o fale pode montar este server.