
Mcp Caixa
io.github.codesparPublished by GitHub account codesparv0.2.0-alpha.3Updated Oct 24, 2026
MCP server for Caixa Econômica Federal — Pix, Cobrança (SICOB boleto), Extrato (OAuth2 + mTLS)
Overview
Local MCP server that lets an assistant operate a Caixa Econômica Federal merchant account: Pix, boleto (SICOB), statements, balances, TED and tributes.
- What you can do
- Mint and cache an OAuth2 bearer token for the Caixa Developer Portal, and resolve, register or delete DICT keys and look up Pix transactions by endToEndId or txid. Send Pix, create dynamic Pix QR charges, create, update, list and fetch immediate and due-date Pix charges, list received Pix and refund a received Pix. Issue, fetch, cancel and download the PDF of boletos through Caixa Cobrança (SICOB). Read account statements and balances, and initiate TED transfers or pay federal tributes (DARF, GPS, GRU). Query FGTS balance and statement.
- When to use it
- For merchants or developers who hold a Caixa merchant contract and want an assistant to handle Pix, boleto and statement operations, especially where customers receive federal transfers or the business needs a state-owned bank. It is alpha software, so it suits evaluation and sandbox testing rather than unattended production use.
- Requirements
- Runs locally as an npm package (Node.js) over stdio, with an optional HTTP transport. Needs a Caixa Developer Portal OAuth client_id and client_secret, an mTLS client certificate and private key obtained after contract and credenciamento approval, and the environment variables CAIXA_CLIENT_ID, CAIXA_CLIENT_SECRET, CAIXA_CERT_PATH and CAIXA_KEY_PATH; CAIXA_ENV selects sandbox (default) or production. Desktop only.
Installation
In SourceWeft
- Open Mcp Caixa in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: packages/banking/caixa/README.md at commit d0a519a
Tools
0Version history
1- v0.2.0-alpha.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts