Mcp Facturapi

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Oct 24, 2026

FacturAPI — Mexican CFDI e-invoicing

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

概覽

AI 產生的概覽

針對墨西哥 CFDI 電子發票平台 FacturAPI 的本機 MCP 伺服器,讓助理建立、查詢、取消與寄送發票,並管理客戶與產品。

可以做什麼
建立、查詢、列出與取消 CFDI 發票,取得發票的 PDF 或 XML 下載連結,並將發票以電子郵件寄給客戶或指定收件人。建立、讀取、列出、更新與刪除用於開票的客戶。建立、讀取、列出、更新與刪除用於開票的產品。建立與列出銷售收據(客戶之後可憑收據自行開票),以及列出已設定的 webhook。
適用情境
適合讓助理端到端處理墨西哥 CFDI 開票事務:開立或取消發票、以電子郵件寄送發票,並讓客戶與產品資料與 FacturAPI 保持同步。
執行需求
以本機程序方式執行,npm 套件 @codespar/mcp-facturapi,使用 stdio 傳輸(文件也提到 HTTP 模式)。需要 FacturAPI 帳戶,並透過環境變數 FACTURAPI_API_KEY 提供 API 金鑰,同時需要連線至 FacturAPI 服務的網路存取。
安裝前請注意
FACTURAPI_API_KEY 中的 API 金鑰屬於機密,對帳戶具有計費與稅務層面的權限。相關工具會建立、更新、刪除與取消記錄;取消發票或將發票寄給客戶會產生實際的法律與商業後果。README 另提到供代理付款治理使用的企業版附加元件,與此伺服器相互獨立。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

MCP FacturAPI

MCP server for FacturAPI — Mexican CFDI e-invoicing platform (equivalent to Brazil's NFe).

Quick Start

bash
# Set your API keyexport FACTURAPI_API_KEY="sk_..."
# Run via stdionpx tsx packages/mexico/facturapi/src/index.ts
# Run via HTTPnpx tsx packages/mexico/facturapi/src/index.ts --http

Environment Variables

VariableRequiredDescription
FACTURAPI_API_KEYYesAPI key from FacturAPI dashboard
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP port (default: 3000)

Tools (20)

ToolPurpose
create_invoiceCreate a CFDI invoice
get_invoiceGet invoice by ID
list_invoicesList invoices with filters
cancel_invoiceCancel an invoice
download_invoice_pdfDownload invoice as PDF (returns download URL)
download_invoice_xmlDownload invoice as XML (returns download URL)
send_invoice_emailSend invoice (PDF + XML) by email to the customer or to specific recipients
create_customerCreate a customer for invoicing
get_customerGet customer by ID
list_customersList customers with optional filters
update_customerUpdate an existing customer (partial update)
delete_customerDelete a customer
create_productCreate a product for invoicing
get_productGet product by ID
list_productsList products
update_productUpdate an existing product (partial update)
delete_productDelete a product
create_receiptCreate a receipt (recibo de venta) — the customer can later self-invoice it from the receipt's folio
list_receiptsList receipts with filters
list_webhooksList configured webhooks

Auth

Uses Bearer token authentication. Obtain your API key from the FacturAPI Dashboard.

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:

  • FACTURAPI_API_KEY (required, secret) — API key for FacturAPI

Issue credentials at the provider's developer portal: https://docs.facturapi.io.

License

MIT

來源:packages/mexico/facturapi/README.md,提交 d0a519a

工具

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

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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