跳到正文
FunCoding

mcp-pix-bcb

官方 MCP Registry 已收录

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

Star
278
分类
金融
版本
v0.2.2
许可证
MIT
最近提交
2026年11月13日

@codespar/mcp-pix-bcb

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

npm License: MIT

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)

ToolPurpose
create_cobCreate an immediate Pix charge (cobranca imediata)
get_cobGet immediate charge details by txid
list_cobsList immediate charges with date range and filters
update_cobRevise an existing immediate charge (PATCH /cob/{txid}).
create_cobvCreate a due-date Pix charge (cobranca com vencimento)
list_cobvList due-date charges (cobv) within a date range
update_cobvRevise an existing due-date charge (PATCH /cobv/{txid})
get_pixGet a received Pix payment by e2eid (endToEndId)
list_pix_receivedList received Pix payments within a date range
create_devolucaoRequest a refund (devolução) for a received Pix (PUT /pix/{e2eid}/devolucao/{id})
get_devolucaoGet refund details by e2eid + refund id (GET /pix/{e2eid}/devolucao/{id})
create_pix_keyRegister a Pix key in DICT (requires PSP support)
get_pix_keyLook up a Pix key in DICT
list_pix_keysList all Pix keys owned by the authenticated account at this PSP
request_key_portabilityRequest portability of a Pix key from another PSP into this PSP (DICT portability flow)
resolve_key_claimResolve a pending DICT key claim (confirm or cancel) — POST /dict/keys/claims/{id}/resolve
set_webhookConfigure a webhook URL for a given Pix key (PUT /webhook/{chave}).
delete_webhookRemove 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

VariableRequiredDescription
PIX_BASE_URLYesPSP API base URL (e.g., https://pix.example.com/api/v2)
PIX_CLIENT_IDYesOAuth2 client ID
PIX_CLIENT_SECRETYesOAuth2 client secret
PIX_CERT_PATHNoPath 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.

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

同类 MCP Server

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 108 tools.

KOkoala73/worldmonitor91k近 7 天新增 216 个 star

精选

CCXT

连接 100+ 交易所和预测市场,获取行情数据,管理订单和账户。

CCccxt/ccxt45k近 7 天新增 68 个 star

changedetection.io (official)

Official changedetection.io MCP: web page change tracking, back-in-stock and price alerts.

DGdgtlmoon/changedetection.io36k近 7 天新增 138 个 star

Finance Database

Equities, ETFs, indices, currencies and cryptos, categorised.

JEJerBouma/FinanceDatabase9.7k近 7 天新增 25 个 star

tradingview-mcp

AI-assisted TradingView chart analysis — connect Claude Code to your TradingView Desktop for personal workflow automation

TRtradesdontlie/tradingview-mcp7.4k近 7 天新增 66 个 star

Finance Toolkit

1100+ transparent financial methods calculated from raw statements, not third-party endpoints.

JEJerBouma/FinanceToolkit5.6k近 7 天新增 13 个 star