Afip MCP Server

Uses certificate-based WSAA authentication (SOAP). The MCP server wraps AFIP's SOAP services (WSFE) internally using a REST approach. You need a valid certificate issued by AFIP. For testing, use the homologation environment. Its 20 documented tools cover invoice, types, status, note.

People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in JavaScript.

One of 127 MCP servers published from codespar/mcp-dev-latam. Stars and repository activity are shared across all of them. See all 127 →

VERIFIED ACTIVE

LAST COMMIT 2026-08-12 · VERIFIED 2026-08-25

MIT · JavaScript servers · how we verify → /methodology

01 · Install Afip

before you install - you'll need

Set AFIP_CERT_PATH, AFIP_KEY_PATH, AFIP_CUIT, MCP_HTTP before connecting.

Claude Code

claude mcp add codespar-mcp-dev-latam-packages-argentin -- npx -y @codespar/mcp-afip

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "codespar-mcp-dev-latam-packages-argentin": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-afip"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

npm package @codespar/mcp-afip - published under the repo owner's npm scope (@codespar)

registry namespace io.github.codespar is GitHub-verified and matches the repo owner

03 · What Afip can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can create an electronic invoice (Factura Electrónica) via AFIP, get invoice details by type, point of sale, and number, get last authorized invoice number for a point of sale and type, and list available invoice types (Factura A, B, C, etc.).

Capability map

Tools grouped from the project's README - what Afip lets an agent do.

read & search

9 tools - e.g. Check CAE authorization status for an invoice; List available tax types (IVA, percepciones, retenciones, etc.); Check AFIP web-service availability (WSFE status)

get_cae_status · list_tax_types · get_server_status · get_authorized_points_of_sale · list_concept_types · list_doc_types…

Invoice

7 tools - e.g. Create an electronic invoice (Factura Electrónica) via AFIP; Get invoice details by type, point of sale, and number; Get last authorized invoice number for a point of sale and type

create_invoice · get_invoice · get_last_invoice_number · list_invoice_types · create_invoice_batch · cancel_invoice…

create & write

2 tools - e.g. Issue a credit note (Nota de Crédito A/B/C: types 3, 8, 13) referencing an original invoice; Issue a debit note (Nota de Débito A/B/C: types 2, 7, 12) referencing an original invoice

create_credit_note · create_debit_note

Currency

2 tools - e.g. List supported currencies (FEParamGetTiposMonedas); Get FX rate (cotización) for a currency vs ARS (FEParamGetCotizacion)

list_currency_types · get_currency_rate

04 · Who maintains Afip

mcp-afip is maintained by codespar. We track 127 MCP servers from codespar - 127 actively maintained, 269 combined GitHub stars, oldest repo from Mar 2026. Full record: all servers from codespar.

  1. mcp-asaas MCP server for Asaas - billing automation, Pix, boleto, credit card, subscriptions ★ 269
  2. mcp-omie MCP server for Omie - ERP, customers, products, orders, invoices, financials ★ 269
  3. mcp-sendgrid MCP server for SendGrid - global transactional + marketing email (Twilio-owned) ★ 269
  4. mcp-evolution-api MCP server for Evolution API - WhatsApp messaging, instances, contacts ★ 269
  5. mcp-stripe-acp Stripe ACP - AI agent checkout, payment delegation, products, invoices ★ 269
  6. mcp-mercado-bitcoin MCP server for Mercado Bitcoin - Brazilian crypto exchange, trading, orderbook, withdrawals ★ 269

05 · Facts

category
other - actively maintained as of 2026-08-25.
registry
io.github.codespar/mcp-afip (active, first published 2026-04-12 · 3 versions)
packages
npm:@codespar/mcp-afip

06 · Afip FAQ

Is Afip still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-12. We re-verify nightly.

What can Afip do?

With this server connected, an agent can create an electronic invoice (Factura Electrónica) via AFIP, get invoice details by type, point of sale, and number, get last authorized invoice number for a point of sale and type, and list available invoice types (Factura A, B, C, etc.).

How do I install Afip?

Run `npx -y @codespar/mcp-afip`. The README documents 4 environment variables (AFIP_CERT_PATH, AFIP_KEY_PATH, AFIP_CUIT…) to set first. Set AFIP_CERT_PATH, AFIP_KEY_PATH, AFIP_CUIT, MCP_HTTP before connecting. You can also paste the ready-made client config above.

Does Afip run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Afip

More MCP servers to compare · Andreani · Bcra · Payway · Midaz · Pomelo

More JavaScript MCP servers · Colppy · Tienda Nube · see all