Skip to main content
C6

C6 Bank

v0.1.0-alpha.2OAuth2alpha

Banco digital de BR (respaldado por JPMorgan). BaaS para Pix, DICT, boleto, cuentas. OAuth2 + mTLS. Alpha — developers.c6bank.com.br cerrado por contrato, paths siguen Pix v2 del BACEN + convenciones de BaaS de C6.

14 herramientas5 env vars🇧🇷 Brasilalpha — validación pendiente

Qué puede hacer tu agente

C6 Bank le da a tu agente 14 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • get_oauth_tokenMint or return a cached OAuth2 client_credentials bearer token for the C6 Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.
  • create_pix_cobCreate a Pix immediate charge (cob) with QR code. Returns the txid, copy-paste EMV payload, and location URL per BACEN Pix v2.
  • get_pix_cobRetrieve a Pix immediate charge (cob) by its txid.
Ejemplo de llamada
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("get_oauth_token", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-c6@alpha

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "c6": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-c6@alpha"
      ],
      "env": {
        "C6_CLIENT_ID": "<your_c6_client_id>",
        "C6_CLIENT_SECRET": "<your_c6_client_secret>",
        "C6_CERT_PATH": "<your_c6_cert_path>",
        "C6_KEY_PATH": "<your_c6_key_path>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 14 herramientas de abajo — probá get_oauth_token primero.

Variables de entorno · 5

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

C6_CLIENT_ID
obligatorio

C6 OAuth client_id issued via the Developer Portal after contract onboarding.

C6_CLIENT_SECRET
obligatoriosecret

C6 OAuth client_secret.

C6_CERT_PATH
obligatorio

Absolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2.

C6_KEY_PATH
obligatoriosecret

Absolute path to the mTLS private key (.key or .pem).

C6_ENV
opcional

Environment: 'sandbox' or 'production'. Defaults to 'sandbox'.

Herramientas disponibles · 14

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

READget_oauth_token
Mint or return a cached OAuth2 client_credentials bearer token for the C6 Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.
WRITEcreate_pix_cob
Create a Pix immediate charge (cob) with QR code. Returns the txid, copy-paste EMV payload, and location URL per BACEN Pix v2.
READget_pix_cob
Retrieve a Pix immediate charge (cob) by its txid.
READlist_pix_cob
List Pix immediate charges (cob) registered by the merchant within a date range. Paginated per BACEN Pix v2.
WRITEcreate_pix_cobv
Create a Pix charge with due date (cobv) — used for boleto-like Pix where the payer can pay at or after a due date with optional fine/interest. Returns txid, copy-paste EMV payload, and location URL.
READget_pix_cobv
Retrieve a Pix due-date charge (cobv) by its txid.
READresolve_dict_key
Resolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix. Subject to BCB rate limits per consenting payer.
WRITEregister_pix_key
Register a DICT key (CPF, CNPJ, email, phone, or EVP) on a C6 account owned by the merchant. Subject to BCB validation flows (e.g. email/SMS confirmation for email/phone keys).

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-c6` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
C6 Bank — MCP server · 14 tools | CodeSpar