Banco de investimento do BR com banking digital de varejo (BTG+). Sabor de banco de investimento: Pix + boleto + contas MAIS posições de investimento, resumo de portfólio, subscrição/resgate de fundos. OAuth2 + mTLS. Alpha — devportal fechado por contrato.
O BTG Pactual dá ao seu agente 12 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer 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@alphaAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com 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>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 12 ferramentas abaixo — teste get_oauth_token primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da 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 ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
get_oauth_tokencreate_pix_cobget_pix_cobcreate_boletoget_boletoget_account_balanceget_account_statementlist_investment_positionsMCP é um protocolo — qualquer framework que o fale pode montar este server.