2º banco privado más grande de BR (después de Itaú). API bancaria directa: Pix, boleto, estados de cuenta. OAuth2 + mTLS. Alpha en npm — base URLs no verificadas.
Bradesco le da a tu agente 22 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
get_oauth_token — Mint or return a cached OAuth2 client_credentials bearer token for the Bradesco Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.send_pix — Initiate an outbound Pix payment from the merchant's Bradesco account. Amount in BRL major units (e.g. '10.50').create_pix_qr — Create a dynamic Pix charge with QR code (cob). Returns the txid, copy-paste EMV payload, and location URL.// 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", { /* ... */ });$ npm install @codespar/mcp-bradesco@alphaAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"bradesco": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-bradesco@alpha"
],
"env": {
"BRADESCO_CLIENT_ID": "<your_bradesco_client_id>",
"BRADESCO_CLIENT_SECRET": "<your_bradesco_client_secret>",
"BRADESCO_CERT_PATH": "<your_bradesco_cert_path>",
"BRADESCO_KEY_PATH": "<your_bradesco_key_path>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 22 herramientas de abajo — probá get_oauth_token primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
BRADESCO_CLIENT_IDBradesco OAuth client_id issued via the Developer Portal after contract onboarding.
BRADESCO_CLIENT_SECRETBradesco OAuth client_secret.
BRADESCO_CERT_PATHAbsolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2.
BRADESCO_KEY_PATHAbsolute path to the mTLS private key (.key or .pem).
BRADESCO_ENVEnvironment: 'sandbox' or 'production'. Defaults to 'sandbox'.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
get_oauth_tokensend_pixcreate_pix_qrget_pixresolve_dict_keyrefund_pixcreate_boletoget_boletoMCP es un protocolo — cualquier framework que lo hable puede montar este server.