mcpField
M
mcp-iugu

mcp-iugu

Local
github.com/codesparFinance275Updated 4w ago

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

  1. 01Invoice creation, lookup, refund and duplication
  2. 02Customer and payment method management
  3. 03Subscription plan creation, suspension, activation and cancellation
  4. 04Marketplace sub-accounts and transfers
  5. 05Webhook registration and account information queries

Use cases

  1. 01Generating Pix, boleto or credit card invoices through an agent
  2. 02Suspending and reactivating recurring subscriptions
  3. 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.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-iugu": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-iugu"
],
"env": {
"IUGU_API_TOKEN": "<IUGU_API_TOKEN>"
}
}
}
}
Run commandnpx -y @codespar/mcp-iugu
Environment variables to set
IUGU_API_TOKENSecretAPI key for iugu

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-iugu0.2.2

Tools

23

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
emailstringYesPayer email address
itemsarrayYesInvoice items
due_datestringYesDue date (YYYY-MM-DD)
return_urlstringNoURL to redirect after payment
customer_idstringNoCustomer ID (optional)
payable_withenumNoPayment method (default: all)pix | bank_slip | credit_card | all
notification_urlstringNoWebhook URL for status updates

Details

From the project 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:

{
  "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)

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

Comments

Markdown supported

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.