mcp-banco-do-brasil

v0.1.0-alpha.5
io.github.codespar/mcp-banco-do-brasil Checked 10 hours ago Published 2 months ago

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

ParameterTypeDescription
amount *stringAmount in BRL major units, e.g. '99.90'
dict_key *stringRecebedor DICT key — must be a key owned by the merchant
descriptionstringPayer-visible description (solicitacaoPagador)
expires_innumberQR lifetime in seconds (default 3600)
payerobjectPayer identification (CPF/CNPJ + name)
txidstringOptional merchant-supplied txid (26-35 alphanumeric). Omit to have BCB assign one.

get_pix_cob

Retrieve an immediate Pix charge by its txid.

ParameterTypeDescription
txid *stringBACEN txid (26-35 alphanumeric)

list_pix_cob

List immediate Pix charges (cob) by date range. Paginated per BACEN Pix v2.

ParameterTypeDescription
from *stringStart date-time ISO-8601 (inicio)
to *stringEnd date-time ISO-8601 (fim)
pagenumberpaginacao.paginaAtual
page_sizenumberpaginacao.itensPorPagina
statusstringStatus 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.

ParameterTypeDescription
end_to_end_id *stringOriginal Pix endToEndId
refund_id *stringMerchant-side refund id (id da devolução, alphanumeric up to 35)
amountstringRefund amount in BRL major units. Omit for full refund.
reasonstringFree-text reason (descricao)

get_pix_devolucao

Retrieve a Pix devolução by its endToEndId + refund id.

ParameterTypeDescription
end_to_end_id *stringOriginal Pix endToEndId
refund_id *stringMerchant-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.

ParameterTypeDescription
key *stringDICT key — CPF, CNPJ, email, phone (+55...), or EVP UUID
payer_documentstringEnd-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.

ParameterTypeDescription
account *object
key_type *stringDICT key type: CPF | CNPJ | EMAIL | PHONE | EVP
keystringKey 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.

ParameterTypeDescription
key *stringDICT key value to delete

register_boleto

Issue a boleto via BB Cobranças. Returns nosso_numero, linha digitável, barcode, and PDF URL.

ParameterTypeDescription
amount *stringAmount in BRL major units, e.g. '150.00'
convenio *stringBB convênio (numeroConvenio) registered for the merchant
due_date *stringDue date ISO-8601 (YYYY-MM-DD)
payer *object
discountobjectDesconto: { percentage?, amount?, until? }
fineobjectMulta: { percentage?, amount?, days_after_due? }
interestobjectJuros: { percentage?, amount? }
our_numberstringNosso_numero. Omit to have BB assign one.

get_boleto

Retrieve a boleto by nosso_numero.

ParameterTypeDescription
convenio *stringBB convênio
nosso_numero *stringBB nosso_numero

cancel_boleto

Cancel (baixa) an outstanding boleto before payment.

ParameterTypeDescription
convenio *stringBB convênio
nosso_numero *stringBB nosso_numero
reasonstringCancellation reason code or free text

get_account_balance

Retrieve the current balance of a BB conta-corrente (checking) account.

ParameterTypeDescription
account *stringConta (digits, no DV)
branch *stringAgência (4 digits)
account_dvstringConta DV (1 digit)

get_statement

Retrieve account statement transactions for a BB conta-corrente over a date range. Paginated.

ParameterTypeDescription
account *stringConta
branch *stringAgência
from *stringStart date ISO-8601 (YYYY-MM-DD)
to *stringEnd date ISO-8601 (YYYY-MM-DD)
pagenumberPage number (1-indexed)
page_sizenumberItems per page (default 50)