
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 分