# mcp-cielo

Wires Cielo payments into your coding agent: card sales, boleto, Pix, recurring charges and payment links, as 22 callable tools. Handy when billing logic lives in the repo you are editing.

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

## What it does

The server talks to the Cielo acquiring API on the agent's behalf. You can open a card sale, capture one that was only pre-authorized, and void it in full or in part. Boleto and Pix are covered too, the latter with a QR code. Recurring credit card plans are managed from the same place: change the amount, move the next charge date, pause the plan, bring it back.

Stored card tokens let you charge a customer again without asking for the card number, and a zero-dollar authorization checks a card without moving money. Authentication uses MerchantId and MerchantKey headers, so you need both credentials from the Cielo developer portal. Testing runs against the Cielo sandbox once `CIELO_SANDBOX=true` is set; the host switches to `apisandbox.cieloecommerce.cielo.com.br`.

One thing to watch: the tool table lists Pix, debit, wallets and anti-fraud, while the roadmap in the same repository still marks several of those as planned for version 0.2. Check which tools actually load before you build a flow around them. Debit sales additionally require 3DS authentication.

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

### Codex

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

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

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

## When to use it
- charge a credit or debit card through Cielo
- issue a boleto for an order
- generate a Pix payment with a QR code
- set up a recurring charge and adjust its amount
- validate a card with a zero-dollar authorization

## Example prompts
- Pull the details for sale PaymentId 123456789
- Create a recurring payment for 49.90 and pause it before the next charge
- Generate a payment link for order 8842

## 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) — 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
