Mcp Pagseguro

io.github.codespar由 GitHub 账号 codespar 发布v0.2.2更新于 Oct 24, 2026

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

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向 PagSeguro/PagBank 的本地 MCP 服务器,让助手创建和管理订单、收款、Pix、boleto 与信用卡支付。

可以做什么
创建、查询、列出并支付订单,包括 Pix 二维码和 boleto 收款,并读取账户余额与支付通知。创建、查询、列出、捕获、取消和退款收款。创建客户与定期订阅计划,并列出订阅。创建分账配置以及向银行账户或 Pix 密钥的付款。注册和列出 webhook,并获取用于卡数据加密的公钥。
适用场景
适合需要让助手直接操作 PagSeguro/PagBank 账户的场景:起草或提交订单、发起收款与 Pix 或 boleto 支付、处理退款与订阅,或查看余额与争议。涉及真实资金前应先在沙盒中测试。
运行要求
通过 npx 从 npm 包 @codespar/mcp-pagseguro 在本地运行,需要 Node.js。需要 PagBank 开发者账户,并通过环境变量 PAGSEGURO_TOKEN 提供 Bearer 令牌。将 PAGSEGURO_SANDBOX 设为 true 可使用沙盒端点。需要访问 PagSeguro/PagBank API 的网络连接。
安装前请注意
PAGSEGURO_TOKEN 中的令牌可访问真实支付账户,请勿放入共享配置,测试时优先使用沙盒模式。多个工具会转移资金或修改记录:创建订单与收款、支付订单、捕获收款、退款、向银行账户或 Pix 密钥付款、订阅、分账和 webhook。操作失误可能造成真实资金损失,确认前请核对金额与收款方。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Pagseguro,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

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

Claude Code

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

Cursor / VS Code

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

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

  1. Go to PagBank Developer Portal
  2. Create a developer account
  3. Generate your API token
  4. 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.

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

来源:packages/payments/pagseguro/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分