Skip to main content
BA

Banco do Brasil

v0.1.0-alpha.2OAuth2alpha

El mayor banco público de BR (el más grande por activos). OAuth2 + mTLS + gw-dev-app-key. Pix, DICT, cobranças de boleto, conta-corrente. Alpha en npm — devportal cerrado por contrato, paths siguen el estándar BACEN.

13 herramientas6 env vars🇧🇷 Brasilalpha — validación pendiente

Qué puede hacer tu agente

Banco do Brasil le da a tu agente 13 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • create_pix_cobCreate an immediate Pix charge (cob) with QR code. Returns txid, EMV copy-paste payload, and location URL. BACEN Pix v2 standard.
  • get_pix_cobRetrieve an immediate Pix charge by its txid.
  • list_pix_cobList immediate Pix charges (cob) by date range. Paginated per BACEN Pix v2.
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("create_pix_cob", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-banco-do-brasil@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": {
    "banco-do-brasil": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-banco-do-brasil@alpha"
      ],
      "env": {
        "BB_CLIENT_ID": "<your_bb_client_id>",
        "BB_CLIENT_SECRET": "<your_bb_client_secret>",
        "BB_DEVELOPER_APP_KEY": "<your_bb_developer_app_key>"
      }
    }
  }
}

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

Variables de entorno · 6

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

BB_CLIENT_ID
obligatorio

Banco do Brasil OAuth client_id issued via developers.bb.com.br after contract onboarding.

BB_CLIENT_SECRET
obligatoriosecret

Banco do Brasil OAuth client_secret.

BB_DEVELOPER_APP_KEY
obligatoriosecret

BB Developer App Key (gw-dev-app-key) — appended as a query param on most BB API calls.

BB_CERT_PATH
opcional

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

BB_KEY_PATH
opcionalsecret

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

BB_ENV
opcional

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

Herramientas disponibles · 13

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

WRITEcreate_pix_cob
Create an immediate Pix charge (cob) with QR code. Returns txid, EMV copy-paste payload, and location URL. BACEN Pix v2 standard.
READget_pix_cob
Retrieve an immediate Pix charge by its txid.
READlist_pix_cob
List immediate Pix charges (cob) by date range. Paginated per BACEN Pix v2.
WRITEcreate_pix_devolucao
Refund (devolução) a previously received Pix. Must reference the original endToEndId and a merchant-side refund id.
READget_pix_devolucao
Retrieve a Pix devolução by its endToEndId + refund id.
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_dict_key
Register a DICT key on a BB account owned by the merchant. Some key types (email/phone) require BCB confirmation flows.
DELETEdelete_dict_key
Delete a DICT key owned by the merchant. Irreversible — key becomes available for re-registration after BCB lockout window.

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-banco-do-brasil` 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.
Banco do Brasil — MCP server · 13 tools | CodeSpar