Iugu

Finance and commerce

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

Your AI app calls the Iugu MCP server, which does the finance and commerce work and sends the result back to the chat.

About Iugu

Iugu is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for iugu, invoices, subscriptions, customers, payment methods.

Iugu runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-iugu@0.2.2 and talks to it over standard input and output. It needs IUGU_API_TOKEN set before Iugu starts.

Iugu is listed in the official MCP registry as io.github.codespar/mcp-iugu, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-iugu
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-iugu

How to set up Iugu

  1. Install Node.js on the machine that runs your AI app, because Iugu starts with npx and downloads its package on first run.
  2. Create IUGU_API_TOKEN for Iugu in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Iugu to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Iugu tools to confirm the connection.
  5. Run one read-only task with Iugu first, and keep your app asking before each tool call until the results look right.

Iugu compared with similar servers

  • Izipay by codespar has fewer GitHub stars than Iugu (278 against 278); both are community servers, and both run locally.
  • Itau by codespar has fewer GitHub stars than Iugu (278 against 278); both are community servers, and both run locally.
  • Jumio by codespar has fewer GitHub stars than Iugu (278 against 278); both are community servers, and both run locally.

Before you connect Iugu

  • Give Iugu its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Iugu tool call until you trust what it does with them.
  • Treat text that Iugu fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Iugu on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Iugu

How marketing and sales teams put Iugu to work, by company size. Pick the size closest to yours and start Iugu on one use case.

Small business

  • A small business can ask Iugu which products and customers drive margin, then plan promotions around them.
  • Owners can use Iugu to check refunds, failed payments and churn reasons without opening three dashboards.
  • Iugu runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Iugu to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Iugu to check spend against budget each week and move money to what's working.
  • Start Iugu on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Iugu read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Iugu to answer revenue questions by channel and region with figures finance signs off on.
  • Iugu is a community server, so have security review the code and pin a version before Iugu touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Iugu README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@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
  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

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 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

Questions about Iugu

What is the Iugu MCP server?

MCP server for iugu, invoices, subscriptions, customers, payment methods. Iugu is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Iugu MCP server?

Add Iugu to your AI app's MCP config with the command npx -y @codespar/mcp-iugu@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-iugu -- npx -y @codespar/mcp-iugu@0.2.2. To run Iugu this way you need Node.js installed.

Does Iugu need an API key?

Yes. Iugu expects IUGU_API_TOKEN to be set. Create the key for Iugu in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Iugu an official MCP server?

No. Iugu is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Iugu access to company data.

What license is Iugu under?

Iugu is released under the MIT license, according to its GitHub repository. The license covers the code of Iugu; the service it connects to has its own terms.