Skip to main content
MCP server CX Codex

mcp-pagseguro — Claude Code MCP server: what it does, install

Connects an agent to PagSeguro/PagBank for orders, charges, refunds, Pix, boleto, and card payments. It fits payment tasks inside a coding workspace.

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

What mcp-pagseguro does

mcp-pagseguro exposes 24 PagSeguro/PagBank tools to an AI coding client. The server can create and inspect orders and charges, read account balance, issue full or partial refunds, retrieve Pix QR data, and handle boleto payments. It also includes tools for subscriptions, payouts, disputes, splits, and webhooks.

It runs through npx and reads the Bearer credential from PAGSEGURO_TOKEN. Set PAGSEGURO_SANDBOX=true when requests should use sandbox.api.pagseguro.com. Create the token in the PagBank developer portal. Authentication will fail without PAGSEGURO_TOKEN.

The package supports Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and the other listed clients. Claude Code adds it with claude mcp add.

What it helps with

  • create an order paid by Pix, boleto, or card
  • look up an order or charge by ID
  • issue a full or partial refund
  • retrieve a Pix QR code for a charge
  • register a webhook for payment events

Example prompts for the agent

  • Create a PagSeguro order with Pix payment and return its review details.
  • Find the charge by its ID and prepare a full refund.
  • Get the Pix QR payload and image for this order’s charge.

How to install mcp-pagseguro

Platform CLI

claude mcp add mcp-pagseguro -e PAGSEGURO_TOKEN=<PAGSEGURO_TOKEN> -- npx -y @codespar/mcp-pagseguro

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-pagseguro

How do I install mcp-pagseguro in Claude Code?

Run claude mcp add mcp-pagseguro -e PAGSEGURO_TOKEN=<PAGSEGURO_TOKEN> -- npx -y @codespar/mcp-pagseguro.

What does mcp-pagseguro do?

This MCP server connects an agent to PagSeguro/PagBank. Its tools cover orders, charges, Pix, boleto, card payments, refunds, subscriptions, and webhooks.

What does mcp-pagseguro need to run?

Set a PagBank Bearer token in PAGSEGURO_TOKEN. Add PAGSEGURO_SANDBOX=true to use the sandbox environment.

Similar MCP servers

All MCP servers for Backend and APIs →

From the same set124

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 mcp-pagbrasil Wires three PagBrasil tools into your agent: create an order, check its status, issue a refund. Useful when your store sells into Brazil and takes Pix or boleto. CX Codex +1 ★ 274repo stars mcp-pagar-me Connects AI agents to the Pagar.me payment platform to issue Pix charges, handle split payouts, and manage billing. CX Codex +1 ★ 274repo stars mcp-openpay Connects an AI coding agent to Openpay for charges, customers, subscriptions, MXN payouts, and webhooks. Built for the Mexican gateway. CX Codex +1 ★ 274repo stars mcp-open-finance Connects a coding agent to Open Finance Brasil: accounts, transactions, consents, cards, loans and investments. Useful when your code talks to Brazilian banking APIs. 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