Banco de inversión de BR con banca digital de retail (BTG+). Sabor de banco de inversión: Pix + boleto + cuentas MÁS posiciones de inversión, resumen de portafolio, suscripción/rescate de fondos. OAuth2 + mTLS. Alpha — devportal cerrado por contrato.
BTG Pactual le da a tu agente 12 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 BTG Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.create_pix_cob — Create an immediate Pix charge (cob) with QR code. Returns the txid, copy-paste EMV payload, and location URL. BACEN Pix v2 standard surface.get_pix_cob — Retrieve an immediate Pix charge (cob) by its txid.// 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-btg@alphaAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"btg": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-btg@alpha"
],
"env": {
"BTG_CLIENT_ID": "<your_btg_client_id>",
"BTG_CLIENT_SECRET": "<your_btg_client_secret>",
"BTG_CERT_PATH": "<your_btg_cert_path>",
"BTG_KEY_PATH": "<your_btg_key_path>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 12 herramientas de abajo — probá get_oauth_token primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
BTG_CLIENT_IDBTG OAuth client_id issued via the Developer Portal after contract onboarding.
BTG_CLIENT_SECRETBTG OAuth client_secret.
BTG_CERT_PATHAbsolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2; BTG enforces it across product families.
BTG_KEY_PATHAbsolute path to the mTLS private key (.key or .pem).
BTG_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_tokencreate_pix_cobget_pix_cobcreate_boletoget_boletoget_account_balanceget_account_statementlist_investment_positionsMCP es un protocolo — cualquier framework que lo hable puede montar este server.