Skip to main content
Glama

PayPal MCP Server

非官方 PayPal MCP 服务器

PayPal MCP 服务器

用于 PayPal API 集成的模型上下文协议 (MCP) 服务器的 Python 实现。该服务器支持大型语言模型 (LLM) 通过函数调用与 PayPal 的 API 进行交互。

特征

  • 全面实现 PayPal API 的模型上下文协议
  • 支持所有主要的 PayPal API 端点:
    • 发票:创建、列出、查看、发送、提醒、取消、二维码
    • 订单:创建、获取、捕获
    • 产品:创建、列出、查看、更新
    • 订阅计划:创建、列出、查看
    • 订阅:创建、查看、取消
    • 发货:创建、跟踪
    • 争议:列出、查看、接受
    • 交易:列表和过滤器

安装

来自 PyPI

pip install paypal-mcp-server

来自源

git clone https://github.com/yourusername/paypal-mcp-server.git cd paypal-mcp-server pip install -e .

使用 Docker

docker pull ghcr.io/yourusername/paypal-mcp-server:latest

用法

命令行

# Using environment variables export PAYPAL_ACCESS_TOKEN="your_access_token" export PAYPAL_ENVIRONMENT="SANDBOX" # or "PRODUCTION" paypal-mcp --tools=all # Or with command line arguments paypal-mcp --tools=all --access-token=your_access_token --paypal-environment=SANDBOX

仅启用特定工具

paypal-mcp --tools=invoices.create,invoices.list,orders.create --access-token=your_token

使用 Docker

docker run -e PAYPAL_ACCESS_TOKEN="your_access_token" -e PAYPAL_ENVIRONMENT="SANDBOX" ghcr.io/yourusername/paypal-mcp-server:latest --tools=all

与 Claude Desktop 集成

将以下内容添加到您的~/Claude/claude_desktop_config.json

{ "mcpServers": { "paypal": { "command": "paypal-mcp", "args": [ "--tools=all" ], "env": { "PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN", "PAYPAL_ENVIRONMENT": "SANDBOX" } } } }

获取 PayPal 访问令牌

您可以使用客户端 ID 和客户端密钥生成 PayPal 访问令牌:

curl -v https://api-m.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: en_US" \ -u "CLIENT_ID:CLIENT_SECRET" \ -d "grant_type=client_credentials"

发展

设置开发环境

# Clone the repository git clone https://github.com/yourusername/paypal-mcp-server.git cd paypal-mcp-server # Install dev dependencies pip install -e ".[dev]" # Install pre-commit hooks pre-commit install

运行测试

pytest -xvs

构建包

python -m build

执照

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

致谢

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

一种 Python 实现,使大型语言模型能够通过函数调用与 PayPal 的 API 交互,支持发票、订单、产品、订阅和交易等功能。

  1. 特征
    1. 安装
      1. 来自 PyPI
      2. 来自源
      3. 使用 Docker
    2. 用法
      1. 命令行
      2. 仅启用特定工具
      3. 使用 Docker
    3. 与 Claude Desktop 集成
      1. 获取 PayPal 访问令牌
        1. 发展
          1. 设置开发环境
          2. 运行测试
          3. 构建包
        2. 执照
          1. 致谢

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              A server implementing the Model Context Protocol to make and query payments through Worldpay APIs, enabling payment processing, payment queries, and checkout form generation.
              Last updated -
              TypeScript
            • -
              security
              A
              license
              -
              quality
              Provides integration with PayPal's Account Updater service, enabling merchants to maintain fresh payment card information in their e-commerce systems through subscription management and webhook notifications.
              Last updated -
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides comprehensive integration with PayPal's APIs, enabling seamless interaction with payment processing, invoicing, subscription management, and business operations through a standardized interface.
              Last updated -
              TypeScript
              Apache 2.0
            • -
              security
              A
              license
              -
              quality
              A server that provides integration with PayPal's APIs, enabling seamless interaction with payment processing, invoicing, subscription management, and business operations through a standardized interface.
              Last updated -
              TypeScript
              MIT License

            View all related MCP servers

            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/akramIOT/paypal_mcp_server'

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