Mcp Santander

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.0-alpha.3更新於 Oct 24, 2026

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

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

桑坦德巴西銀行的 alpha 版 MCP 伺服器:透過 OAuth2 加 mTLS 辦理 Pix、boleto、繳費、對帳單與轉帳。

可以做什麼
  • 取得並快取桑坦德閘道的 OAuth2 權杖
  • 發起 Pix 付款、建立 Pix 收款與 QR code、依 endToEndId 查詢交易、解析 DICT 鍵、退款 Pix、註冊或刪除 DICT 鍵
  • 開立、查詢、取消 boleto 並下載 PDF,建立含到期日的 Pix 收款
  • 查詢帳戶對帳單與餘額
  • 發起 TED 轉帳、在桑坦德帳戶間轉帳、繳納公用事業與稅費帳單,並建立 Open Finance 授權
適用情境
適合已與桑坦德巴西簽訂商戶合約、希望讓助理直接處理 Pix、boleto 與現金管理業務而不經 PSP 的商戶。由於仍是早期 alpha,建議先在沙箱環境試用。
執行需求
以 npm 套件形式在本機執行(需 Node.js),預設為 stdio,設定 MCP_HTTP 與 MCP_PORT 後可改用 HTTP。需要桑坦德開發者入口網站的合約、SANTANDER_CLIENT_ID、SANTANDER_CLIENT_SECRET,以及透過 SANTANDER_CERT_PATH 與 SANTANDER_KEY_PATH 指定的 mTLS 憑證與私鑰,還有 SANTANDER_ENV(預設 sandbox)。需能連線至桑坦德的 trust-open 或 trust-sandbox 閘道。
安裝前請注意
多個工具會動用真實資金:send_pix、send_ted、transfer_internal、refund_pix 與 arrecadacao_pay 會發起付款,boleto 與 DICT 操作會寫入資料。需要私鑰檔案(SANTANDER_KEY_PATH)與用戶端密鑰,兩者都不要寫入日誌或版本庫。將 SANTANDER_ENV 設為 production 會指向真實帳戶。此 alpha 中 Pix、Arrecadação 與 Extrato 的路徑為未經驗證的推測,boleto 取消語意也可能不同。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Santander,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@codespar/mcp-santander

MCP server for Santander Brasil — 3rd largest private bank in Brazil.

Completes the top-3 BR private-bank trio: Itaú + Bradesco + Santander. Same OAuth2 + mTLS shape as its peers; different merchant contract.

Merchants with meaningful Pix, boleto, and cash-management volume integrate directly with Santander instead of going through a PSP.

Status: alpha (0.1.0-alpha.1)

Santander'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 following pieces are verified against Santander's public integration guides:

  • Production host: https://trust-open.api.santander.com.br
  • Sandbox host: https://trust-sandbox.api.santander.com.br
  • OAuth2 token: /auth/oauth/v2/token
  • Cobrança v2 base: /collection_bill_management/v2/workspaces/{workspace_id}/bank_slips

Remaining paths (Pix, Arrecadação, Extrato) are best-guesses based on (a) BACEN Pix v2 standard paths, (b) Santander public marketing, and (c) conventions shared across Itaú / Bradesco / 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 (23)

ToolPurpose
get_oauth_tokenMint or return a cached OAuth2 client_credentials bearer token for the Santander Developer Portal.
send_pixInitiate an outbound Pix payment from the merchant's Santander 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 Santander Cobrança (collection_bill_management v2).
get_boletoRetrieve a boleto by its Santander bill_id (SONDA query via collection_bill_management v2).
cancel_boletoCancel (baixa) an outstanding boleto before payment.
get_statementRetrieve account statement transactions for a given period.
create_pix_cobvCreate a Pix charge with due date (cobv — cobrança com vencimento).
get_pix_cobRetrieve a Pix immediate charge (cob) by its txid.
list_pix_cobList Pix immediate charges (cob) created in a given period.
update_pix_cobUpdate (PATCH) an existing Pix immediate charge.
list_pix_receivedList received Pix (Pix recebidos) in a given period.
register_dict_keyRegister a new DICT key for one of the merchant's Santander accounts.
delete_dict_keyRemove (unregister) a DICT key previously registered for the merchant.
download_boleto_pdfFetch the PDF (second copy / segunda via) of a registered boleto.
get_account_balanceGet current available and blocked balance for a Santander merchant account.
send_tedInitiate a TED transfer from a Santander merchant account to an account at another bank.
transfer_internalTransfer between two Santander accounts (TEF / mesma instituição).
create_openfinance_consentCreate an Open Finance consent (BACEN-regulated) for data access or payment initiation against a third-part...
arrecadacao_payPay a utility, tax, or concessionária bill via Santander Arrecadação / Pagamento de Contas.

Install

bash
npm install @codespar/[email protected]

Environment

bash
SANTANDER_CLIENT_ID="..."       # OAuth client_id from Santander's Developer PortalSANTANDER_CLIENT_SECRET="..."   # OAuth client_secretSANTANDER_CERT_PATH="/abs/path/to/client.crt"   # mTLS client certificateSANTANDER_KEY_PATH="/abs/path/to/client.key"    # mTLS private keySANTANDER_ENV="sandbox"                         # or "production" (default: sandbox)

Authentication

Two factors are both required on every call:

  1. OAuth2 client_credentials — the server POSTs to /auth/oauth/v2/token on the trust-open (or trust-sandbox) gateway, 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 Santander's trust-open gateway 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 Santander Developer Portal after your merchant contract is signed. They are distinct from the OAuth credentials.

Cobrança: workspace model

Santander's Cobrança v2 is workspace-scoped. Before registering boletos you provision one or more workspace_ids via the Developer Portal — each binds a convênio, boleto/Pix billing mode, and webhook URL. The create_boleto, get_boleto, and cancel_boleto tools all take a workspace_id argument.

Run

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

Caveats

  • Pix / Arrecadação / Extrato 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.
  • Cobrança cancel is modelled as a PATCH with status: "BAIXADO"; the covenant-specific cancellation semantics may differ.
  • 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/santander/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 分