🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-pagseguro

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-pagseguro

MCP server for PagSeguro/PagBank — orders, Pix, boleto, credit card, charges

latest
npmnpm
Version
0.2.2
Version published
Maintainers
2
Created
Source

@codespar/mcp-pagseguro

MCP server for PagSeguro/PagBank — orders, charges, Pix, boleto, and credit card payments

npm License: MIT

Quick Start

Claude Desktop

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

{
  "mcpServers": {
    "pagseguro": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-pagseguro"],
      "env": {
        "PAGSEGURO_TOKEN": "your-token",
        "PAGSEGURO_SANDBOX": "true"
      }
    }
  }
}

Claude Code

claude mcp add pagseguro -- npx @codespar/mcp-pagseguro

Cursor / VS Code

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

{
  "servers": {
    "pagseguro": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-pagseguro"],
      "env": {
        "PAGSEGURO_TOKEN": "your-token",
        "PAGSEGURO_SANDBOX": "true"
      }
    }
  }
}

Tools (24)

ToolPurpose
create_orderCreate an order in PagSeguro (Pix, boleto, or credit card)
get_orderGet order details by ID
list_ordersList orders with optional filters
create_chargeCreate a standalone charge
refundRefund a charge (full or partial)
get_pix_qrcodeGet Pix QR code payload and image for an order charge
create_customerCreate a customer in PagSeguro
get_balanceGet account balance
create_subscriptionCreate a recurring subscription plan in PagSeguro
list_subscriptionsList subscriptions with optional filters
get_notificationsGet payment notification details by notification code
create_splitCreate a split payment configuration for marketplace transactions
get_disputeGet dispute/chargeback details by ID
pay_orderPay an existing order (attach a charge/payment to an order in CREATED state)
get_chargeGet charge details by ID
list_chargesList charges with optional filters
capture_chargeCapture a pre-authorized credit card charge
cancel_chargeCancel a charge that has not yet been settled
create_boletoCreate a boleto charge
get_boletoGet boleto charge details by ID
get_public_keysGet PagSeguro public key for card data encryption (type: card)
create_payoutCreate a payout/transfer to a bank account or Pix key
create_webhookRegister an application webhook URL to receive event notifications
list_webhooksList registered application webhooks

Authentication

PagSeguro uses a Bearer token for authentication. Generate your token from the PagBank developer portal.

Sandbox / Testing

PagSeguro provides a sandbox at sandbox.api.pagseguro.com. Set PAGSEGURO_SANDBOX=true to use it.

Get your credentials

  • Go to PagBank Developer Portal
  • Create a developer account
  • Generate your API token
  • Set the PAGSEGURO_TOKEN environment variable

Environment Variables

VariableRequiredDescription
PAGSEGURO_TOKENYesBearer token from PagBank
PAGSEGURO_SANDBOXNoSet to "true" for sandbox mode

Roadmap

v0.2 (planned)

  • create_subscription — Create a recurring subscription
  • list_subscriptions — List all subscriptions with filters
  • get_notifications — Get payment notifications/webhooks
  • create_split — Create split payments between receivers
  • get_dispute — Get dispute/chargeback details

v0.3 (planned)

  • create_plan — Create a subscription plan
  • get_installments — Get installment options for a payment
  • batch_refunds — Process multiple refunds in a single request

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

Keywords

mcp

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts