npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@codespar/mcp-pix-bcb

v0.2.1

Published

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

Readme

@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)

| 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