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 服务器,让助手管理发票、客户、订阅计划、支付方式和市场分账转账。

可以做什么
  • 创建、查询、列出、复制、取消和退款发票
  • 创建和更新客户,并按条件筛选列出客户
  • 创建、更新和列出订阅计划,并创建、暂停、恢复或取消订阅
  • 对信用卡进行令牌化,为客户绑定支付方式,读取账户信息与余额
  • 创建市场子账户、在账户间转账、申请提现并注册 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 分