AI agents can now issue Argentina electronic invoices — factura electrónica authorized at AFIP/ARCA, returning the CAE (Código de Autorización Electrónico) via WSFE. This remote MCP server wraps the Afip SDK with three tools: create_invoice, query_invoice, get_last_invoice_number. Factura A, B and C (monotributo) are supported.
{
"mcpServers": {
"argentina-invoice": {
"type": "http",
"url": "https://inv-ar.wishpool.app/mcp",
"headers": {
"x-afipsdk-token": "your-afip-sdk-access-token",
"x-afip-mode": "dev"
}
}
}
}
Sign up free at app.afipsdk.com for an access_token (1000 requests/month). In dev mode no AFIP certificate is needed — the test CUIT 20409378472 works out of the box. Switch x-afip-mode to prod and pass your AFIP X.509 certificate + key per-request (afip_cert / afip_key) to authorize real invoices.
Send flat fields; the server builds the WSFE FECAESolicitar payload and computes the tax. Factura A/B discriminate IVA — line items are grouped by alícuota (0, 10.5, 21, 27%) into the AlicIva array with ImpNeto, ImpIVA, ImpTotal. Factura C (monotributo) does not discriminate IVA — ImpTotal = ImpNeto, ImpIVA = 0. The next invoice number is fetched automatically via FECompUltimoAutorizado.
x-agentpay-max-amount, x-agentpay-approval-above, x-agentpay-allowed-tools — set by the human owner in client config; the agent cannot relax them.Invoice type, IVA rates, doc types and CUIT validated with teaching errors; the IVA discrimination and all totals are computed automatically; the next invoice number is fetched for you; every result embeds numbered next_steps (including: Argentina has no WSFE cancel — reverse with a nota de crédito).
Mexico CFDI 4.0 e-invoices are live: inv-mx.wishpool.app. India GST e-invoices: inv-in.wishpool.app. Local payments in 81 countries — one family, same stateless pattern: mcp.wishpool.app. Taiwan e-invoice (電子發票) included. More invoice countries coming: Brazil NF-e, Chile DTE, Peru CPE, Poland KSeF, Romania e-Factura, Italy SdI.