# mcp-ebanx

Hands your agent 18 EBANX tools: take a payment, refund it, send a payout, read an exchange rate. Useful when the product charges customers in Latin America.

- 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/ebanx
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-ebanx

## What it does

The server sits in front of the EBANX API and exposes 18 tools to the model. An agent can open a payment through boleto, PIX or a card, look it up by hash, and issue a full or partial refund. Another set covers payouts to bank accounts, with a batch call for sending several at once.

Some chores that otherwise end up in custom code are tools too. There is a validator for regional tax numbers: CPF/CNPJ in Brazil, RFC in Mexico, DNI in Argentina and Peru. Card data can be tokenized for reuse. Incoming webhooks get their HMAC signature checked against the integration key. And `simulate_payment` replays a sandbox response without writing anything, which helps while wiring up an integration.

Auth is a single integration key from the EBANX dashboard, supplied as `EBANX_INTEGRATION_KEY`. Requests fail without a working key. Add `EBANX_SANDBOX=true` to point at `sandbox.ebanx.com` and keep real money out of the loop.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `EBANX_API_KEY` — 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 mcp-ebanx -e EBANX_API_KEY=<EBANX_API_KEY> -- npx -y @codespar/mcp-ebanx
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add ebanx --env EBANX_API_KEY=<EBANX_API_KEY> -- npx -y @codespar/mcp-ebanx
```
Replace <…> with your own values

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e EBANX_API_KEY=<EBANX_API_KEY> ebanx npx -y @codespar/mcp-ebanx
```
Replace <…> with your own values

## When to use it
- accept a boleto, PIX or card payment from application code
- refund part of an existing payment
- pay out to several bank accounts in one request
- validate a CPF or CNPJ before submitting
- confirm an incoming webhook is genuine

## Example prompts
- Open an EBANX payment for 150 BRL by card and show me the hash
- Refund half of the payment with hash `abc123`
- What is the current EBANX rate for USD to BRL?

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 40 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
