# mcp-getnet

Connects an agent to Getnet for card payments, Pix, boleto, and marketplace splits. Built for workflows using the Brazilian acquirer.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/getnet
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-getnet

## What it does

mcp-getnet exposes Getnet actions for credit and debit payments, Pix charges, and boleto charges. An agent can approve, capture, cancel, or refund credit payments, look up records by `payment_id` or merchant `order_id`, and request installment options. Card tokenization is available for later PCI-safe reuse.

Marketplace workflows include seller onboarding, seller lookup, seller lists, split configuration, and statement retrieval for sales, fees, and payouts. The server authenticates with OAuth 2.0 Client Credentials, calls `POST /auth/oauth/v2/token`, and keeps the bearer token in memory until it is close to expiry.

Set `GETNET_CLIENT_ID`, `GETNET_CLIENT_SECRET`, and `GETNET_SELLER_ID` before starting it; `GETNET_BASE_URL` can select another API endpoint. Getnet integrates directly for merchants with a Santander commercial contract, so that contract is a prerequisite for the intended setup.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `GETNET_CLIENT_ID`, `GETNET_CLIENT_SECRET`, `GETNET_SELLER_ID`, `GETNET_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env GETNET_CLIENT_ID=<GETNET_CLIENT_ID> --env GETNET_CLIENT_SECRET=<GETNET_CLIENT_SECRET> --env GETNET_SELLER_ID=<GETNET_SELLER_ID> --env GETNET_BASE_URL=<GETNET_BASE_URL> --transport stdio getnet -- npx -y @codespar/mcp-getnet
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add getnet --env GETNET_CLIENT_ID=<GETNET_CLIENT_ID> --env GETNET_CLIENT_SECRET=<GETNET_CLIENT_SECRET> --env GETNET_SELLER_ID=<GETNET_SELLER_ID> --env GETNET_BASE_URL=<GETNET_BASE_URL> -- npx -y @codespar/mcp-getnet
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "getnet": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-getnet"
            ],
            "env": {
                "GETNET_CLIENT_ID": "<GETNET_CLIENT_ID>",
                "GETNET_CLIENT_SECRET": "<GETNET_CLIENT_SECRET>",
                "GETNET_SELLER_ID": "<GETNET_SELLER_ID>",
                "GETNET_BASE_URL": "<GETNET_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "getnet": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-getnet"
            ],
            "env": {
                "GETNET_CLIENT_ID": "<GETNET_CLIENT_ID>",
                "GETNET_CLIENT_SECRET": "<GETNET_CLIENT_SECRET>",
                "GETNET_SELLER_ID": "<GETNET_SELLER_ID>",
                "GETNET_BASE_URL": "<GETNET_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e GETNET_CLIENT_ID=<GETNET_CLIENT_ID> -e GETNET_CLIENT_SECRET=<GETNET_CLIENT_SECRET> -e GETNET_SELLER_ID=<GETNET_SELLER_ID> -e GETNET_BASE_URL=<GETNET_BASE_URL> getnet npx -y @codespar/mcp-getnet
```
Replace <…> with your own values

## When to use it
- authorize a credit-card payment
- issue a Pix or boleto charge
- recover a payment from `order_id`
- onboard a marketplace seller
- route part of a payment to a subseller

## Example prompts
- Authorize a card payment with `authorize_credit` and report the returned payment details.
- Create a Pix charge, then check its state with `query_pix`.
- Configure a marketplace split and retrieve the subseller entries with `get_statement`.

## Similar
- [payment-async-flow](https://affpapa.org/en/nevibecode/skills/payment-async-flow.md) — skill · 1000 installs
- [pluggy-payments](https://affpapa.org/en/nevibecode/skills/pluggy-payments.md) — skill · 386 installs
- [app-marketplace-monetization-model](https://affpapa.org/en/nevibecode/skills/app-marketplace-monetization-model.md) — skill · 8100 installs
- [connect-recommend](https://affpapa.org/en/nevibecode/skills/connect-recommend.md) — skill · ★ 7604
- [ozon-mcp-server](https://affpapa.org/en/nevibecode/mcp/ozon-mcp-server.md) — MCP server · ★ 8
- [convex-billing](https://affpapa.org/en/nevibecode/skills/convex-billing.md) — skill · 36100 installs

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
