arbuthnot_eth_paypal_mcp_backdated

arbuthnot_eth_paypal_mcp_backdated

by arbuthnot-eth
A Model Context Protocol (MCP) server for integrating with PayPal's APIs for payment processing, subscriptions, and business operations.

PayPal MCP Server: API Integration for Payment and Business Operations

License: MIT

The PayPal MCP Server is a Model Context Protocol (MCP) implementation designed to integrate with PayPal's APIs. It provides a standardized interface for managing payments, subscriptions, business operations, and user information.


Features

  • Payment Processing: Create and capture payments, orders, and payment tokens.
  • Subscription Management: Handle recurring subscriptions seamlessly.
  • Business Operations: Create products, invoices, and process payouts.
  • User Management: Retrieve user information and create web profiles.
  • Secure Authentication: Automatic token management with refresh handling.
  • Input Validation: Comprehensive validation using Zod schemas.
  • Error Handling: Robust error handling and logging.

Installation

To get started, clone the repository and install the dependencies:

# 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

Configuration

Create a .env file in the root directory with your PayPal API credentials:

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

Usage

Running the Server

Start the server with the following commands:

# Start the server
npm start

# For development with auto-reload
npm run dev

MCP Configuration

Add the server to your MCP configuration file:

{
  "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": []
    }
  }
}

Available Tools

Payment Tools

  • create_payment_token: Create a payment token for future use.
  • create_order: Create a new order in PayPal.
  • capture_order: Capture payment for an authorized order.
  • create_payment: Create a direct payment.
  • create_subscription: Create a subscription for recurring billing.

Business Tools

  • create_product: Create a new product in the catalog.
  • create_invoice: Generate a new invoice.
  • create_payout: Process a batch payout.

User Tools

  • get_userinfo: Retrieve user information.
  • create_web_profile: Create a web experience profile.
  • get_web_profiles: Get a list of web experience profiles.

Development

Run the following commands for development tasks:

# Run linting
npm run lint

# Run tests
npm test

# Format code
npm run format

License

This project is licensed under the MIT License. See the LICENSE file for details.


About

The PayPal MCP Server is designed to simplify PayPal API integration with backdated commits. It provides a robust and scalable solution for managing payment and business operations.

Resources

Activity

Activity

Stars

Stars

Forks

Forks


No releases or packages are currently published.


Languages

  • TypeScript: 87.2%
  • JavaScript: 10.9%
  • Dockerfile: 1.9%

Features & Capabilities

Categories
mcp_server model_context_protocol typescript javascript docker api_integration paypal payment_processing subscription_management

Implementation Details

Stats

0 Views
0 Favorites
0 GitHub Stars

Repository Info

arbuthnot-eth Organization

Similar Servers

continuedev_continue by continuedev
0
0
0