# Argentina Invoice MCP > A remote MCP server that lets any AI agent issue Argentina AFIP/ARCA electronic invoices (factura electrónica) and get the CAE (Código de Autorización Electrónico) via WSFE, through the Afip SDK. Create and query invoices and fetch the last invoice number. Stateless, bring-your-own credentials, never stores anything. - MCP endpoint (Streamable HTTP): https://inv-ar.wishpool.app/mcp - Credentials header: x-afipsdk-token (your Afip SDK access_token; sign up free at app.afipsdk.com, 1000 requests/month; used as Bearer to authenticate you with Afip SDK). - Environment header: x-afip-mode = dev (default, no AFIP certificate needed — test CUIT 20409378472) or prod. - Issuer header: x-afip-cuit (11-digit issuer CUIT; defaults to the test CUIT in dev). - Prod certificate: pass your AFIP X.509 certificate + key per-request as tool params afip_cert / afip_key (PEM). Forwarded to Afip SDK for that single request only; never stored or logged. - Flow: create_invoice (returns cae = CAE, cae_expiry, invoice_number) -> query_invoice by number/point_of_sale/type to re-check at AFIP (FECompConsultar). Argentina has no WSFE cancel — reverse with a nota de crédito (credit note). - Amounts in ARS. The server auto-computes the WSFE FECAESolicitar amounts: per-line net, IVA grouped by alícuota into AlicIva (Factura A/B discriminate IVA: rates 0/10.5/21/27%), ImpNeto, ImpIVA, ImpTotal. Factura C (monotributo) does not discriminate IVA (ImpTotal = ImpNeto, ImpIVA = 0). CbteTipo: A=1, B=6, C=11. ## Tools - create_invoice: Authorize a factura electrónica at AFIP/ARCA (WSFE FECAESolicitar) — flat fields (invoice_type A/B/C, point_of_sale, customer doc, line items with net_price + iva_rate) in; cae (CAE), cae_expiry, invoice_number out. IVA discrimination and totals computed automatically; the next invoice number is fetched automatically (FECompUltimoAutorizado) unless invoice_number is given. - query_invoice: Check an invoice at AFIP by invoice_number + point_of_sale + invoice_type (FECompConsultar) — returns cae, cae_expiry, total and Resultado (A = authorized). - get_last_invoice_number: Last authorized invoice number for a point of sale + type (FECompUltimoAutorizado) — returns last_number and next_number. - Owner policy guardrails: x-agentpay-max-amount (hard cap on invoice total in ARS), x-agentpay-approval-above (returns an unsigned draft for human review), x-agentpay-allowed-tools (tool allow-list) — set by the human owner in the MCP client config; the agent cannot relax them. ## Safety Stateless translation layer. The AFIP/ARCA WSAA + WSFE certification burden sits with the Afip SDK; your access_token and (in prod) your AFIP X.509 certificate + key travel per-request and are never stored, logged, or persisted by this service. This server keeps no credentials, invoices, or customer data. Privacy policy: https://inv-ar.wishpool.app/privacy ## Sister servers Same stateless BYO pattern. Mexico CFDI 4.0 e-invoices: https://inv-mx.wishpool.app/mcp. India GST e-invoices: https://inv-in.wishpool.app/mcp. Local payments in 81 countries — full list: https://mcp.wishpool.app/llms.txt (Taiwan e-invoice 電子發票 lives in https://mcp.wishpool.app/mcp). More invoice countries coming: Brazil NF-e, Chile DTE, Peru CPE, Poland KSeF, Romania e-Factura, Italy SdI.