Pix Bcb

Finance and commerce

MCP server for Pix BCB API, official Banco Central do Brasil Pix standard.

Your AI app calls the Pix Bcb MCP server, which does the finance and commerce work and sends the result back to the chat.

About Pix Bcb

Pix Bcb is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Pix BCB API, official Banco Central do Brasil Pix standard.

Pix Bcb runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-pix-bcb@0.2.2 and talks to it over standard input and output. It needs PIX_CLIENT_SECRET set before Pix Bcb starts.

Pix Bcb is listed in the official MCP registry as io.github.codespar/mcp-pix-bcb, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-pix-bcb
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-pix-bcb

How to set up Pix Bcb

  1. Install Node.js on the machine that runs your AI app, because Pix Bcb starts with npx and downloads its package on first run.
  2. Create PIX_CLIENT_SECRET for Pix Bcb in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Pix Bcb to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Pix Bcb tools to confirm the connection.
  5. Run one read-only task with Pix Bcb first, and keep your app asking before each tool call until the results look right.

Pix Bcb compared with similar servers

  • Pluggy by codespar has fewer GitHub stars than Pix Bcb (278 against 278); both are community servers, and both run locally.
  • Picpay by codespar has fewer GitHub stars than Pix Bcb (278 against 278); both are community servers, and both run locally.
  • Pomelo by codespar has fewer GitHub stars than Pix Bcb (278 against 278); both are community servers, and both run locally.

Before you connect Pix Bcb

  • Give Pix Bcb its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Pix Bcb tool call until you trust what it does with them.
  • Treat text that Pix Bcb fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Pix Bcb on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Pix Bcb

How marketing and sales teams put Pix Bcb to work, by company size. Pick the size closest to yours and start Pix Bcb on one use case.

Small business

  • A small business can ask Pix Bcb which products and customers drive margin, then plan promotions around them.
  • Owners can use Pix Bcb to check refunds, failed payments and churn reasons without opening three dashboards.
  • Pix Bcb runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Pix Bcb to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Pix Bcb to check spend against budget each week and move money to what's working.
  • Start Pix Bcb on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Pix Bcb read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Pix Bcb to answer revenue questions by channel and region with figures finance signs off on.
  • Pix Bcb is a community server, so have security review the code and pin a version before Pix Bcb touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Pix Bcb README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-pix-bcb

MCP server for Pix BCB, official Banco Central do Brasil Pix API

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "pix-bcb": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-pix-bcb"],
      "env": {
        "PIX_BASE_URL": "https://pix.example.com/api/v2",
        "PIX_CLIENT_ID": "your-client-id",
        "PIX_CLIENT_SECRET": "your-client-secret",
        "PIX_CERT_PATH": "/path/to/certificate.pem"
      }
    }
  }
}
Claude Code
claude mcp add pix-bcb -- npx @codespar/mcp-pix-bcb
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "pix-bcb": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-pix-bcb"],
      "env": {
        "PIX_BASE_URL": "https://pix.example.com/api/v2",
        "PIX_CLIENT_ID": "your-client-id",
        "PIX_CLIENT_SECRET": "your-client-secret",
        "PIX_CERT_PATH": "/path/to/certificate.pem"
      }
    }
  }
}

Tools (18)

Tool Purpose
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}).
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)
get_pix_key Look up a Pix key in DICT
list_pix_keys List all Pix keys owned by the authenticated account at this PSP
request_key_portability Request portability of a Pix key from another PSP into this PSP (DICT portability flow)
resolve_key_claim Resolve a pending DICT key claim (confirm or cancel), POST /dict/keys/claims/{id}/resolve
set_webhook Configure a webhook URL for a given Pix key (PUT /webhook/{chave}).
delete_webhook Remove the webhook configured for a Pix key (DELETE /webhook/{chave})

Authentication

The Pix BCB API uses OAuth2 client credentials with mTLS. Each PSP (bank) provides their own base URL and certificate requirements.

Sandbox / Testing

Sandbox availability varies by PSP (payment service provider). Contact your bank for homologation environment access.

Get your credentials
  1. Go to Pix API Documentation (BCB)
  2. Register with your PSP (bank) for API access
  3. Obtain your OAuth2 client credentials and mTLS certificate
  4. Set the environment variables

Environment Variables

Variable Required Description
PIX_BASE_URL Yes PSP API base URL (e.g., https://pix.example.com/api/v2)
PIX_CLIENT_ID Yes OAuth2 client ID
PIX_CLIENT_SECRET Yes OAuth2 client secret
PIX_CERT_PATH No Path to mTLS certificate (.pem or .p12)

Roadmap

v0.2 (planned)
  • create_location, Create a Pix location (payload URL)
  • get_location, Get details of a Pix location
  • list_locations, List all Pix locations
  • create_devolucao, Create a Pix refund (devolucao)
  • get_devolucao, Get Pix refund details
v0.3 (planned)
  • create_cobv_batch, Create a batch of due-date Pix charges (cobv)
  • webhook_management, Register, get, and delete Pix webhooks

Want to contribute? Open a PR or request a tool.

Links

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

Questions about Pix Bcb

What is the Pix Bcb MCP server?

MCP server for Pix BCB API, official Banco Central do Brasil Pix standard. Pix Bcb is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Pix Bcb MCP server?

Add Pix Bcb to your AI app's MCP config with the command npx -y @codespar/mcp-pix-bcb@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-pix-bcb -- npx -y @codespar/mcp-pix-bcb@0.2.2. To run Pix Bcb this way you need Node.js installed.

Does Pix Bcb need an API key?

Yes. Pix Bcb expects PIX_CLIENT_SECRET to be set. Create the key for Pix Bcb in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Pix Bcb an official MCP server?

No. Pix Bcb is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Pix Bcb access to company data.

What license is Pix Bcb under?

Pix Bcb is released under the MIT license, according to its GitHub repository. The license covers the code of Pix Bcb; the service it connects to has its own terms.