Skip to main content
MCP server CX Codex

mcp-pix-bcb — MCP server for Pix BCB

An MCP server that lets the agent run Pix BCB operations: charges, refunds, DICT keys and webhooks against your bank's API.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mcp-pix-bcb -e PIX_CLIENT_SECRET=<PIX_CLIENT_SECRET> -- npx -y @codespar/mcp-pix-bcb
Open on GitHub

What mcp-pix-bcb does

Eighteen tools map onto the Pix BCB endpoints. From a chat the agent can open an immediate charge with create_cob, set up a due-date one via create_cobv, pull received payments by e2eid, file a refund through create_devolucao, and point a webhook at a key. The DICT side covers registering a key, looking one up, portability requests and resolving a pending claim.

Auth is OAuth2 client credentials over mTLS, and that is where setup usually stalls. Your PSP issues the client ID and secret and tells you the base URL; a certificate goes into PIX_CERT_PATH. Until those exist the server cannot reach the API. Sandbox access depends on the bank, so ask about a homologation environment before promising a demo.

Key registration needs PSP support for DICT. If your bank does not offer it, those tools are dead weight. The package ships under MIT and runs with npx @codespar/mcp-pix-bcb.

What it helps with

  • create an immediate Pix charge from an agent chat
  • look up a received payment by endToEndId
  • refund a received Pix payment
  • register a Pix key in DICT
  • attach a webhook to a Pix key

Example prompts for the agent

  • Create an immediate Pix charge for 150.00 BRL and show the qrcode
  • Find the payment received with this e2eid yesterday
  • Request a refund on that payment and print the status

How to install mcp-pix-bcb

Platform CLI

claude mcp add mcp-pix-bcb -e PIX_CLIENT_SECRET=<PIX_CLIENT_SECRET> -- npx -y @codespar/mcp-pix-bcb

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-pix-bcb

How do I install mcp-pix-bcb in Claude Code?

Run claude mcp add mcp-pix-bcb -e PIX_CLIENT_SECRET=<PIX_CLIENT_SECRET> -- npx -y @codespar/mcp-pix-bcb with your own secret, then supply the remaining variables in the environment.

What does mcp-pix-bcb do?

It gives the agent Pix BCB tools for charges, payments, refunds, DICT keys and webhooks. Every call goes to your PSP's Pix API.

What is required for the server to work?

OAuth2 client credentials plus an mTLS certificate from your bank, along with its base URL. PIX_BASE_URL, PIX_CLIENT_ID and PIX_CLIENT_SECRET are mandatory; the certificate path goes in PIX_CERT_PATH.

Similar MCP servers

All MCP servers for Backend and APIs →

From the same set124

mcp-rapyd Connects Rapyd to AI coding clients for payments, payouts, refunds, and managed wallets. Useful for global collection, cash pickup, and marketplace balances. CX Codex +1 ★ 274repo stars mcp-quickbooks Wires QuickBooks Online into your agent with 22 tools for customers, invoices, payments, items, bills and a P&L report. Handy when the books sit in QuickBooks and you would rather stay in the terminal. CX Codex +1 ★ 274repo stars mcp-pomelo Connects your agent to Pomelo card issuing API across Latin America. It creates user identities, issues virtual or physical cards, and tracks transactions. CX Codex +1 ★ 274repo stars mcp-pluggy Connect an agent to Pluggy to work with bank connections, accounts, transactions, and payment intents in Open Finance Brasil. Pluggy credentials are required. CX Codex +1 ★ 274repo stars mcp-picpay Connects AI agents to the PicPay Business API. It handles Pix QR generation, checkout orders, recurring subscriptions, and merchant fund transfers. CX Codex +1 ★ 274repo stars mcp-persona Connect Claude Code to Persona to manage identity checks, accounts, reports, and investigations. Useful when verification flows are built from Persona templates. CX Codex +1 ★ 274repo stars mcp-payway Gives an AI agent access to the Payway gateway: tokenize a card, charge it, capture or refund. Built for teams wiring payments into an Argentine merchant setup. CX Codex +1 ★ 274repo stars mcp-paypal MCP server connecting AI assistants to the PayPal REST API. Handles order checkout, recurring subscriptions, batch payouts, and customer dispute resolution. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor