Skip to main content
Glama
arbuthnot-eth

PayPal MCP Server

PayPal MCP 服务器

许可证:MIT

一个模型上下文协议 (MCP) 服务器,提供与 PayPal API 的集成。该服务器通过标准化接口实现与 PayPal 的支付处理、发票、订阅管理和业务运营的无缝交互。

特征

  • 付款处理:创建和捕获付款、订单和付款令牌

  • 订阅管理:创建和管理定期订阅

  • 业务运营:创建产品、发票和处理付款

  • 用户管理:检索用户信息并创建网络配置文件

  • 安全认证:带有刷新处理的自动令牌管理

  • 输入验证:使用 Zod 模式进行全面验证

  • 错误处理:强大的错误处理和日志记录

Related MCP server: MCP Stripe Server

安装

# Clone the repository
git clone https://github.com/arbuthnot-eth/PayPal-MCP-Backdated.git
cd PayPal-MCP-Backdated

# Install dependencies
npm install

# Build the project
npm run build

配置

使用您的 PayPal API 凭证在根目录中创建一个.env文件:

PAYPAL_CLIENT_ID=your_client_id_here
PAYPAL_CLIENT_SECRET=your_client_secret_here
PAYPAL_ENVIRONMENT=sandbox  # or 'live' for production

用法

运行服务器

# Start the server
npm start

# For development with auto-reload
npm run dev

MCP 配置

将服务器添加到您的 MCP 配置文件:

{
  "mcpServers": {
    "paypal": {
      "command": "node",
      "args": ["path/to/paypal-mcp/build/index.js"],
      "env": {
        "PAYPAL_CLIENT_ID": "your_client_id",
        "PAYPAL_CLIENT_SECRET": "your_client_secret",
        "PAYPAL_ENVIRONMENT": "sandbox"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

可用工具

支付工具

  • create_payment_token :创建付款令牌以供将来使用

  • create_order :在 PayPal 中创建新订单

  • capture_order :捕获授权订单的付款

  • create_payment :创建直接付款

  • create_subscription :创建定期计费订阅

商业工具

  • create_product :在目录中创建新产品

  • create_invoice :生成新发票

  • create_payout :处理批量付款

用户工具

  • get_userinfo :检索用户信息

  • create_web_profile :创建网络体验配置文件

  • get_web_profiles :获取网络体验配置文件列表

发展

# Run linting
npm run lint

# Run tests
npm test

# Format code
npm run format

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arbuthnot-eth/PayPal-MCP-Backdated'

If you have feedback or need assistance with the MCP directory API, please join our Discord server