# mcp-c6

An MCP server exposing Pix, boleto and account calls for C6 Bank to your coding agent. The npm package is deprecated and its hosts do not resolve.

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

## What it does

\`@codespar/mcp-c6` ships 14 tools. They cover Pix immediate charges and due-date charges, DICT key lookup, registration and removal, boleto issue and cancellation, plus account balance and statement retrieval. `get_oauth_token` fetches the bearer used by the rest.

Two credentials are needed on every call. The server caches an OAuth2 `client_credentials` token and keeps it fresh, then routes traffic through a Node `https.Agent` loaded with a client certificate and key. C6 hands that bundle to merchants after the contract is signed; point the server at it with `C6_CERT_PATH` and `C6_KEY_PATH`.

Here is the catch. Nothing reaches a service. Both production and sandbox hostnames written into the package fail DNS, the paths were sketched from the BACEN Pix v2 standard and other banks' conventions, and C6's portal now documents different hosts behind mTLS. The package is deprecated on npm. A working address can be set through `C6_BASE_URL`, yet the auth and paths will still need rework before anything answers.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `C6_CLIENT_ID`, `C6_CLIENT_SECRET`, `C6_CERT_PATH`, `C6_KEY_PATH`, `C6_ENV` — 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 C6_CLIENT_ID=<C6_CLIENT_ID> --env C6_CLIENT_SECRET=<C6_CLIENT_SECRET> --env C6_CERT_PATH=<C6_CERT_PATH> --env C6_KEY_PATH=<C6_KEY_PATH> --env C6_ENV=<C6_ENV> --transport stdio c6 -- npx -y @codespar/mcp-c6
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add c6 --env C6_CLIENT_ID=<C6_CLIENT_ID> --env C6_CLIENT_SECRET=<C6_CLIENT_SECRET> --env C6_CERT_PATH=<C6_CERT_PATH> --env C6_KEY_PATH=<C6_KEY_PATH> --env C6_ENV=<C6_ENV> -- npx -y @codespar/mcp-c6
```
Replace <…> with your own values

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e C6_CLIENT_ID=<C6_CLIENT_ID> -e C6_CLIENT_SECRET=<C6_CLIENT_SECRET> -e C6_CERT_PATH=<C6_CERT_PATH> -e C6_KEY_PATH=<C6_KEY_PATH> -e C6_ENV=<C6_ENV> c6 npx -y @codespar/mcp-c6
```
Replace <…> with your own values

## When to use it
- issue a Pix charge with a QR code from the agent
- check who owns a DICT key before sending money
- create a boleto and cancel it before payment
- pull the balance and statement for a merchant account
- register or delete a Pix key on the account

## Example prompts
- Show the balance on our C6 merchant account
- Create a Pix charge for 150 BRL and give me the QR code
- Look up the owner of the DICT key `user@example.com` before I send anything

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