About mcp-iugu
mcp-iugu is an MCP server for the iugu payment platform, covering invoices, subscriptions, customers, payment methods and account management. It suits developers who want MCP clients or agents to handle billing workflows.
Key features
- 01Invoice creation, lookup, refund and duplication
- 02Customer and payment method management
- 03Subscription plan creation, suspension, activation and cancellation
- 04Marketplace sub-accounts and transfers
- 05Webhook registration and account information queries
Use cases
- 01Generating Pix, boleto or credit card invoices through an agent
- 02Suspending and reactivating recurring subscriptions
- 03Testing iugu billing flows in sandbox mode
MCP support
This project is an MCP server that exposes 23 iugu-related tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
23Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Payer email address | |
| items | array | Yes | Invoice items |
| due_date | string | Yes | Due date (YYYY-MM-DD) |
| return_url | string | No | URL to redirect after payment |
| customer_id | string | No | Customer ID (optional) |
| payable_with | enum | No | Payment method (default: all)pix | bank_slip | credit_card | all |
| notification_url | string | No | Webhook URL for status updates |
Details
From the project README@codespar/mcp-iugu
MCP server for iugu — invoices, subscriptions, and payment management
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"iugu": {
"command": "npx",
"args": ["-y", "@codespar/mcp-iugu"],
"env": {
"IUGU_API_TOKEN": "your-token"
}
}
}
}
Claude Code
claude mcp add iugu -- npx @codespar/mcp-iugu
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"servers": {
"iugu": {
"command": "npx",
"args": ["-y", "@codespar/mcp-iugu"],
"env": {
"IUGU_API_TOKEN": "your-token"
}
}
}
}
Tools (23)
| Tool | Purpose |
|---|---|
create_invoice | Create an invoice in iugu (Pix, boleto, or credit card) |
get_invoice | Get invoice details by ID |
list_invoices | List invoices with optional filters |
cancel_invoice | Cancel (delete) an invoice. |
refund_invoice | Refund a paid invoice (full or partial). |
duplicate_invoice | Duplicate an existing invoice with a new due date. |
create_customer | Create a customer in iugu |
update_customer | Update a customer. |
list_customers | List customers with optional filters |
create_plan | Create a subscription plan (recurring template). |
update_plan | Update an existing plan. |
list_plans | List subscription plans. |
create_subscription | Create a recurring subscription in iugu |
suspend_subscription | Suspend a subscription. |
activate_subscription | Reactivate a suspended subscription. |
cancel_subscription | Cancel (delete) a subscription. |
create_payment_token | Tokenize a credit card server-side. |
create_payment_method | Attach a payment method (credit card token) to a customer. |
create_subaccount | Create a marketplace sub-account. |
create_transfer | Transfer funds between iugu accounts (marketplace). |
request_withdraw | Request a bank withdrawal (saque) from a sub-account. |
create_webhook | Register a webhook (gatilho) for an iugu event. |
get_account_info | Get 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
- Go to iugu Developer Portal
- Create an account and access the dashboard
- Toggle to test mode and generate an API token
- Set the
IUGU_API_TOKENenvironment variable
Environment Variables
| Variable | Required | Description |
|---|---|---|
IUGU_API_TOKEN | Yes | API token from iugu dashboard |
IUGU_SANDBOX | No | Set to "true" for test mode |
Roadmap
v0.3 (planned)
create_split— Create split payment ruleslist_transfers— List marketplace transfersget_financial_report— Financial summary reportbatch_invoices— Create multiple invoices in a single requestlist_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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.