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 QR code 與 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 分