Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codespar/mcp-banco-do-brasil

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-banco-do-brasil

MCP server for Banco do Brasil — Brazil's top public bank. Pix, Cobrança (boleto), Conta-Corrente, and Arrecadação via BB's Developer Portal APIs (OAuth2 + mTLS).

latest
npmnpm
Version
0.1.0-alpha.1
Version published
Maintainers
1
Created
Source

@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.

Status: alpha (0.1.0-alpha.1)

BB's Developer Portal is contract-gated — the full OpenAPI specs are visible only after merchant onboarding. Pix paths follow the BACEN Pix v2 standard; boleto, account, and statement paths are best-guesses based on BB's public marketing pages and conventions shared with peers (Itaú, Santander, Bradesco). Every unverified path is flagged TODO(verify) in src/index.ts. Pin to exact versions during 0.1.x.

Tools (10)

ToolPurpose
create_pix_cobCreate immediate Pix charge (cob)
get_pix_cobGet an immediate Pix charge by txid
list_pix_cobList immediate Pix charges by date range
create_pix_devolucaoRefund a received Pix (devolução)
get_pix_devolucaoRetrieve a devolução by id
resolve_dict_keyResolve a DICT key to account data
register_dict_keyRegister a DICT key on a BB account
delete_dict_keyDelete a DICT key owned by the merchant
register_boletoIssue a boleto via BB Cobranças
get_boletoRetrieve a boleto by nosso_numero
cancel_boletoCancel (baixa) an outstanding boleto
get_account_balanceConta-corrente balance
get_statementAccount statement transactions

Install

npm install @codespar/mcp-banco-do-brasil@0.1.0-alpha.1

Environment

BB_CLIENT_ID="..."             # OAuth client_id from developers.bb.com.br
BB_CLIENT_SECRET="..."         # OAuth client_secret
BB_DEVELOPER_APP_KEY="..."     # gw-dev-app-key — required on most calls
BB_CERT_PATH="/abs/path/client.crt"   # mTLS cert (production only)
BB_KEY_PATH="/abs/path/client.key"    # mTLS key  (production only)
BB_ENV="sandbox"                       # or "production" (default: sandbox)

Authentication

  • OAuth2 client_credentials — token endpoint at oauth.{env}.bb.com.br. Bearer cached until ~60s before expiry.
  • mTLS — required by BACEN for Pix v2 in production. Sandbox typically allows TLS-only; cert/key are optional in sandbox and required in production.
  • gw-dev-app-key — BB API gateway key, appended as a query param on all calls.

Run

npx @codespar/mcp-banco-do-brasil

License

MIT

Keywords

mcp

FAQs

Package last updated on 25 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts