
Mcp Caixa
io.github.codespar由 GitHub 帳號 codespar 發布v0.2.0-alpha.3更新於 Oct 24, 2026
MCP server for Caixa Econômica Federal — Pix, Cobrança (SICOB boleto), Extrato (OAuth2 + mTLS)
概覽
本機 MCP 伺服器,讓助理操作 Caixa Econômica Federal 商戶帳戶:Pix、boleto(SICOB)、對帳單、餘額、TED 與稅費繳納。
- 可以做什麼
- 取得並快取 Caixa 開發者入口的 OAuth2 bearer 權杖,解析、註冊或刪除 DICT 金鑰,並依 endToEndId 或 txid 查詢 Pix 交易。發起 Pix 付款、建立動態 Pix 二維碼收款,建立、更新、列出與查詢即時 Pix 及到期 Pix 收款,列出已收 Pix 並退款。透過 Caixa Cobrança(SICOB)開立、查詢、取消 boleto 並下載其 PDF。讀取帳戶對帳單與餘額,發起 TED 轉帳或繳納聯邦稅費(DARF、GPS、GRU)。查詢 FGTS 餘額與對帳單。
- 適用情境
- 適合已持有 Caixa 商戶合約的商戶或開發者,希望由助理處理 Pix、boleto 與對帳單作業,尤其是客戶領取聯邦轉帳或業務需要國有銀行的情況。目前為 alpha 版本,較適合評估與沙箱測試,而非無人值守的正式環境使用。
- 執行需求
- 以 npm 套件形式在本機執行(需 Node.js),預設 stdio,可選 HTTP 傳輸。需要 Caixa 開發者入口的 OAuth client_id 與 client_secret、在合約與 credenciamento 核准後取得的 mTLS 用戶端憑證和私鑰,以及環境變數 CAIXA_CLIENT_ID、CAIXA_CLIENT_SECRET、CAIXA_CERT_PATH、CAIXA_KEY_PATH;CAIXA_ENV 選擇 sandbox(預設)或 production。僅限桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Caixa,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@codespar/mcp-caixa
MCP server for Caixa Econômica Federal — Brazil's largest state-owned bank.
Caixa occupies a segment none of the private tier-1 banks (Itaú, Bradesco, Santander, BB) can cover: it runs federal social programs (PIS/PASEP, FGTS, Bolsa Família / Auxílio Brasil), operates the national lottery (Loterias Caixa), and is the preferred bank for merchants that value state-bank credibility or serve beneficiaries of federal transfer programs. For the payment surface that matters to merchants — Pix, boleto (Cobrança / SICOB), and extrato — Caixa follows the BACEN Pix v2 standard shared across every tier-1 bank, so the integration shape mirrors its private-sector peers.
Status: alpha (0.1.0-alpha.1)
Caixa's Developer Portal is contract-gated, and as a state-owned institution the onboarding is additionally bureaucratic: vendor registration and credenciamento are required on top of the commercial merchant contract. Full OpenAPI specs for Pix, Cobrança (SICOB), 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) Caixa's public SICOB / Cobrança integration guides, and (c) conventions shared with 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)
Why Caixa (vs. a private bank)
- Social-program beneficiaries. If a meaningful slice of your customer base receives federal transfers, Caixa is where the money lands first.
- State-bank credibility. Government-adjacent merchants, concessionárias, and regulated verticals often prefer — or are required — to hold accounts at a state-owned bank.
- Lottery / Loterias Caixa corridor. Retailers in the lotérica network settle through Caixa.
- Same Pix / boleto rails as the private banks. No technical tradeoff — the BACEN Pix v2 standard is identical.
Install
Environment
Authentication
Two factors are both required on every call:
- OAuth2
client_credentials— the server calls the token endpoint, caches the bearer until ~60s before expiry, and attachesAuthorization: Bearer <token>to downstream calls. - mTLS — BACEN mandates mutual TLS for Pix v2, and Caixa 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 Caixa Developer Portal after your merchant contract and credenciamento are approved. They are distinct from the OAuth credentials.
Run
Caveats
- Paths are unverified. See the
TODO(verify)markers insrc/index.ts. Onboarded merchants should validate against their portal-issued OpenAPI spec and open a PR. - Sandbox host is a guess. Caixa issues a homologação subdomain per merchant; override by editing
BASE_URLif your provisioned sandbox URL differs. - SICOB legacy. Older boleto contracts may still route through the legacy SIGCB surface. The
create_boleto/get_boleto/cancel_boletotools target Cobrança v2; if your contract predates it, paths will differ. - Onboarding timeline. Factor weeks, not days. State-owned vendor registration is the critical path — start it before you start coding.
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/caixa/README.md,提交 d0a519a
工具
0版本歷史
1- v0.2.0-alpha.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分