Mcp Pagar Me

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Oct 24, 2026

MCP server for Pagar.me — orders, charges, recipients, transfers, plans, subscriptions, webhooks

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

面向 Pagar.me 支付的在地 MCP 伺服器,讓助理建立與查詢訂單、收款、收款方、轉帳、訂閱方案、訂閱與 Webhook。

可以做什麼
建立、查詢與列出訂單和收款,支援 Pix、boleto 與信用卡收款,並可捕獲預授權收款及全額或部分退款。建立與列出用於分帳的收款方,查詢帳戶餘額,建立轉帳與提領,申請或查看應收帳款提前結算及其額度。建立、更新與取消訂閱方案及週期性訂閱。將信用卡令牌化,並註冊接收事件通知的 Webhook 端點。
適用情境
適合讓助理直接操作 Pagar.me 帳戶的情境:草擬或建立訂單、發起與退款收款、管理分帳收款方與出款、處理訂閱,或設定 Webhook。評估階段建議使用測試模式。
執行需求
透過 npx 從 npm 套件 @codespar/mcp-pagar-me 在地執行,需在 Claude Desktop、Claude Code、Cursor 或 VS Code 等桌面 MCP 用戶端中設定。需要 Pagar.me 帳戶與 PAGARME_API_KEY 金鑰;僅信用卡令牌化需要 PAGARME_PUBLIC_KEY。需要連線至 Pagar.me API 的網路存取。
安裝前請注意
此伺服器可操作真實資金:收款、轉帳、提領、退款與提前結算請求都會作用於真實帳戶,驗證前請使用測試模式金鑰(sk_test_xxx)。它涉及金鑰與信用卡令牌化,應將 PAGARME_API_KEY 與 PAGARME_PUBLIC_KEY 視為敏感資訊。多個工具會建立、修改或取消資料(訂單、方案、訂閱、Webhook)。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Pagar Me,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@codespar/mcp-pagar-me

MCP server for Pagar.me — Stone ecosystem payments with orders, charges, and split payments

[npm] [License: MIT]

Quick Start

Claude Desktop

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

json
{  "mcpServers": {    "pagar-me": {      "command": "npx",      "args": ["-y", "@codespar/mcp-pagar-me"],      "env": {        "PAGARME_API_KEY": "sk_your-key"      }    }  }}

Claude Code

bash
claude mcp add pagar-me -- npx @codespar/mcp-pagar-me

Cursor / VS Code

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

json
{  "servers": {    "pagar-me": {      "command": "npx",      "args": ["-y", "@codespar/mcp-pagar-me"],      "env": {        "PAGARME_API_KEY": "sk_your-key"      }    }  }}

Tools (22)

ToolPurpose
create_orderCreate an order in Pagar.me with items and payment
get_orderGet order details by ID
list_ordersList orders with optional filters
create_chargeCreate a charge (Pix, boleto, or credit card)
get_chargeGet charge details by ID
create_recipientCreate a recipient for split payments
get_balanceGet current account balance
create_transferCreate a transfer to a recipient
refundRefund a charge (full or partial)
list_recipientsList recipients with optional filters
create_anticipationRequest anticipation of receivables for a recipient (antecipação)
get_anticipationGet anticipation details by ID
get_anticipation_limitsGet anticipation limits available for a recipient
create_planCreate a subscription plan
update_planUpdate an existing subscription plan
create_subscriptionCreate a recurring subscription for a customer
cancel_subscriptionCancel a recurring subscription
create_card_tokenTokenize a credit card (PCI-safe).
create_withdrawalCreate a withdrawal (saque) transferring recipient balance to their registered bank account
register_webhookRegister a webhook endpoint to receive event notifications
capture_chargeCapture a pre-authorized charge (auth-then-capture flow).
partial_refundRefund a portion of a charge (explicit partial refund;

Authentication

Pagar.me uses Basic Auth with the secret key (sk_xxx) as username and empty password.

Sandbox / Testing

Pagar.me provides test mode via the dashboard. Use a test-mode API key to avoid real charges.

Get your credentials

  1. Go to Pagar.me Dashboard
  2. Create an account
  3. Get your secret key (sk_test_xxx for test mode)
  4. Set the PAGARME_API_KEY environment variable

Environment Variables

VariableRequiredDescription
PAGARME_API_KEYYesSecret key (sk_xxx) from Pagar.me dashboard
PAGARME_PUBLIC_KEYNoPublic key (pk_xxx) for create_card_token only

Roadmap

v0.3 (planned)

  • list_charges — List charges with filters
  • list_subscriptions — List subscriptions
  • list_plans — List plans
  • batch_charges — Create multiple charges in a single request
  • list_webhooks / delete_webhook — Full webhook management

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/pagar-me/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 分