Mcp Bradesco

io.github.codespar由 GitHub 账号 codespar 发布v0.2.0-alpha.3更新于 Oct 24, 2026

MCP server for Bradesco — Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS)

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向 Bradesco 银行 API 的 alpha 版 MCP 服务器,让助手发起 Pix、开立 boleto、缴费缴税并查询余额与流水。

可以做什么
  • 获取并缓存 Bradesco 开发者门户的 OAuth2 令牌
  • 发送 Pix、查询收到的 Pix、按 endToEndId 查询、退款,创建 Pix 二维码收款与带到期日的 Pix 收款
  • 开立、列出、查询、取消 boleto 并下载其 PDF
  • 通过 Arrecadação 支付水电、税费等账单,包括 DARF 与 GRU
  • 查询账户余额与对账单流水,并执行 TED 或行内转账
适用场景
适合已与 Bradesco 签约的商户,希望让助手直接操作 Pix、boleto、代收与现金管理业务,而不经过 PSP。鉴于仍是 alpha 版本,建议先在沙箱环境试用。
运行要求
以 npm 包形式在本地运行(需 Node.js),默认 stdio,设置 MCP_HTTP 与 MCP_PORT 后可走 HTTP。需要 Bradesco 开发者门户的合约与 OAuth 凭据(BRADESCO_CLIENT_ID、BRADESCO_CLIENT_SECRET),以及门户签发的 mTLS 证书与私钥(BRADESCO_CERT_PATH、BRADESCO_KEY_PATH)。BRADESCO_ENV 选择 sandbox 或 production,默认 sandbox。
安装前请注意
它会动用真实资金:发送 Pix、TED 转账、缴费缴税、退款、取消 boleto 以及变更 DICT 密钥都会作用于真实账户。它需要私钥路径(BRADESCO_KEY_PATH)和 OAuth 客户端密钥,请妥善保护这些文件与变量。项目处于 alpha 阶段,接口路径与基础 URL 均为未经核实的推测,生产使用前应依据门户下发的 OpenAPI 规范核对。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Bradesco,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@codespar/mcp-bradesco

MCP server for Bradesco — Brazil's 2nd largest private bank (after Itaú).

Together with @codespar/mcp-itau, @codespar/mcp-banco-inter, and @codespar/mcp-stark-bank, this covers the major BR private-bank API landscape. Merchants with meaningful Pix, boleto, and cash-management volume integrate directly with Bradesco instead of going through a PSP.

Status: alpha (0.1.0-alpha.1)

Bradesco's Developer Portal is contract-gated — the full OpenAPI specs for Pix, Cobrança, Arrecadação, and Extrato are only visible to onboarded merchants. The endpoint paths in this server are best-guesses based on (a) BACEN Pix v2 standard paths, (b) Bradesco's public integration guides, and (c) conventions shared across Itaú / Santander / BB. Every unverified path is flagged TODO(verify) in the source.

Pin to exact versions during 0.1.x; paths will be corrected to match the portal spec once an onboarded merchant can validate.

Tools (22)

ToolPurpose
get_oauth_tokenMint or return a cached OAuth2 client_credentials bearer token for the Bradesco Developer Portal.
send_pixInitiate an outbound Pix payment from the merchant's Bradesco account.
create_pix_qrCreate a dynamic Pix charge with QR code (cob).
get_pixRetrieve a Pix transaction by its BCB endToEndId (E).
resolve_dict_keyResolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix.
refund_pixRefund (devolução) a previously received Pix.
create_boletoIssue a boleto via Bradesco Cobrança.
get_boletoRetrieve a boleto by its Bradesco identifier (id or nosso_numero).
cancel_boletoCancel (baixa) an outstanding boleto before payment.
get_statementRetrieve account statement transactions for a given period.
arrecadacao_payPay a utility, tax, or concessionária bill via Bradesco Arrecadação.
list_pix_receivedList Pix transactions received by the merchant during a period.
create_pix_due_chargeCreate a Pix charge with a due date (cobv) — commonly used for installments and scheduled invoices.
get_pix_due_chargeRetrieve a Pix due charge (cobv) by txid.
update_pix_due_chargePatch a Pix due charge (cobv) — revise amount, due date, discount, or debtor before payment.
register_dict_keyRegister a DICT key (CPF, CNPJ, email, phone, or EVP) pointing to a merchant account at Bradesco.
delete_dict_keyDelete (unlink) a DICT key that points to a merchant account at Bradesco.
list_boletosList boletos issued by the merchant filtered by status and issue/due period.
get_boleto_pdfDownload the boleto PDF as base64.
get_account_balanceRetrieve the current available balance (saldo disponível) for a merchant account.
transfer_tedExecute a TED (or TEF when intra-Bradesco) transfer from the merchant's account to a beneficiary bank account.
pay_tax_darfPay a federal tax (DARF) or union fee (GRU) via Bradesco Arrecadação.

Install

bash
npm install @codespar/[email protected]

Environment

bash
BRADESCO_CLIENT_ID="..."       # OAuth client_id from Bradesco's Developer PortalBRADESCO_CLIENT_SECRET="..."   # OAuth client_secretBRADESCO_CERT_PATH="/abs/path/to/client.crt"   # mTLS client certificateBRADESCO_KEY_PATH="/abs/path/to/client.key"    # mTLS private keyBRADESCO_ENV="sandbox"                          # or "production" (default: sandbox)

Authentication

Two factors are both required on every call:

  1. OAuth2 client_credentials — the server calls the token endpoint, caches the bearer until ~60s before expiry, and attaches Authorization: Bearer <token> to downstream calls.
  2. mTLS — BACEN mandates mutual TLS for Pix v2, and Bradesco enforces it across product families. The server loads the client certificate and private key from the paths you set, builds a Node https.Agent, and routes every request through it.

You obtain the cert + key bundle from the Bradesco Developer Portal after your merchant contract is signed. They are distinct from the OAuth credentials.

Base URLs

  • Production: https://proxy.api.prebanco.com.br (Bradesco's standard external proxy)
  • Sandbox: https://apihom-bradescorip.bradesco.com.br (homologação)

Both hosts are marked TODO(verify) — Bradesco provisions per-merchant subdomains in some product families and the exact homologação host may differ. Fork and override BASE_URL if your portal provisioning differs.

Run

bash
# stdio (default)npx @codespar/mcp-bradesco
# HTTP transportMCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-bradesco

Caveats

  • Paths are unverified. See the TODO(verify) markers in src/index.ts. Onboarded merchants should validate against their portal-issued OpenAPI spec and open a PR.
  • Base URLs are best-guess. See above — override if your provisioning differs.
  • Arrecadação barcode validation is server-side in this alpha — no client-side mod-10 / mod-11 check yet.

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

来源:packages/banking/bradesco/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0-alpha.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分