Skip to main content
B

Bradesco

@codespar/mcp-bradesco Β· v0.2.0-alpha.3

πŸ‡§πŸ‡· BrazilBankingAuth Β· OAuth2beta22 tools5 env varsprerelease

2nd largest private BR bank (after Itau). Direct banking API: Pix, boleto, statements. OAuth2 + mTLS. Alpha on npm β€” base URLs unverified.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • v0.2.0-alpha.3 is a prerelease; npm has no stable release of this package.
  • Hosted calls with a test key are not available: connecting this provider needs credentials it issues to an operator.
Package
@codespar/mcp-bradesco
Version
0.2.0-alpha.3 Β· prerelease
npm dist-tag
latest
Category
Banking
Auth
OAuth2
Country
πŸ‡§πŸ‡· Brazil
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables5 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 22 tools. Try get_oauth_token first.
terminal
# Claude Code claude mcp add bradesco -e BRADESCO_CERT_PATH=… -e BRADESCO_CLIENT_ID=… -e BRADESCO_CLIENT_SECRET=… -e BRADESCO_ENV=… -e BRADESCO_KEY_PATH=… -- npx -y @codespar/mcp-bradesco@0.2.0-alpha.3 # then: /mcp to confirm the server is connected
Environment variables5 variables
BRADESCO_CERT_PATHAbsolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2.required
BRADESCO_CLIENT_IDBradesco OAuth client_id issued via the Developer Portal after contract onboarding.required
BRADESCO_CLIENT_SECRETBradesco OAuth client_secret.requiredsecret
BRADESCO_ENVEnvironment: 'sandbox' or 'production'. Defaults to 'sandbox'.optional
BRADESCO_KEY_PATHAbsolute path to the mTLS private key (.key or .pem).requiredsecret

Names read from the package code (@codespar/mcp-bradesco@0.2.0-alpha.3). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call demoget_oauth_token

"Mint or return a cached OAuth2 client_credentials bearer token for the Bradesco Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly"

tools/callget_oauth_tokenresult returned

Tools

What your agent can call.

22 tools, as the package's tools/list returns them.

get_oauth_token

Mint or return a cached OAuth2 client_credentials bearer token for the Bradesco Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.

send_pix

Initiate an outbound Pix payment from the merchant's Bradesco account. Amount in BRL major units (e.g. '10.50').

create_pix_qr

Create a dynamic Pix charge with QR code (cob). Returns the txid, copy-paste EMV payload, and location URL.

get_pix

Retrieve a Pix transaction by its BCB endToEndId (E<ispb><yyyymmddhhmm><sequence>).

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.

refund_pix

Refund (devoluΓ§Γ£o) a previously received Pix. Must reference the original endToEndId and a merchant-side refund id.

create_boleto

Issue a boleto via Bradesco CobranΓ§a. Returns nosso_numero, linha_digitΓ‘vel, barcode, and PDF URL.

get_boleto

Retrieve a boleto by its Bradesco identifier (id or nosso_numero).

cancel_boleto

Cancel (baixa) an outstanding boleto before payment.

get_statement

Retrieve account statement transactions for a given period. Paginated.

arrecadacao_pay

Pay a utility, tax, or concessionΓ‘ria bill via Bradesco ArrecadaΓ§Γ£o. Works with barcode (cΓ³digo de barras) or linha digitΓ‘vel.

list_pix_received

List Pix transactions received by the merchant during a period. Uses BACEN Pix v2 /pix collection with ISO-8601 bounds.

Names and descriptions come from the package's tools/list (@codespar/mcp-bradesco@0.2.0-alpha.3). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

codespar_discover lists this server's tools, but connecting it needs credentials the provider issues to an operator (a certificate, signed keys or paired headers), which a test key cannot produce.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Bradesco MCP server?

Run npx -y @codespar/mcp-bradesco@0.2.0-alpha.3 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Bradesco?

Bradesco exposes 22 tools for banking. Your agent calls them directly; the full list is above.

How does Bradesco authenticate, and how are credentials stored?

Bradesco uses OAuth2. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Bradesco handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.0-alpha.3, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Bradesco open source? How do I report a bug?

Yes. Bradesco is MIT-licensed and published on npm as @codespar/mcp-bradesco, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Bradesco β€” MCP server Β· 22 tools | CodeSpar