mcp-banco-do-brasil
v0.1.0-alpha.5MCP server for Banco do Brasil — Pix, Cobrança (boleto), Conta-Corrente, Arrecadação (OAuth2 + mTLS)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_pix_cob
Create an immediate Pix charge (cob) with QR code. Returns txid, EMV copy-paste payload, and location URL. BACEN Pix v2 standard.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in BRL major units, e.g. '99.90' |
dict_key * | string | Recebedor DICT key — must be a key owned by the merchant |
description | string | Payer-visible description (solicitacaoPagador) |
expires_in | number | QR lifetime in seconds (default 3600) |
payer | object | Payer identification (CPF/CNPJ + name) |
txid | string | Optional merchant-supplied txid (26-35 alphanumeric). Omit to have BCB assign one. |
get_pix_cob
Retrieve an immediate Pix charge by its txid.
| Parameter | Type | Description |
|---|---|---|
txid * | string | BACEN txid (26-35 alphanumeric) |
list_pix_cob
List immediate Pix charges (cob) by date range. Paginated per BACEN Pix v2.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start date-time ISO-8601 (inicio) |
to * | string | End date-time ISO-8601 (fim) |
page | number | paginacao.paginaAtual |
page_size | number | paginacao.itensPorPagina |
status | string | Status filter: ATIVA | CONCLUIDA | REMOVIDA_PELO_USUARIO_RECEBEDOR | REMOVIDA_PELO_PSP |
create_pix_devolucao
Refund (devolução) a previously received Pix. Must reference the original endToEndId and a merchant-side refund id.
| Parameter | Type | Description |
|---|---|---|
end_to_end_id * | string | Original Pix endToEndId |
refund_id * | string | Merchant-side refund id (id da devolução, alphanumeric up to 35) |
amount | string | Refund amount in BRL major units. Omit for full refund. |
reason | string | Free-text reason (descricao) |
get_pix_devolucao
Retrieve a Pix devolução by its endToEndId + refund id.
| Parameter | Type | Description |
|---|---|---|
end_to_end_id * | string | Original Pix endToEndId |
refund_id * | string | Merchant-side refund id |
resolve_dict_key
Resolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix. Subject to BCB rate limits per consenting payer.
| Parameter | Type | Description |
|---|---|---|
key * | string | DICT key — CPF, CNPJ, email, phone (+55...), or EVP UUID |
payer_document | string | End-payer CPF/CNPJ for BCB audit logging |
register_dict_key
Register a DICT key on a BB account owned by the merchant. Some key types (email/phone) require BCB confirmation flows.
| Parameter | Type | Description |
|---|---|---|
account * | object | |
key_type * | string | DICT key type: CPF | CNPJ | EMAIL | PHONE | EVP |
key | string | Key value. Omit for EVP (BCB generates UUID). |
delete_dict_key
Delete a DICT key owned by the merchant. Irreversible — key becomes available for re-registration after BCB lockout window.
| Parameter | Type | Description |
|---|---|---|
key * | string | DICT key value to delete |
register_boleto
Issue a boleto via BB Cobranças. Returns nosso_numero, linha digitável, barcode, and PDF URL.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in BRL major units, e.g. '150.00' |
convenio * | string | BB convênio (numeroConvenio) registered for the merchant |
due_date * | string | Due date ISO-8601 (YYYY-MM-DD) |
payer * | object | |
discount | object | Desconto: { percentage?, amount?, until? } |
fine | object | Multa: { percentage?, amount?, days_after_due? } |
interest | object | Juros: { percentage?, amount? } |
our_number | string | Nosso_numero. Omit to have BB assign one. |
get_boleto
Retrieve a boleto by nosso_numero.
| Parameter | Type | Description |
|---|---|---|
convenio * | string | BB convênio |
nosso_numero * | string | BB nosso_numero |
cancel_boleto
Cancel (baixa) an outstanding boleto before payment.
| Parameter | Type | Description |
|---|---|---|
convenio * | string | BB convênio |
nosso_numero * | string | BB nosso_numero |
reason | string | Cancellation reason code or free text |
get_account_balance
Retrieve the current balance of a BB conta-corrente (checking) account.
| Parameter | Type | Description |
|---|---|---|
account * | string | Conta (digits, no DV) |
branch * | string | Agência (4 digits) |
account_dv | string | Conta DV (1 digit) |
get_statement
Retrieve account statement transactions for a BB conta-corrente over a date range. Paginated.
| Parameter | Type | Description |
|---|---|---|
account * | string | Conta |
branch * | string | Agência |
from * | string | Start date ISO-8601 (YYYY-MM-DD) |
to * | string | End date ISO-8601 (YYYY-MM-DD) |
page | number | Page number (1-indexed) |
page_size | number | Items per page (default 50) |