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)

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

概览

AI 生成的概览

本地 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。仅限桌面端。
安装前请注意
它会动用真实资金:send_pix、transfer_ted、pay_tribute 和 refund_pix 会发起对外付款,boleto 与收款工具会创建、修改或取消记录。需要机密 CAIXA_CLIENT_SECRET 和 CAIXA_KEY_PATH(mTLS 私钥)以及证书路径,请勿写入日志或共享配置。接口路径为未经验证的推测,沙箱主机也是推测,上线前须按门户规范核对。开户流程需数周。

安装

在 SourceWeft 中

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

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)

ToolPurpose
get_oauth_tokenMint or return a cached OAuth2 client_credentials bearer token for the Caixa Developer Portal.
send_pixInitiate an outbound Pix payment from the merchant's Caixa 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 Caixa Cobrança (SICOB).
get_boletoRetrieve a boleto by its Caixa identifier (id or nosso_numero).
cancel_boletoCancel (baixa) an outstanding boleto before payment.
get_statementRetrieve account statement transactions for a given period.
get_pix_chargeRetrieve a Pix immediate charge (cob) by its BCB txid.
update_pix_chargeUpdate (PATCH) a Pix immediate charge (cob) — e.g.
list_pix_chargesList Pix immediate charges (cob) filtered by date range and optional status / CPF / CNPJ.
create_pix_due_chargeCreate a Pix due-date charge (cobv) with mandatory payer data and due date.
get_pix_due_chargeRetrieve a Pix due-date charge (cobv) by its BCB txid.
list_pix_receivedList received Pix transactions (pix recebidos) by date range.
register_dict_keyRegister a DICT key (CPF, CNPJ, email, phone, or EVP) to an account owned by the merchant.
delete_dict_keyDelete (unregister) a DICT key owned by the merchant.
download_boleto_pdfFetch the rendered boleto PDF for an issued boleto.
get_account_balanceReturn the current balance for a Caixa merchant account, including available, blocked, and overdraft limit...
transfer_tedInitiate an outbound TED transfer from a Caixa merchant account to an external bank account.
consult_fgtsQuery FGTS balance / extrato.
pay_tributePay a federal tribute (DARF, GPS, GRU) or other guia de arrecadação via Caixa.

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

bash
npm install @codespar/[email protected]

Environment

bash
CAIXA_CLIENT_ID="..."       # OAuth client_id from Caixa's Developer PortalCAIXA_CLIENT_SECRET="..."   # OAuth client_secretCAIXA_CERT_PATH="/abs/path/to/client.crt"   # mTLS client certificateCAIXA_KEY_PATH="/abs/path/to/client.key"    # mTLS private keyCAIXA_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 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

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

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.
  • Sandbox host is a guess. Caixa issues a homologação subdomain per merchant; override by editing BASE_URL if your provisioned sandbox URL differs.
  • SICOB legacy. Older boleto contracts may still route through the legacy SIGCB surface. The create_boleto / get_boleto / cancel_boleto tools 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
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 分