Skip to main content
PB

Pix BCB

@codespar/mcp-pix-bcb Β· v0.2.2

πŸ‡§πŸ‡· BrazilBankingAuth Β· OAuth2live18 tools4 env vars

Official Pix API from Banco Central do Brasil. Instant transfers, QR codes, DICT key lookup, and devolution flows.

Get started Β· freeView docs

MIT Β· runs locally with your own credentials

Limitations

  • The package manifest does not declare 3 of the 4 variables the code reads.
Package
@codespar/mcp-pix-bcb
Version
0.2.2
npm dist-tag
latest
Category
Banking
Auth
OAuth2
Country
πŸ‡§πŸ‡· Brazil
License
MIT
Transport
stdio Β· streamable-http

Quickstart

Install, set the credentials, make the first call.

Pick your client. The server runs locally over stdio, with your own credentials.

Add the server to your clientOne config entry. No build step, no SDK required.
Set the environment variables4 variables read by this server's code, listed below.
Restart and make the first callThe agent can call any of the 18 tools. Try create_cob first.
terminal
# Claude Code claude mcp add pix-bcb -e PIX_BASE_URL=… -e PIX_CERT_PATH=… -e PIX_CLIENT_ID=… -e PIX_CLIENT_SECRET=… -- npx -y @codespar/mcp-pix-bcb@0.2.2 # then: /mcp to confirm the server is connected
Environment variables4 variables
PIX_BASE_URLRead by the code; the package manifest does not declare it.
PIX_CERT_PATHRead by the code; the package manifest does not declare it.
PIX_CLIENT_IDRead by the code; the package manifest does not declare it.
PIX_CLIENT_SECRETAPI key for pix-bcbrequiredsecret

Names read from the package code (@codespar/mcp-pix-bcb@0.2.2). Descriptions and flags come from its manifest. Self-hosted, you hold the credentials.

First call democreate_cob

"Create an immediate Pix charge"

tools/callcreate_cobresult returned

Tools

What your agent can call.

18 tools, as the package's tools/list returns them.

create_cob

Create an immediate Pix charge (cobranca imediata)

get_cob

Get immediate charge details by txid

list_cobs

List immediate charges with date range and filters

update_cob

Revise an existing immediate charge (PATCH /cob/{txid}). Common updates: status REMOVIDA_PELO_USUARIO_RECEBEDOR to cancel, or change valor/solicitacaoPagador.

create_cobv

Create a due-date Pix charge (cobranca com vencimento)

list_cobv

List due-date charges (cobv) within a date range

update_cobv

Revise an existing due-date charge (PATCH /cobv/{txid})

get_pix

Get a received Pix payment by e2eid (endToEndId)

list_pix_received

List received Pix payments within a date range

create_devolucao

Request a refund (devoluΓ§Γ£o) for a received Pix (PUT /pix/{e2eid}/devolucao/{id})

get_devolucao

Get refund details by e2eid + refund id (GET /pix/{e2eid}/devolucao/{id})

create_pix_key

Register a Pix key in DICT (requires PSP support)

Names and descriptions come from the package's tools/list (@codespar/mcp-pix-bcb@0.2.2). A kind (read, write, delete) is shown only when the package annotates its tools or each tool was verified one by one; neither exists for this server yet.

Compatibility

MCP is a protocol. Any client that speaks it can mount this server.

The CodeSpar runtime does not route this server. Mount it in your client over stdio Β· streamable-http.

Protocol

Any MCP client

stdio Β· streamable-http

Questions

Before you install.

How do I install the Pix BCB MCP server?

Run npx -y @codespar/mcp-pix-bcb@0.2.2 and add the config block above to your MCP client: Claude Code, Cursor, Claude Desktop, VS Code, or any MCP-compatible client. No build step, no SDK required.

What can my agent do with Pix BCB?

Pix BCB exposes 18 tools for banking. Your agent calls them directly; the full list is above.

How does Pix BCB authenticate, and how are credentials stored?

Pix BCB uses OAuth2. Self-hosted, you hold the credentials: the server reads them from its environment variables.

How does Pix BCB handle upstream API changes?

Every server is versioned independently on npm. The command on this page pins 0.2.2, the version whose tools are listed here; your agent keeps running it until you change the version.

Is Pix BCB open source? How do I report a bug?

Yes. Pix BCB is MIT-licensed and published on npm as @codespar/mcp-pix-bcb, source on GitHub (link in the Details panel). Report issues on the package repository; security issues go to security@codespar.dev, and we respond within 24 hours.

Start in seconds.

Add the config above, set the variables, and your agent calls the tools.

Start in seconds demo
Add the server to your client with the config above.
Set the environment variables listed above.
Ask your agent for the first call.
Pix BCB β€” MCP server Β· 18 tools | CodeSpar