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 收款 QR 碼與含到期日的 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 分