Mcp Afip

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.0-alpha.3更新於 Oct 24, 2026

AFIP — Argentine tax authority, electronic invoicing (Factura Electrónica)

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

面向阿根廷稅務機關 AFIP 的本機 MCP 伺服器,讓助理開立與管理具 CAE 授權的電子發票(Factura Electrónica)。

可以做什麼
建立、批次建立、查詢與作廢電子發票、貸項通知單與借項通知單,並檢查 CAE 授權狀態及各銷售點與類型的最後發票號碼。查詢參考資料:發票類型、稅別、概念類型、證件類型、IVA 稅率、貨幣與匯率。檢查 AFIP 網路服務可用性,並列出該 CUIT 授權的銷售點。依 CUIT 在 padrón 查詢納稅人並取得登記證明。
適用情境
適用於助理需要處理阿根廷電子發票或納稅人資料的情境:開立發票、通知單或作廢,或查詢稅務參考資料與納稅人資訊。在接觸正式環境前應先在 homologation 測試環境驗證。
執行需求
透過 npm 套件 @codespar/mcp-afip 在本機執行(需 Node.js),以 alpha 標籤安裝。需要 AFIP 核發的憑證與私密金鑰,以檔案路徑形式透過 AFIP_CERT_PATH 與 AFIP_KEY_PATH 提供,並透過 AFIP_CUIT 提供納稅人 CUIT。AFIP_ENV 選擇正式或 homologation(預設 homologation);選用的 MCP_HTTP 與 MCP_PORT 可啟用 HTTP 傳輸。需要連線至 AFIP 的 SOAP 服務。
安裝前請注意
伺服器需要 AFIP 憑證與私密金鑰檔案路徑(AFIP_KEY_PATH 為機密)以及納稅人 CUIT,請妥善保護這些憑證。相關工具會建立、批次建立、作廢與撤銷具法律效力的稅務發票與通知單,屬於重要的寫入操作。README 標明這是 alpha 版本,端點路徑尚未完全經過實際驗證,應固定精確版本並先在 homologation 環境測試。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Afip,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

[npm] [License: MIT]

Alpha release — published under the alpha npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during 0.x.x-alpha. Install with npm install @codespar/mcp-afip@alpha.

Quick Start

bash
# Set your credentialsexport AFIP_CERT_PATH="/path/to/cert.crt"export AFIP_KEY_PATH="/path/to/key.key"export AFIP_CUIT="20123456789"
# Run via stdionpx -y @codespar/mcp-afip@alpha
# Run via HTTPMCP_HTTP=true MCP_PORT=3000 npx -y @codespar/mcp-afip@alpha

Environment Variables

VariableRequiredDescription
AFIP_CERT_PATHYesPath to AFIP certificate (.crt)
AFIP_KEY_PATHYesPath to AFIP private key (.key)
AFIP_CUITYesCUIT number of the taxpayer
AFIP_ENVNo"production" or "homologation" (default: homologation)
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP port (default: 3000)

Tools (20)

ToolPurpose
create_invoiceCreate an electronic invoice (Factura Electrónica) via AFIP
get_invoiceGet invoice details by type, point of sale, and number
get_last_invoice_numberGet last authorized invoice number for a point of sale and type
get_cae_statusCheck CAE authorization status for an invoice
list_invoice_typesList available invoice types (Factura A, B, C, etc.)
list_tax_typesList available tax types (IVA, percepciones, retenciones, etc.)
get_server_statusCheck AFIP web-service availability (WSFE status)
get_authorized_points_of_saleList authorized puntos de venta for the CUIT
create_invoice_batchCreate a batch of invoices in a single CAE request (FECAESolicitar, up to 250)
create_credit_noteIssue a credit note (Nota de Crédito A/B/C: types 3, 8, 13) referencing an original invoice
create_debit_noteIssue a debit note (Nota de Débito A/B/C: types 2, 7, 12) referencing an original invoice
cancel_invoiceCancel/void an authorized invoice (FECancel — limited to certain types/conditions)
get_invoice_total_x_requestMax number of records allowed per FECAESolicitar request (FECompTotXRequest)
list_concept_typesList available concept types (FEParamGetTiposConcepto: 1=Products, 2=Services, 3=Both)
list_doc_typesList document/identifier types (FEParamGetTiposDoc: 80=CUIT, 86=CUIL, 96=DNI, 99=Consumer Final)
list_iva_typesList IVA tax aliquots (FEParamGetTiposIva: 21%, 10.5%, 27%, 0%, etc.)
list_currency_typesList supported currencies (FEParamGetTiposMonedas)
get_currency_rateGet FX rate (cotización) for a currency vs ARS (FEParamGetCotizacion)
lookup_taxpayerPadrón lookup by CUIT (WS_SR_PADRON A4/A5/A13 — fiscal status, name, address)
get_registration_certificateGet constancia de inscripción (registration certificate) for a CUIT

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

來源:packages/argentina/afip/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0-alpha.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分