home / mcp / paypal mcp server
A Python MCP server providing PayPal API endpoints for LLMs to call: invoices, orders, products, subscriptions, shipments, disputes, and transactions.
Configuration
View docs{
"mcpServers": {
"akramiot-paypal_mcp_server": {
"command": "paypal-mcp",
"args": [
"--tools=all"
],
"env": {
"PAYPAL_ENVIRONMENT": "SANDBOX",
"PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN"
}
}
}
}You run a Python MCP server to let Large Language Models interact with PayPal APIs through function calls. This makes it easy to create, view, and manage PayPal resources from your LLM workflows by exposing PayPal endpoints as MCP tools your model can call.
To use this PayPal MCP server with an MCP client, start the server in stdio mode and enable the full tool set. You will provide your PayPal access token and environment, then instruct your MCP client to load all tools so your model can create, list, view, and manage PayPal resources.
Prerequisites you need on your system:
Python 3.8+ and pip for installing Python packages.
pip install paypal-mcp-serverClone the repository, install dependencies, and install your package in editable mode.
git clone https://github.com/yourusername/paypal-mcp-server.git
cd paypal-mcp-server
pip install -e .Pull the latest PayPal MCP Server image from the container registry.
docker pull ghcr.io/yourusername/paypal-mcp-server:latestStart the server in stdio mode and enable all tools. Provide your PayPal access token and environment via environment variables.
paypal-mcp --tools=allSet your PayPal credentials and environment, then start the server.
export PAYPAL_ACCESS_TOKEN="your_access_token"
export PAYPAL_ENVIRONMENT="SANDBOX" # or "PRODUCTION"
paypal-mcp --tools=allRun the container with your credentials and enable all tools.
docker run -e PAYPAL_ACCESS_TOKEN="your_access_token" -e PAYPAL_ENVIRONMENT="SANDBOX" ghcr.io/yourusername/paypal-mcp-server:latest --tools=allIf you use Claude Desktop, add the MCP server configuration to your Claude desktop config so it can call PayPal tools directly.
{
"mcpServers": {
"paypal": {
"command": "paypal-mcp",
"args": [
"--tools=all"
],
"env": {
"PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN",
"PAYPAL_ENVIRONMENT": "SANDBOX"
}
}
}
}Create a new invoice in PayPal.
List existing invoices.
View a specific invoice.
Send an invoice to a recipient.
Send a payment reminder for an invoice.
Cancel an invoice.
Generate a QR code for an invoice.
Create a new PayPal order.
Retrieve details of an existing order.
Capture funds for an order.
Create a new product.
List products.
View a product detail.
Update product information.
Create a new subscription plan.
List subscription plans.
View a subscription plan.
Create a new subscription.
View a subscription.
Cancel a subscription.
Create a shipment.
Track a shipment.
List disputes.
View a dispute.
Accept a dispute resolution.
List and filter transactions.