Mcp Paypal

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

MCP server for PayPal — global payments + payouts: Orders v2, Payments, Subscriptions, Disputes

發布方自己的服務:Paypal

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

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理透過 PayPal REST API 建立、請款、退款與批次撥款,並管理訂閱與爭議。

可以做什麼
  • 建立、查詢、授權並請款 PayPal 訂單,以及請款或作廢授權
  • 對已請款項退款,並查詢付款明細
  • 建立與查詢批次撥款及單筆撥款項目
  • 建立、查詢與取消計費訂閱
  • 列出並查詢爭議,接受爭議索賠
  • 列出應用程式 Webhook 並驗證 Webhook 事件簽章
適用情境
適合已有 PayPal 商家帳戶的商家或市集平台,希望由助理處理結帳、撥款、訂閱與爭議;建議先在 sandbox 環境試用。
執行需求
以 npm 套件形式在本機透過 stdio 執行(npx @codespar/mcp-paypal),僅支援桌面用戶端。需要 PayPal REST 應用程式的 client id 與 secret,分別放在 PAYPAL_CLIENT_ID 和 PAYPAL_CLIENT_SECRET,並以 PAYPAL_ENV 指定 sandbox(預設)或 live。需要連線至 PayPal API 的網路。
安裝前請注意
client secret 具備該 PayPal 應用程式的完整付款權限,切勿寫入日誌或共用設定。多個工具會實際動用資金或改變狀態:請款、退款、作廢授權、批次撥款、取消訂閱、接受爭議索賠。將 PAYPAL_ENV 設為 live 會直接指向正式環境。伺服器會原樣轉送任意 REST 請求內容欄位,請求不受已宣告 schema 限制。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@codespar/mcp-paypal

MCP server for PayPal — global payments and payouts via the PayPal REST API.

Target customer: LatAm SaaS / marketplaces selling globally that already hold a PayPal merchant account and want agent-driven checkout, payouts, subscriptions, and dispute handling.

Tools (19)

ToolPurpose
create_orderCreate a PayPal Order via POST /v2/checkout/orders.
get_orderFetch a PayPal Order by id via GET /v2/checkout/orders/{id}.
capture_orderCapture payment for an approved order via POST /v2/checkout/orders/{id}/capture.
authorize_orderAuthorize payment for an approved order via POST /v2/checkout/orders/{id}/authorize.
capture_authorizationCapture a previously authorized payment via POST /v2/payments/authorizations/{id}/capture.
refund_captureRefund a captured payment via POST /v2/payments/captures/{id}/refund.
void_authorizationVoid (release) an unsettled authorization via POST /v2/payments/authorizations/{id}/void.
get_payment_detailsFetch a payment object by id via GET /v2/payments/{type}/{id}.
create_batch_payoutCreate a batch payout via POST /v1/payments/payouts.
get_payoutFetch a payout batch by id via GET /v1/payments/payouts/{batch_id}.
get_payout_itemFetch a single payout item by id via GET /v1/payments/payouts-item/{item_id}.
create_subscriptionCreate a billing subscription via POST /v1/billing/subscriptions.
get_subscriptionFetch a subscription by id via GET /v1/billing/subscriptions/{id}.
cancel_subscriptionCancel an active subscription via POST /v1/billing/subscriptions/{id}/cancel.
list_disputesList disputes via GET /v1/customer/disputes.
get_disputeFetch a dispute by id via GET /v1/customer/disputes/{id}.
accept_dispute_claimAccept liability for a dispute claim via POST /v1/customer/disputes/{id}/accept-claim.
list_webhooksList configured webhooks for the app via GET /v1/notifications/webhooks.
verify_webhook_signatureVerify a webhook event signature via POST /v1/notifications/verify-webhook-signature.

Install

bash
npm install @codespar/mcp-paypal

Environment

bash
PAYPAL_CLIENT_ID="..."       # REST app client idPAYPAL_CLIENT_SECRET="..."   # REST app client secret (OAuth2)PAYPAL_ENV="sandbox"         # 'sandbox' (default) or 'live'

Endpoints:

  • sandbox -> https://api-m.sandbox.paypal.com
  • live -> https://api-m.paypal.com

Authentication

PayPal REST APIs use OAuth2 client_credentials. The server posts CLIENT_ID:CLIENT_SECRET (Basic auth) to /v1/oauth2/token with grant_type=client_credentials and caches the bearer token until 60s before expiry, refreshing on demand.

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-paypal
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-paypal

Notes

  • Amounts are objects in PayPal REST: { "currency_code": "USD", "value": "10.50" }. Values are decimal strings.
  • The server forwards arbitrary REST body fields verbatim under body for tools that accept them, so any field documented in the PayPal REST reference can be passed even if it's not in the MCP inputSchema.
  • For payment captures / refunds the PayPal-Request-Id header (idempotency) is forwarded when supplied.

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/paypal/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Paypal 整合