MCP Ecommerce
PayPal logo

Payments

PayPal MCP Server

PayPal offers both a local npm package and hosted remote servers (production and sandbox) that let merchants run invoicing, payments and other PayPal tasks from an AI client using natural language.

PayPal MCP Server setup guide: PayPal's MCP documentation page on developer.paypal.com, shown in a browser frame (payments MCP server for e-commerce)
PayPal MCP Server setup guide preview: PayPal’s documentation on developer.paypal.com, captured Nov 4, 2026. The page may have changed since; the link opens the live version.

What it is and why it matters

The PayPal MCP Server is PayPal's official connector that lets an AI client such as Claude, Cursor or Cline work with a PayPal account in plain language. It comes in two forms: a local npm package that runs on your computer, and hosted remote servers, one for Sandbox and one for Production. Documented tasks include listing and creating invoices, and the documentation says the full tool catalog is the same in the local and remote versions. It matters to merchants and agencies because invoicing and payment follow-up are repetitive. The documentation describes asking the client to read customer records from a file or drive connector and then create PayPal invoices in bulk. The same access that saves time can also create real invoices and payments, so the practical question is control. The best results come from starting in Sandbox, checking what the client proposes, and only moving to Production for supervised tasks.

This guide suits merchants and finance teams who invoice or reconcile through PayPal, and agencies that support them. Setup involves editing a client configuration file, so someone comfortable with that, or a developer helper, should do it once. The local option needs Node.js v18 or later and a PayPal access token. The remote option needs a PayPal login and consent. What decides success is the environment you point at, the credentials you use, and how clearly you word each request.

What it does

  • List and create invoices
  • Work with payments, orders and other agent tools from PayPal's catalog
  • Switch between Sandbox and Production environments
  • Authenticate with an access token locally or client credentials and OAuth remotely

Best for

Merchants and finance teams who invoice or reconcile through PayPal.

How to connect it

  1. Choose local or remote. As described in the documentation, local needs Node.js v18 or later and a PayPal access token. Remote needs no install and uses a PayPal login and consent.
  2. For local, open your MCP client's configuration (in Claude, ~/Claude/claude_desktop_config.json) and add a paypal entry under mcpServers. It runs npx with the -y, @paypal/mcp and --tools=all arguments. Set PAYPAL_ACCESS_TOKEN to your token and PAYPAL_ENVIRONMENT to SANDBOX. Use PRODUCTION only once testing is done. Consider replacing --tools=all with a narrower selection as described in the vendor documentation.
  3. For remote, add a paypal-mcp-server entry that runs npx with mcp-remote and the Sandbox address from the documentation, using the /sse path for server-sent events or the /http path for streamable HTTP. The documentation also shows a variant that passes client credentials from the PayPal Developer Dashboard as an Authorization: Bearer header.
  4. Save the file and restart your MCP client. For remote, the client sends you to the PayPal login page. Log in and authorize the client, then quit and reopen the client.
  5. Test in Sandbox with a read-only request, such as asking the client to list your PayPal invoices for the last month. If a remote connection fails, the documentation suggests clearing the files in ~/.mcp-auth and trying again.
  6. Switch to Production only after Sandbox tests behave as expected. Change PAYPAL_ENVIRONMENT to PRODUCTION for local, or replace the Sandbox address with the Production address from the documentation for remote.

Exact commands and addresses change. Use the official documentation for the current steps.

Installation guide for PayPal MCP Server

Client-by-client steps, what to prepare, the first prompts to run and fixes for common errors.

ClaudeChatGPTGeminiMicrosoft CopilotPerplexityCursorClaude Code
→

Questions you can ask it

  • List my PayPal invoices from the last month and show which ones are still unpaid.
  • Create a draft invoice in Sandbox for landscaping services for Green Lawns for $200, dated last Friday, and show me the details before anything is sent.
  • Read the customer list in this spreadsheet and prepare one Sandbox invoice per row for me to review.
  • Which tools does the PayPal server make available in this session, and which of them can change data?

What it cannot do

  • It does not give you a separate read-only mode by default. The listing says access is read and write, so any limit on actions has to come from the tools you enable and the credentials you use.
  • It does not replace the PayPal dashboard for everything. It only covers the tools in PayPal's catalog, and the documentation does not list every one on the page, so check the vendor documentation for what is available.
  • It does not work flawlessly in every client. The documentation warns that MCP clients can have performance problems, and notes a known issue for Windows users connecting remotely with Cursor.

Staying safe

  • Production credentials let the agent create real invoices and payments. Run everything in Sandbox first, and keep `PAYPAL_ENVIRONMENT` set to `SANDBOX` until the results are what you expect.
  • Treat the access token, client ID and secret like passwords. Do not paste them into chats or shared files. Use the credentials from your own PayPal Developer Dashboard, and revoke or rotate them if they leak.
  • In Production, approve each invoice or payment action yourself, and ask the client to show details before it sends anything. Consider limiting the tools enabled instead of using `--tools=all`, and review sent invoices in PayPal afterward.

Watch out for: Production credentials let the agent create real invoices and payments, so test in Sandbox first.

Frequently asked questions

+

Should I use the local or remote PayPal MCP server?

Use local if you are comfortable with Node.js v18 or later and want to supply an access token yourself. Use remote if you would rather not install anything, since you sign in to PayPal and authorize the client, and can continue across devices with one login. Both offer the same tool catalog, according to the documentation.

Step-by-step: install PayPal MCP Server in Claude, ChatGPT, Gemini, Copilot and more →

+

How do I test the PayPal MCP Server without touching real money?

Use the Sandbox environment. For local, set `PAYPAL_ENVIRONMENT` to `SANDBOX`. For remote, point the client at the Sandbox address given in the documentation. Start with read requests such as listing invoices, then try creating a test invoice, and only then consider Production.

+

What do I do if the remote PayPal MCP connection fails?

Restart your MCP client and repeat the login and authorization steps. If that does not help, the documentation suggests removing the files the integration stored in `~/.mcp-auth` by running `rm -rf ~/.mcp-auth`, then connecting again. Windows users with Cursor may hit a known remote connection issue.

Step-by-step: install PayPal MCP Server in Claude, ChatGPT, Gemini, Copilot and more →

Questions and answers

Questions readers and searchers ask about PayPal MCP Server, answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.

Ask a question or share what worked

Reviewed before publishing. One link max, no HTML.

Related guides

Other servers to compare