Mcp Banco Do Brasil

io.github.codesparPublished by GitHub account codesparv0.1.0-alpha.5Updated Oct 24, 2026

MCP server for Banco do Brasil — Pix, Cobrança (boleto), Conta-Corrente, Arrecadação (OAuth2 + mTLS)

VerifiedSTDIODesktop onlyFinanceBusiness & Commerce

Overview

AI-generated overview

Local MCP server for Banco do Brasil banking APIs, letting an assistant create and manage Pix charges, boletos, DICT keys, and read account balances and bank-st

What you can do
Create, retrieve and list immediate Pix charges (cob), and issue or look up Pix refunds (devolução). Resolve, register and delete DICT keys (CPF, CNPJ, email, phone, EVP). Issue, retrieve and cancel boletos through BB Cobranças. Read the balance and statement transactions of a BB checking account over a date range.
When to use it
For merchants or developers integrating directly with Banco do Brasil for high-volume Pix and boleto operations, or for checking account balances and statements from an assistant. Best suited to sandbox experimentation first, given the alpha status.
Requirements
Runs locally via npm (npx) over stdio. Needs a Banco do Brasil developer contract and OAuth credentials: BB_CLIENT_ID, BB_CLIENT_SECRET and BB_DEVELOPER_APP_KEY. Production Pix v2 requires mTLS, so BB_CERT_PATH and BB_KEY_PATH must point to a client certificate and private key. BB_ENV selects sandbox (default) or production. Network access to BB API and OAuth endpoints.
Before you install
Requires OAuth secrets (BB_CLIENT_SECRET, BB_DEVELOPER_APP_KEY) and an mTLS private key file (BB_KEY_PATH); protect these. Tools move real money: creating Pix charges, issuing refunds, registering or deleting DICT keys, issuing and cancelling boletos, and reading balances and statements. The server is alpha, and boleto, account and statement API paths are unverified best-guesses, so pin exact versions and test in sandbox before production.

Installation

In SourceWeft

  1. Open Mcp Banco Do Brasil in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

@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 (13)

ToolPurpose
create_pix_cobCreate an immediate Pix charge (cob) with QR code.
get_pix_cobRetrieve an immediate Pix charge by its txid.
list_pix_cobList immediate Pix charges (cob) by date range.
create_pix_devolucaoRefund (devolução) a previously received Pix.
get_pix_devolucaoRetrieve a Pix devolução by its endToEndId + refund id.
resolve_dict_keyResolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix.
register_dict_keyRegister a DICT key on a BB account owned by the merchant.
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 before payment.
get_account_balanceRetrieve the current balance of a BB conta-corrente (checking) account.
get_statementRetrieve account statement transactions for a BB conta-corrente over a date range.

Install

bash
npm install @codespar/[email protected]

Environment

bash
BB_CLIENT_ID="..."             # OAuth client_id from developers.bb.com.brBB_CLIENT_SECRET="..."         # OAuth client_secretBB_DEVELOPER_APP_KEY="..."     # gw-dev-app-key — required on most callsBB_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)BB_BASE_URL="..."                      # optional; default api.hm.bb.com.br (sandbox) / api.bb.com.brBB_AUTH_URL="..."                      # optional; default https://oauth.hm.bb.com.br/oauth/token (sandbox) / oauth.bb.com.br

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

bash
npx @codespar/mcp-banco-do-brasil

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Source: packages/banking/banco-do-brasil/README.md at commit d0a519a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

2
  1. v0.1.0-alpha.5LatestSep 27, 2026
  2. v0.1.0-alpha.4Sep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts