连接器指南阅读约 6 分钟28 个 MCP 工具7 种语言

将 PayPal MCP 连接到 Microsoft Copilot

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

HC作者:HelpCode 团队更新于 6 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

PayPal

PayPal

Let your AI work with your PayPal business account: create and capture orders, refund payments, create, send and chase invoices, search the transaction history and balances, review disputes, and look up subscription plans, subscriptions and payout batches. Sandbox or live, with your own REST app keys.

个工具

28

区域

INTL

类别

支付

身份验证

OAuth 2.0

所需环境变量

PAYPAL_CLIENT_IDPAYPAL_CLIENT_SECRETPAYPAL_API_URL
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

引导式设置

2 分钟将 PayPal 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 PayPal,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

试试这样问

PayPal 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

PayPal · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → PayPal、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

PayPal + Microsoft Copilot

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PAYPAL_API_URL

步骤 1 — 获取凭证

  1. 用你的 PayPal 商家账户登录 developer.paypal.com,打开 Apps & Credentials。顶部的开关可以在 Sandbox 和 Live 之间切换;两者各有自己的应用和密钥。
  2. 使用 Default Application,或点击 Create App,类型选择 Merchant;在沙盒中还要选择应用代为操作的沙盒商家账户。
  3. 打开应用,在功能列表中勾选 AI 需要用到的功能:Invoicing、Transaction Search、Subscriptions(也包括目录商品)、Customer Disputes 和 Payouts。
  4. 把 Client ID 复制到 PAYPAL_CLIENT_ID,把 Secret key 1(点击后显示)复制到 PAYPAL_CLIENT_SECRET。两者必须来自同一个应用,并且来自同一个 Sandbox 或 Live 区域。
  5. 将 PAYPAL_API_URL 设为 https://api-m.sandbox.paypal.com(沙盒密钥)或 https://api-m.paypal.com(正式密钥),末尾不要加斜杠。
  6. 安装连接器。不需要点击 Authorize with Provider,也没有 PayPal 授权页面:连接器用 client ID 和 secret 以你的 REST 应用身份登录。
  7. 先运行 paypal_get_balances,确认密钥连到了正确的账户(应用需要启用 Transaction Search)。

保持登录状态:连接器用 client ID 和 secret 获取访问令牌,并在过期前自动续期,因此无需重新登录。

新功能需要时间生效:如果应用已经签发过令牌,PayPal 为新勾选的功能授权最多可能需要 9 小时。在此之前,相关调用会返回 403 NOT_AUTHORIZED,所以请在首次安装前勾选所有需要的功能。

付款和邮件:paypal_capture_order、paypal_refund_capture 和 paypal_cancel_subscription 会在正式账户上转移或停止真实资金,paypal_send_invoice、paypal_remind_invoice 和 paypal_cancel_invoice 会给客户发邮件。AI 会先说明将发生什么(金额、币种、客户、ID),等你确认后再执行。收款和退款都带有请求 ID,因此重试不会重复执行。

权限和只读设置:应用只能使用你勾选的功能,所以不要勾选 AI 不该使用的功能。如需只读设置,请停用 paypal_create_order、paypal_capture_order、paypal_refund_capture、paypal_create_draft_invoice、paypal_send_invoice、paypal_remind_invoice、paypal_cancel_invoice 和 paypal_cancel_subscription。可以先用沙盒密钥安全地试用所有功能。

安装时默认关闭:paypal_delete_draft_invoice,它会永久删除草稿或计划发送的发票。只有在需要 AI 删除草稿时才开启;已发送的发票请改用 paypal_cancel_invoice 取消。

订单和退款:paypal_create_order 不会扣任何款。它会返回一个批准链接,买家必须打开并批准,之后 paypal_capture_order 才能收款。paypal_refund_capture 可以全额退还一笔收款,或在你指定金额时部分退款,上限是扣除之前退款后的剩余金额。

发票和交易记录:paypal_create_draft_invoice 创建的发票在 paypal_send_invoice 发送之前不会发出任何邮件,PayPal 每天最多允许发送 2 次催款提醒。paypal_search_transactions 每次调用最多覆盖 31 天(更长的时间段按月查询),最多可追溯 3 年;新交易和余额最多延迟 3 小时显示。争议最多可追溯 180 天。

常见错误:401 invalid_client 或 invalid_token 表示 client ID 或 secret 错误,或者密钥所属环境与 PAYPAL_API_URL 不一致(沙盒密钥需要沙盒 URL,正式密钥需要正式 URL)。403 NOT_AUTHORIZED 或 PERMISSION_DENIED 表示应用没有勾选该功能,或勾选还不到 9 小时。422 UNPROCESSABLE_ENTITY 会指出违反的业务规则,例如 ORDER_NOT_APPROVED(买家尚未批准)、AMOUNT_MISMATCH 或 CAPTURE_FULLY_REFUNDED。429 RATE_LIMIT_REACHED 表示 PayPal 正在限制该应用的请求:请等待一分钟后重试。

