BR investment bank with retail digital banking (BTG+). Investment-bank flavor: Pix + boleto + accounts PLUS investment positions, portfolio summary, fund subscribe/redeem. OAuth2 + mTLS. Alpha — devportal contract-gated.
$ npm install @codespar/mcp-btg@alphaAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"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>"
}
}
}
}After restart, your agent can call any of the 12 tools below — try get_oauth_token first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
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'.
Each tool is independent — your agent loads only what it needs to reduce context and response time.
get_oauth_tokencreate_pix_cobget_pix_cobcreate_boletoget_boletoget_account_balanceget_account_statementlist_investment_positionsMCP is a protocol — any framework that speaks it can mount this server.