Mcp Iugu

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

MCP server for iugu — invoices, subscriptions, customers, payment methods

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

概覽

AI 產生的概覽

針對 iugu 支付平台的本地 MCP 伺服器,讓助理管理發票、客戶、訂閱方案、付款方式與 marketplace 分帳轉帳。

可以做什麼
  • 建立、查詢、列出、複製、取消與退款發票
  • 建立與更新客戶,並依條件篩選列出客戶
  • 建立、更新與列出訂閱方案,並建立、暫停、恢復或取消訂閱
  • 將信用卡權杖化、為客戶綁定付款方式,並讀取帳戶資訊與餘額
  • 建立 marketplace 子帳戶、在帳戶間轉帳、申請提領並註冊 webhook
適用情境
當你使用 iugu 處理巴西地區的收款與帳務,希望助理不必離開對話就能草擬發票、查詢客戶、管理週期訂閱或查看帳戶餘額與設定時適用。
執行需求
透過 npx 從 npm 套件 @codespar/mcp-iugu 在本機執行,需要 Node.js。需要 iugu 帳戶與 API 權杖,透過環境變數 IUGU_API_TOKEN 提供;選用環境變數 IUGU_SANDBOX 設為 "true" 可切換至測試模式。需要連線至 iugu API 的網路存取。
安裝前請注意
此權杖可存取真實支付帳戶:發票、退款、轉帳、提領與 webhook 都可能涉及真實資金或改變計費狀態。建議先使用測試模式權杖並設定 IUGU_SANDBOX,避免真實扣款,且不要把權杖寫進共用的設定檔。信用卡權杖化會將卡號資料傳送給 iugu。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@codespar/mcp-iugu

MCP server for iugu — invoices, subscriptions, and payment management

[npm] [License: MIT]

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "iugu": {      "command": "npx",      "args": ["-y", "@codespar/mcp-iugu"],      "env": {        "IUGU_API_TOKEN": "your-token"      }    }  }}

Claude Code

bash
claude mcp add iugu -- npx @codespar/mcp-iugu

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "iugu": {      "command": "npx",      "args": ["-y", "@codespar/mcp-iugu"],      "env": {        "IUGU_API_TOKEN": "your-token"      }    }  }}

Tools (23)

ToolPurpose
create_invoiceCreate an invoice in iugu (Pix, boleto, or credit card)
get_invoiceGet invoice details by ID
list_invoicesList invoices with optional filters
cancel_invoiceCancel (delete) an invoice.
refund_invoiceRefund a paid invoice (full or partial).
duplicate_invoiceDuplicate an existing invoice with a new due date.
create_customerCreate a customer in iugu
update_customerUpdate a customer.
list_customersList customers with optional filters
create_planCreate a subscription plan (recurring template).
update_planUpdate an existing plan.
list_plansList subscription plans.
create_subscriptionCreate a recurring subscription in iugu
suspend_subscriptionSuspend a subscription.
activate_subscriptionReactivate a suspended subscription.
cancel_subscriptionCancel (delete) a subscription.
create_payment_tokenTokenize a credit card server-side.
create_payment_methodAttach a payment method (credit card token) to a customer.
create_subaccountCreate a marketplace sub-account.
create_transferTransfer funds between iugu accounts (marketplace).
request_withdrawRequest a bank withdrawal (saque) from a sub-account.
create_webhookRegister a webhook (gatilho) for an iugu event.
get_account_infoGet account information, configuration, and balance

Authentication

iugu uses Basic Auth with the API token as username and an empty password.

Sandbox / Testing

iugu provides test mode via the dashboard. Use a test-mode API token to avoid real charges.

Get your credentials

  1. Go to iugu Developer Portal
  2. Create an account and access the dashboard
  3. Toggle to test mode and generate an API token
  4. Set the IUGU_API_TOKEN environment variable

Environment Variables

VariableRequiredDescription
IUGU_API_TOKENYesAPI token from iugu dashboard
IUGU_SANDBOXNoSet to "true" for test mode

Roadmap

v0.3 (planned)

  • create_split — Create split payment rules
  • list_transfers — List marketplace transfers
  • get_financial_report — Financial summary report
  • batch_invoices — Create multiple invoices in a single request
  • list_payment_methods — List saved payment methods for a customer

Want to contribute? Open a PR or request a tool.

Links

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.

License

MIT

來源:packages/payments/iugu/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 分