Skip to main content
IU

Iugu

v0.2.1API Key

Cobro de suscripciones con Pix, boleto y tarjeta de crédito. Tu agente crea facturas, gestiona clientes y maneja cobros recurrentes.

23 herramientas1 env vars🇧🇷 Brasilestable en npm

Qué puede hacer tu agente

Iugu le da a tu agente 23 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • create_invoiceCreate an invoice in iugu (Pix, boleto, or credit card)
  • get_invoiceGet invoice details by ID
  • list_invoicesList invoices with optional filters
Ejemplo de llamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_invoice", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-iugu

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "iugu": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-iugu"
      ],
      "env": {
        "IUGU_API_TOKEN": "<your_iugu_api_token>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 23 herramientas de abajo — probá create_invoice primero.

Variables de entorno · 1

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

IUGU_API_TOKEN
obligatoriosecret

API key for iugu

Herramientas disponibles · 23

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEcreate_invoice
Create an invoice in iugu (Pix, boleto, or credit card)
READget_invoice
Get invoice details by ID
READlist_invoices
List invoices with optional filters
DELETEcancel_invoice
Cancel (delete) an invoice. Endpoint: DELETE /invoices/:id
DELETErefund_invoice
Refund a paid invoice (full or partial). Endpoint: POST /invoices/:id/refund
READduplicate_invoice
Duplicate an existing invoice with a new due date. Endpoint: POST /invoices/:id/duplicate
WRITEcreate_customer
Create a customer in iugu
WRITEupdate_customer
Update a customer. Endpoint: PUT /customers/:id. Omitted fields are unchanged.

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-iugu` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Iugu — MCP server · 23 tools | CodeSpar