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.
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
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
Start the server with the following commands:
# Start the server
npm start
# For development with auto-reload
npm run dev
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": []
}
}
}
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.create_product
: Create a new product in the catalog.create_invoice
: Generate a new invoice.create_payout
: Process a batch payout.get_userinfo
: Retrieve user information.create_web_profile
: Create a web experience profile.get_web_profiles
: Get a list of web experience profiles.Run the following commands for development tasks:
# Run linting
npm run lint
# Run tests
npm test
# Format code
npm run format
This project is licensed under the MIT License. See the LICENSE file for details.
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.
No releases or packages are currently published.