Full payment stack: orders, Pix, boleto, and credit card. Your agent creates charges and manages the complete payment lifecycle.
PagSeguro gives your agent 24 tools it calls directly β pick the ones it needs, in Claude, Cursor, or any MCP client.
create_order β Create an order in PagSeguro (Pix, boleto, or credit card)get_order β Get order details by IDlist_orders β List orders with optional filters// Your agent calls a tool directly β no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_order", { /* ... */ });$ npm install @codespar/mcp-pagseguroAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"pagseguro": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-pagseguro"
],
"env": {
"PAGSEGURO_TOKEN": "<your_pagseguro_token>"
}
}
}
}After restart, your agent can call any of the 24 tools below β try create_order first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
PAGSEGURO_TOKENAPI key for pagseguro
Each tool is independent β your agent loads only what it needs to reduce context and response time.
create_orderget_orderlist_orderscreate_chargerefundget_pix_qrcodecreate_customerget_balanceMCP is a protocol β any framework that speaks it can mount this server.