PayPal MCP Server
Published
At a glance
- Category
- Business & payments
- GitHub repository
- paypal/paypal-mcp-server
- Watch out for
- Write tools such as pay_order, create_refund, send_invoice, cancel_subscription and accept_dispute_claim act on real accounts and customers when PAYPAL_ENVIRONMENT is PRODUCTION, so keep agents on SANDBOX until you trust the prompts.
PayPal publishes its own MCP server so an AI assistant can work with PayPal's business APIs through function calls. It covers invoicing, orders and refunds, disputes, shipment tracking, the product catalog, subscriptions and transaction reporting. The code lives in the paypal/paypal-mcp-server repository and ships on npm as @paypal/mcp.
You can run it locally or connect to PayPal's remote server. The local server is a Node.js process (Node 18 or later) that your client launches over stdio with npx, authenticated by a PayPal access token. PayPal also hosts a remote server with separate sandbox and production hosts, each offering an SSE endpoint and a streamable HTTP endpoint. The remote option sends you through a PayPal login and authorization step instead of asking you to paste a token.
The environment switch matters more here than with most servers. Every write tool moves real money or sends real messages to customers when it points at production, so PayPal's own examples default to SANDBOX.
How it connects
Your AI app
An assistant or agent that supports MCP
PayPal MCP Server
Runs as
- npx (Node.js)
- Remote (HTTP)
Gives the agent
- Invoicing
- Orders and refunds
- Disputes
- Shipment tracking
- Catalog and subscriptions
- Reporting
PayPal
Signs in with
- Token
What it can do
- Invoicing
- create_invoice, list_invoices, get_invoice, send_invoice, send_invoice_reminder, cancel_sent_invoice and generate_invoice_qr_code cover the whole invoice lifecycle.
- Orders and refunds
- create_order, get_order and pay_order handle checkout orders, while create_refund and get_refund issue and look up refunds on captured payments.
- Disputes
- list_disputes and get_dispute show open cases, and accept_dispute_claim accepts a claim against you.
- Shipment tracking
- create_shipment_tracking and get_shipment_tracking add and read tracking records for orders.
- Catalog and subscriptions
- create_product, list_products, show_product_details and update_product manage products; plan and subscription tools include create_subscription_plan, create_subscription, update_subscription and cancel_subscription.
- Reporting
- list_transactions returns transactions with pagination and filtering for reconciliation questions.
Setting it up
For the local server you need Node.js 18 or later and a PayPal access token. In Claude Desktop, add an entry to claude_desktop_config.json under mcpServers named "paypal" with command "npx", args ["-y", "@paypal/mcp", "--tools=all"], and an env block setting PAYPAL_ACCESS_TOKEN and PAYPAL_ENVIRONMENT to SANDBOX (or PRODUCTION for live). You can also export PAYPAL_ACCESS_TOKEN in your shell or pass --access-token in args. Restart the client and try something like "List my PayPal invoices". The same config works in other hosts the README names, such as Cursor, Cline and GitHub Copilot. For the remote server, point your client at npx mcp-remote with one of https://mcp.sandbox.paypal.com/http, https://mcp.sandbox.paypal.com/sse, https://mcp.paypal.com/http or https://mcp.paypal.com/sse, restart, log in on the PayPal page that opens and authorize the client. If the connection gets stuck, PayPal suggests clearing the files stored in ~/.mcp-auth.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Draft an invoice from a short description of the work, send it, and follow up with a reminder later.
- Pull last month's transactions with list_transactions to answer a reconciliation question.
- Review open disputes and summarize the details of each case before a human decides what to do.
- Add tracking numbers to recent orders after a shipping batch goes out.
- Set up a subscription plan and a test subscription in the sandbox while building a billing flow.
Limitations and things to watch
- Write tools such as pay_order, create_refund, send_invoice, cancel_subscription and accept_dispute_claim act on real accounts and customers when PAYPAL_ENVIRONMENT is PRODUCTION, so keep agents on SANDBOX until you trust the prompts.
- Running with --tools=all exposes every write tool at once; give the agent only the access it needs and review tool calls before approving them.
- The local server needs a PayPal access token you generate yourself, and that token carries whatever permissions your app credentials have.
- The remote server keeps separate sandbox and production hosts, so it is easy to connect a client to the live endpoint by copying the wrong URL.
- Both SSE and streamable HTTP endpoints are listed for the remote server; newer clients should prefer the /http endpoint.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /paypal/paypal-mcp-server
- developer.paypal.com /tools/mcp-server
- github.com /paypal/agent-toolkit
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.