该连接器不支持银行卡付款和支付方式保存(vaulting)、Webhook、发送付款(payouts)、接受或回复争议,也不能编辑订阅计划。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Microsoft Copilot 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。

  1. 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
  2. 填写 Server name(例如 AnythingMCP)、说明连接器用途的 Server description,以及 Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。
  3. 身份验证选择 API key,把 Type 设为 Header,请求头名称填 X-API-Key,然后选择 Create。
  4. 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
  5. 在智能体的 Test 窗格中试一试:提出需要用到 PayPal 的工具的请求。
  6. 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。

希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。

自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。

可用工具

ToolWhat it does
paypal_create_orderCreate a checkout order (nothing is charged yet)
paypal_get_orderRead one checkout order: status (CREATED, APPROVED, COMPLETED, VOIDED, ...), amounts, payer, and for completed orders the captures under…
paypal_capture_orderCollect the money of an order the buyer has approved (intent CAPTURE)
paypal_get_captureRead one captured payment: amount, status (COMPLETED, PENDING, PARTIALLY_REFUNDED, REFUNDED, DECLINED), seller fees and net amount, and…
paypal_refund_captureRefund a captured payment, in full (no amount) or in part
paypal_get_refundRead one refund: amount, status (COMPLETED, PENDING, FAILED, CANCELLED), note to the payer and the capture it belongs to
paypal_get_authorizationRead one authorized payment (an order created with intent AUTHORIZE): amount, status (CREATED, CAPTURED, PARTIALLY_CAPTURED, VOIDED…
paypal_list_invoicesList invoices, newest first, with id, number, status, recipient, amount and due date
paypal_search_invoicesSearch invoices by recipient, number, status, currency, dates or amount (all filters combined with AND)
paypal_create_draft_invoiceCreate a draft invoice
paypal_get_invoiceRead one invoice: status, recipient, items, amounts, due amount, payments and refunds recorded on it, and the payer link (links[] rel…
paypal_send_invoiceSend a draft invoice
paypal_remind_invoiceEmail a payment reminder for a sent, unpaid invoice (PayPal allows 2 reminders a day)
paypal_cancel_invoiceCancel a sent invoice so it can no longer be paid; by default the recipient is told by email
paypal_delete_draft_invoiceDelete a draft or scheduled invoice for good (sent invoices are cancelled with paypal_cancel_invoice instead)
paypal_search_transactionsSearch the account history (Transaction Search): payments received and sent, refunds, fees, transfers and their payer and cart details
paypal_get_balancesRead the account balances per currency (available, withheld and total), now or as of a past time: balances[] with as_of_time
paypal_list_disputesList disputes, claims and chargebacks raised against the account (last 180 days), with dispute_id, reason, status, dispute_state, amount…
paypal_get_disputeRead one dispute in full: reason, status, amounts, disputed transactions, messages, offers, evidence and the deadline to respond…
paypal_list_productsList catalog products (the products subscription plans belong to): id, name, description, type and dates
paypal_get_productRead one catalog product: name, description, type (PHYSICAL, DIGITAL, SERVICE), category, image and home URLs
paypal_list_plansList subscription plans, optionally for one product: id, name, status (CREATED, ACTIVE, INACTIVE), product_id and dates
paypal_get_planRead one subscription plan: billing cycles with prices and frequency, trial periods, setup fee, taxes and payment failure settings
paypal_list_subscriptionsList subscriptions, filtered by plan and status: id, status, plan_id, subscriber, start time and next billing time
paypal_get_subscriptionRead one subscription: status, plan, subscriber (name, email, shipping address), billing info (outstanding balance, last payment, next…
paypal_list_subscription_transactionsList the payments of one subscription between two times: id, status, amounts with fees and net, payer and time
paypal_cancel_subscriptionCancel a subscription for good: no further payments are collected and it cannot be reactivated
paypal_get_payout_batchRead one payout batch: batch status and totals, and its items (receiver, amount, status, fees, errors)

示例提示

  • “我现在的 PayPal 余额是多少?过去 7 天收到了哪些付款?”
  • “为 Acme Ltd 创建一张发票草稿:10 小时咨询服务,每小时 90 EUR,30 天后到期。发送前先给我看看。”
  • “哪些争议在等我回复?每个争议的回复截止时间是什么时候?”
  • “列出 Pro Monthly 计划下所有有效的订阅,并告诉我哪些订阅有付款失败。”

FAQ

这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。

我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。

智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。

下一步

这份指南对你有帮助吗?

2 分钟将 PayPal 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 PayPal,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

相关指南

连接器

将 PayPal MCP 连接到 ChatGPT

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

连接器

将 PayPal MCP 连接到 Claude

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

连接器

将 PayPal MCP 连接到 Cursor

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

连接器

将 PayPal MCP 连接到 Gemini CLI

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

连接器

将 PayPal MCP 连接到 Meta Muse

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。

连接器

PayPal MCP 服务器:订单、发票与退款

让你的 AI 处理你的 PayPal 商家账户:创建订单并收款、退款、创建、发送和催收发票、搜索交易记录和余额、查看争议,以及查询订阅计划、订阅和付款批次。支持沙盒或正式环境,使用你自己的 REST 应用密钥。