# Banco Do Brasil (MCP server)

> Banco Do Brasil is an MCP server that adds finance tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server for Banco do Brasil — Pix, Cobrança (boleto), Conta-Corrente, Arrecadação (OAuth2 + mTLS). It has 272 GitHub stars, is released under the MIT license and runs locally with npx -y @codespar/mcp-banco-do-brasil.

MCP server for Banco do Brasil — Brazil's top public bank. BB exposes one of the broadest public-bank API surfaces in the country across Pix, Cobranças, Conta-Corrente, Open Finance, and Arrecadação. Merchants doing high-volume Pix and boleto operations integrate directly with BB instead of going through a PSP.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/codespar/mcp-dev-latam |
| GitHub stars | 272 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @codespar/mcp-banco-do-brasil |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Finance |
| Latest release | none |
| Last commit | Sep 27, 2026 |
| MCP registry name | io.github.codespar/mcp-banco-do-brasil |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "banco-do-brasil": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-banco-do-brasil"
      ],
      "env": {
        "BB_CLIENT_ID": "your-value",
        "BB_CLIENT_SECRET": "your-value",
        "BB_DEVELOPER_APP_KEY": "your-value",
        "BB_KEY_PATH": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env BB_CLIENT_ID=your-value --env BB_CLIENT_SECRET=your-value --env BB_DEVELOPER_APP_KEY=your-value --env BB_KEY_PATH=your-value --transport stdio banco-do-brasil -- npx -y @codespar/mcp-banco-do-brasil
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "banco-do-brasil": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-banco-do-brasil"
      ],
      "env": {
        "BB_CLIENT_ID": "your-value",
        "BB_CLIENT_SECRET": "your-value",
        "BB_DEVELOPER_APP_KEY": "your-value",
        "BB_KEY_PATH": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "bb_client_secret",
      "description": "BB_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "bb_developer_app_key",
      "description": "BB_DEVELOPER_APP_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "bb_key_path",
      "description": "BB_KEY_PATH",
      "password": true
    }
  ],
  "servers": {
    "banco-do-brasil": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-banco-do-brasil"
      ],
      "env": {
        "BB_CLIENT_ID": "your-value",
        "BB_CLIENT_SECRET": "${input:bb_client_secret}",
        "BB_DEVELOPER_APP_KEY": "${input:bb_developer_app_key}",
        "BB_KEY_PATH": "${input:bb_key_path}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `BB_CLIENT_ID` (required): Banco do Brasil OAuth client_id issued via developers.bb.com.br after contract onboarding.
- `BB_CLIENT_SECRET` (secret) (required): Banco do Brasil OAuth client_secret.
- `BB_DEVELOPER_APP_KEY` (secret) (required): BB Developer App Key (gw-dev-app-key) — appended as a query param on most BB API calls.
- `BB_CERT_PATH`: Absolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2 in production.
- `BB_KEY_PATH` (secret): Absolute path to the mTLS private key (.key or .pem).
- `BB_ENV`: Environment: 'sandbox' or 'production'. Defaults to 'sandbox'.

## Similar MCP servers

- [CCXT](https://appsgit.com/mcp-servers/ccxt): Official CCXT MCP server - Market data and trading across 100+ exchanges and prediction markets. (44,271 stars, MIT, official)
- [Finance Toolkit](https://appsgit.com/mcp-servers/finance-toolkit): 200+ transparent financial metrics calculated from raw statements, not third-party endpoints. (5,402 stars, MIT, needs API key)
- [Tradingview MCP](https://appsgit.com/mcp-servers/tradingview-mcp): Real-time market data, screeners, technical analysis & backtesting for stocks, crypto and forex. (4,948 stars, MIT)
- [EdgarTools](https://appsgit.com/mcp-servers/edgartools): Open-source SEC EDGAR toolkit — 13 tools, 7 prompts, every filing type. (2,776 stars, MIT)
- [AI](https://appsgit.com/mcp-servers/ai): MCP server integrating with Stripe - tools for customers, products, payments, and more. (1,859 stars, MIT, official)
- [Tradememory Protocol](https://appsgit.com/mcp-servers/tradememory-protocol): Tamper-evident decision audit trail and outcome-weighted memory for AI trading agents. (1,425 stars, MIT)

---

Canonical page: https://appsgit.com/mcp-servers/banco-do-brasil
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
