# io.github.codespar/mcp-iugu (npm · @codespar/mcp-iugu)

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

- Trust score: 58/100 (low)
- Change this week: +33
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-08

## Components

- npm · `@codespar/mcp-iugu`: 58/100 (this document), [markdown](https://verifymcp.io/servers/codespar-mcp-iugu/codespar-mcp-iugu.md), [page](https://verifymcp.io/servers/codespar-mcp-iugu/codespar-mcp-iugu)

## Channel facts

- Registry: `npm`
- Package: `@codespar/mcp-iugu`
- Version: `0.2.2`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-08.

- **Supply Chain Security**: 48/100
  - Malware scan not yet available for this package.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - 30 of 95 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 48/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 46 days ago).
  - Publishes a security disclosure policy (SECURITY.md).
- **Schema Quality & AI Usability**: 66/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 1684 tokens (~73/item across 23 items; 23 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 43/100
  - Stability observed for 13 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 94/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 83% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add codespar-mcp-iugu -- npx -y @codespar/mcp-iugu
```

### Codex

```bash
codex mcp add codespar-mcp-iugu -- npx -y @codespar/mcp-iugu
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codespar-mcp-iugu": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@codespar/mcp-iugu"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add codespar-mcp-iugu --command npx --arg -y --arg @codespar/mcp-iugu
```

### Hermes

```yaml
mcp_servers:
  codespar-mcp-iugu:
    command: "npx"
    args: ["-y", "@codespar/mcp-iugu"]
```

### Other

```json
{
  "mcpServers": {
    "codespar-mcp-iugu": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-iugu"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-08 (score 58, +1)

- [functional improvement] Security disclosure: fail → pass

### 2026-08-07 (score 57, +4)

- [security improvement] Known CVEs: partial → pass
- [functional] Dependency health: partial → 0.85

### 2026-08-06 (score 53, +1)

No change was recorded against any check on this day. Stability & Change Management went from 33 to 37. That category is still filling its 30-day observation window: 10 days of observed history at the previous scan, 11 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-08-05 (score 52, +1)

- [security improvement] CVE-2026-69207 no longer affects this package
- [security improvement] Known CVEs: fail → partial

### 2026-08-04 (score 51, 0)

- [security regression] CVE-2026-69207 affects this package: medium
- [security regression] Known CVEs: partial → fail

### 2026-08-02 (score 51, +26)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [functional improvement] License: unverified → pass
- [functional improvement] Stability: unverified → 0.23
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional] Licence: MIT

### 2026-08-01 (score 25, +5)

- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] MCP protocol: unverified → pass

### 2026-07-31 (score 20, −8)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

## MCP tools (23)

### `create_invoice` (~110 tokens)

Create an invoice in iugu (Pix, boleto, or credit card)

Input parameters:

- `customer_id` (string): Customer ID (optional)
- `due_date` (string, required): Due date (YYYY-MM-DD)
- `email` (string, required): Payer email address
- `items` (array, required): Invoice items
- `notification_url` (string): Webhook URL for status updates
- `payable_with` (string): Payment method (default: all)
- `return_url` (string): URL to redirect after payment

### `get_invoice` (~23 tokens)

Get invoice details by ID

Input parameters:

- `id` (string, required): Invoice ID

### `list_invoices` (~93 tokens)

List invoices with optional filters

Input parameters:

- `created_at_from` (string): Filter from date (YYYY-MM-DD)
- `created_at_to` (string): Filter to date (YYYY-MM-DD)
- `customer_id` (string): Filter by customer ID
- `limit` (number): Number of results (default 100)
- `start` (number): Pagination offset
- `status_filter` (string): Filter by status

### `cancel_invoice` (~33 tokens)

Cancel (delete) an invoice. Endpoint: DELETE /invoices/:id

Input parameters:

- `id` (string, required): Invoice ID

### `refund_invoice` (~59 tokens)

Refund a paid invoice (full or partial). Endpoint: POST /invoices/:id/refund

Input parameters:

- `id` (string, required): Invoice ID
- `partial_value_refund_cents` (number): Partial refund amount in cents (omit for full refund)

### `duplicate_invoice` (~69 tokens)

Duplicate an existing invoice with a new due date. Endpoint: POST /invoices/:id/duplicate

Input parameters:

- `due_date` (string, required): New due date (YYYY-MM-DD)
- `id` (string, required): Invoice ID to duplicate
- `ignore_due_email` (boolean): Skip sending due-date email

### `create_customer` (~123 tokens)

Create a customer in iugu

Input parameters:

- `city` (string): City
- `cpf_cnpj` (string): CPF or CNPJ (numbers only)
- `email` (string, required): Email address
- `name` (string, required): Customer name
- `number` (string): Address number
- `phone` (string): Phone number
- `phone_prefix` (string): Phone area code (DDD)
- `state` (string): State (UF, 2 letters)
- `street` (string): Street address
- `zip_code` (string): ZIP code (CEP)

### `update_customer` (~109 tokens)

Update a customer. Endpoint: PUT /customers/:id. Omitted fields are unchanged.

Input parameters:

- `city` (string)
- `cpf_cnpj` (string)
- `email` (string)
- `id` (string, required): Customer ID
- `name` (string)
- `number` (string)
- `phone` (string)
- `phone_prefix` (string)
- `state` (string)
- `street` (string)
- `zip_code` (string)

### `list_customers` (~46 tokens)

List customers with optional filters

Input parameters:

- `limit` (number): Number of results
- `query` (string): Search by name or email
- `start` (number): Pagination offset

### `create_plan` (~134 tokens)

Create a subscription plan (recurring template). Endpoint: POST /plans

Input parameters:

- `currency` (string): Currency code (default BRL)
- `features` (array): Plan features
- `identifier` (string, required): Unique slug identifier (e.g., 'basic_monthly')
- `interval` (number, required): Interval quantity (e.g., 1)
- `interval_type` (string, required): Interval unit
- `name` (string, required): Plan name
- `payable_with` (array): Allowed payment methods: credit_card, bank_slip, pix
- `value_cents` (number, required): Price per period in cents (BRL)

### `update_plan` (~69 tokens)

Update an existing plan. Endpoint: PUT /plans/:id

Input parameters:

- `id` (string, required): Plan ID
- `interval` (number)
- `interval_type` (string)
- `name` (string)
- `payable_with` (array)
- `value_cents` (number)

### `list_plans` (~50 tokens)

List subscription plans. Endpoint: GET /plans

Input parameters:

- `limit` (number): Number of results
- `query` (string): Search by name or identifier
- `start` (number): Pagination offset

### `create_subscription` (~121 tokens)

Create a recurring subscription in iugu

Input parameters:

- `credits_based` (boolean): Whether this is a credit-based subscription
- `customer_id` (string, required): Customer ID
- `expires_at` (string): First charge date (YYYY-MM-DD)
- `only_on_charge_success` (boolean): Only activate on first successful charge
- `payable_with` (string): Payment method
- `plan_identifier` (string): Plan identifier slug
- `price_cents` (number): Amount in cents for credit-based subscriptions
- `return_url` (string): Redirect URL after payment

### `suspend_subscription` (~31 tokens)

Suspend a subscription. Endpoint: POST /subscriptions/:id/suspend

Input parameters:

- `id` (string, required): Subscription ID

### `activate_subscription` (~33 tokens)

Reactivate a suspended subscription. Endpoint: POST /subscriptions/:id/activate

Input parameters:

- `id` (string, required): Subscription ID

### `cancel_subscription` (~32 tokens)

Cancel (delete) a subscription. Endpoint: DELETE /subscriptions/:id

Input parameters:

- `id` (string, required): Subscription ID

### `create_payment_token` (~95 tokens)

Tokenize a credit card server-side. Endpoint: POST /payment_token. WARNING: using this from your server subjects you to PCI audits — prefer iugu.js client-side tokenization in production.

Input parameters:

- `account_id` (string, required): iugu account ID
- `data` (object, required): Card data
- `method` (string, required): Payment method (e.g., 'credit_card')
- `test` (boolean): Use test mode

### `create_payment_method` (~93 tokens)

Attach a payment method (credit card token) to a customer. Endpoint: POST /customers/:customer_id/payment_methods

Input parameters:

- `customer_id` (string, required): Customer ID
- `description` (string, required): Card description (e.g., 'Visa ending 1234')
- `set_as_default` (boolean): Set as default payment method
- `token` (string, required): Card token from iugu.js or create_payment_token

### `create_subaccount` (~78 tokens)

Create a marketplace sub-account. Endpoint: POST /marketplace/create_account. Note: only works in production mode. Returns live/test API tokens and user_token.

Input parameters:

- `commission_percent` (number): Commission percentage to retain from this sub-account
- `name` (string): Sub-account name (no special characters; defaults to account_id if omitted)

### `create_transfer` (~52 tokens)

Transfer funds between iugu accounts (marketplace). Endpoint: POST /transfers

Input parameters:

- `amount_cents` (number, required): Amount in cents (minimum 1)
- `receiver_id` (string, required): Destination account ID

### `request_withdraw` (~67 tokens)

Request a bank withdrawal (saque) from a sub-account. Endpoint: POST /accounts/:id/request_withdraw

Input parameters:

- `account_id` (string, required): Sub-account ID requesting the withdraw
- `amount` (string, required): Amount (e.g., '100.00' in BRL)

### `create_webhook` (~79 tokens)

Register a webhook (gatilho) for an iugu event. Endpoint: POST /web_hooks

Input parameters:

- `authorization` (string): Optional Basic auth header value for callbacks
- `event` (string, required): Event name (e.g., 'invoice.status_changed', 'subscription.expired')
- `url` (string, required): Your endpoint that will receive the POST

### `get_account_info` (~18 tokens)

Get account information, configuration, and balance

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/codespar-mcp-iugu/codespar-mcp-iugu#diagnostics

## Score history

- 2026-08-08: 58
- 2026-08-07: 57
- 2026-08-06: 53
- 2026-08-05: 52
- 2026-08-04: 51
- 2026-08-03: 51
- 2026-08-02: 51
- 2026-08-01: 25
- 2026-07-31: 20
- 2026-07-30: 28
- 2026-07-28: 28
- 2026-07-27: 28

## Links

- npm package: https://www.npmjs.com/package/@codespar/mcp-iugu
- Socket report: https://socket.dev/npm/package/@codespar/mcp-iugu
- Repository: https://github.com/codespar/mcp-dev-latam
- Changelog RSS feed: https://verifymcp.io/servers/codespar-mcp-iugu/codespar-mcp-iugu.xml
- Changelog JSON feed: https://verifymcp.io/servers/codespar-mcp-iugu/codespar-mcp-iugu.json
- HTML version of this page: https://verifymcp.io/servers/codespar-mcp-iugu/codespar-mcp-iugu
