
Mcp Afip
io.github.codesparPublished by GitHub account codesparv0.2.0-alpha.3Updated Oct 24, 2026
AFIP — Argentine tax authority, electronic invoicing (Factura Electrónica)
Overview
Local MCP server for AFIP, Argentina's tax authority, letting an assistant issue and manage electronic invoices (Factura Electrónica) with CAE authorization.
- What you can do
- Create, batch-create, retrieve and cancel electronic invoices, credit notes and debit notes, and check CAE authorization status and last invoice numbers per point of sale and type. Look up reference data: invoice types, tax types, concept types, document types, IVA aliquots, currencies and FX rates. Check AFIP web-service availability and list authorized points of sale for the CUIT. Look up taxpayers in the padrón and fetch registration certificates by CUIT.
- When to use it
- Useful when an assistant needs to work with Argentine electronic invoicing or taxpayer data: issuing invoices, notes or cancellations, or looking up fiscal reference data and taxpayer details. Test in the homologation environment before touching production.
- Requirements
- Runs locally via npm package @codespar/mcp-afip (Node.js), installed with the alpha dist-tag. Requires an AFIP-issued certificate and private key, supplied as file paths in AFIP_CERT_PATH and AFIP_KEY_PATH, plus the taxpayer's CUIT in AFIP_CUIT. AFIP_ENV selects production or homologation (default homologation); optional MCP_HTTP and MCP_PORT enable HTTP transport. Network access to AFIP SOAP services is needed.
Installation
In SourceWeft
- Open Mcp Afip in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@codespar/mcp-afip
MCP server for AFIP, the Argentine tax authority (Administracion Federal de Ingresos Publicos), for electronic invoicing (Factura Electronica) with CAE authorization
Alpha release — published under the
alphanpm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during0.x.x-alpha. Install withnpm install @codespar/mcp-afip@alpha.
Quick Start
Environment Variables
Tools (20)
Auth
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.
API Reference
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
Authentication
Set these environment variables before launching the server:
AFIP_CERT_PATH(required) — Path to AFIP certificate (.crt)AFIP_KEY_PATH(required, secret) — Path to AFIP private key (.key)AFIP_CUIT(required) — CUIT number
Issue credentials at the provider's developer portal: https://www.afip.gob.ar/ws.
License
MIT
Source: packages/argentina/afip/README.md at commit d0a519a
Tools
0Version history
1- v0.2.0-alpha.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts