MCP Ecommerce
PayPal logo

Installation guide

How to install PayPal MCP Server

In Claude, ChatGPT, Gemini, Microsoft Copilot, Perplexity, Cursor and Claude Code, with what to check before you start and the first prompts to run.

PayPal offers two ways to connect. The local option runs the `@paypal/mcp` npm package through `npx` on your machine and needs Node.js v18 or later plus a PayPal access token. The remote option uses PayPal's hosted endpoints through `mcp-remote`, and you sign in to PayPal and give consent in the browser. The documentation also describes a client credentials option for remote use, with a client ID and secret from the PayPal Developer Dashboard.

Have a developer or technical owner do the setup, working with someone on the finance team who can approve access to the PayPal business account. Start in Sandbox with a Sandbox account. Production credentials let the agent create real invoices and payments, so move to Production only after Sandbox testing, and keep it to supervised tasks.

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.

Before you start

  • A PayPal developer account with Sandbox access, and later a PayPal business account for Production
  • For local use: Node.js v18 or later and a PayPal access token
  • For remote use: a PayPal login that can authorize the client, or a client ID and secret from the PayPal Developer Dashboard
  • An MCP client that can run npx commands from its config file, such as Claude Desktop, Cursor or Cline
  • The vendor documentation open for exact values: https://developer.paypal.com/tools/mcp-server/
How it runs
Remote or local
Access
Read and write
Server address
https://mcp.sandbox.paypal.com

PayPal MCP Server in Claude

  1. Choose local or remote. The docs use Claude as their example client and show the local config in ~/Claude/claude_desktop_config.json.
  2. Open claude_desktop_config.json in a text editor and add the entry from the snippet. For local, replace YOUR_PAYPAL_ACCESS_TOKEN with your token and keep PAYPAL_ENVIRONMENT set to SANDBOX.
  3. For remote, use the Sandbox URL https://mcp.sandbox.paypal.com/sse (server-sent events) or https://mcp.sandbox.paypal.com/http (streamable HTTP) with mcp-remote. The snippet shows the local entry.
  4. Save the file and restart Claude Desktop. For remote, the client sends you to the PayPal login page. Log in, authorize the client, then quit and reopen Claude.
  5. Run a read-only test first, such as listing your PayPal invoices from the last month.
  6. If a remote connection fails, the docs suggest running rm -rf ~/.mcp-auth and trying again.
claude_desktop_config.json (local, Sandbox)
{
  "mcpServers": {
    "paypal": {
      "command": "npx",
      "args": [
        "-y",
        "@paypal/mcp",
        "--tools=all"
      ],
      "env": {
        "PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN",
        "PAYPAL_ENVIRONMENT": "SANDBOX"
      }
    }
  }
}

PayPal MCP Server in ChatGPT

  1. The PayPal documentation does not cover ChatGPT, so use ChatGPT's own process for custom MCP connectors (Developer mode) and check that your plan supports it.
  2. ChatGPT adds remote servers by URL. PayPal's documented remote access goes through mcp-remote in a local config file, and the docs do not give a direct URL flow for ChatGPT. Confirm with PayPal whether the hosted endpoints can be added directly.
  3. If you try a hosted endpoint, use only the Sandbox endpoint from the docs, https://mcp.sandbox.paypal.com, and take the exact path (/sse or /http) from the vendor documentation.
  4. Complete the PayPal login and consent if prompted.
  5. Test with a read-only request, such as listing recent invoices, before anything else.

PayPal MCP Server in Gemini

  1. The PayPal documentation does not cover Gemini. Gemini CLI reads an mcpServers object from its settings file, so you can reuse the documented entry.
  2. Open the Gemini CLI settings JSON and add the local paypal entry from the docs, or the mcp-remote entry for remote use.
  3. For local, set PAYPAL_ACCESS_TOKEN to your token and PAYPAL_ENVIRONMENT to SANDBOX. For remote, use https://mcp.sandbox.paypal.com/sse or https://mcp.sandbox.paypal.com/http.
  4. Restart Gemini CLI. For remote, complete the PayPal login and consent in the browser.
  5. Run a read-only test, such as listing invoices from the last month.
  6. For remote connection problems, the docs suggest clearing ~/.mcp-auth.
Gemini CLI settings (remote, Sandbox, SSE)
{
  "mcpServers": {
    "paypal-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.sandbox.paypal.com/sse"
      ]
    }
  }
}

PayPal MCP Server in Microsoft Copilot

  1. The PayPal documentation does not cover Microsoft Copilot Studio or GitHub Copilot, so use each product's standard way of adding an MCP server.
  2. In VS Code, add the server to .vscode/mcp.json under a top-level servers object, using the same command and args as the documented entry.
  3. For local, use npx with -y, @paypal/mcp and --tools=all, and set PAYPAL_ACCESS_TOKEN and PAYPAL_ENVIRONMENT to SANDBOX.
  4. For Copilot Studio, the docs give no steps. Check whether it can reach the Sandbox endpoint https://mcp.sandbox.paypal.com, and take exact values from the vendor documentation.
  5. Restart or reload the client, then start the server from its MCP tools list.
  6. Test with a read-only prompt, such as listing PayPal invoices from the last month.
.vscode/mcp.json (local, Sandbox)
{
  "servers": {
    "paypal": {
      "command": "npx",
      "args": [
        "-y",
        "@paypal/mcp",
        "--tools=all"
      ],
      "env": {
        "PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN",
        "PAYPAL_ENVIRONMENT": "SANDBOX"
      }
    }
  }
}

PayPal MCP Server in Perplexity

  1. The PayPal documentation does not mention Perplexity. Use the connector settings in the Perplexity desktop app to add an MCP server.
  2. Perplexity connectors vary by app version and plan. Check that yours supports local commands or remote MCP servers.
  3. If it accepts a command, use npx with -y, @paypal/mcp and --tools=all, plus the PAYPAL_ACCESS_TOKEN and PAYPAL_ENVIRONMENT=SANDBOX environment values.
  4. If it accepts only a URL, take the exact Sandbox endpoint and path from the vendor documentation.
  5. Complete the PayPal login and consent if prompted.
  6. Run a read-only test, such as listing recent invoices.

PayPal MCP Server in Cursor

  1. The docs name Cursor as a supported MCP client. Open Cursor's MCP settings, which edit an mcpServers JSON file.
  2. Add the local paypal entry from the docs. Replace YOUR_PAYPAL_ACCESS_TOKEN with your token and keep PAYPAL_ENVIRONMENT at SANDBOX.
  3. For remote, use the mcp-remote entry with https://mcp.sandbox.paypal.com/sse or https://mcp.sandbox.paypal.com/http.
  4. Save and restart Cursor. For remote, log in to PayPal and authorize the client, then quit and reopen Cursor.
  5. Test with a read-only prompt, such as listing invoices from the last month.
  6. The docs note that Windows users with Cursor might hit a known issue connecting remotely. Try local if remote fails.
Cursor mcpServers (local, Sandbox)
{
  "mcpServers": {
    "paypal": {
      "command": "npx",
      "args": [
        "-y",
        "@paypal/mcp",
        "--tools=all"
      ],
      "env": {
        "PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN",
        "PAYPAL_ENVIRONMENT": "SANDBOX"
      }
    }
  }
}

PayPal MCP Server in Claude Code

  1. The docs do not cover Claude Code, so use the standard claude mcp add command with the documented local package.
  2. Run the command in the snippet. It uses npx -y @paypal/mcp --tools=all, passes the Sandbox environment, and takes your token from a placeholder. The -e flag sets environment variables for the server.
  3. Replace YOUR_PAYPAL_ACCESS_TOKEN with your own token. Keep PAYPAL_ENVIRONMENT=SANDBOX while testing.
  4. Restart Claude Code and check that paypal is listed as a server.
  5. Start with a read-only request, such as listing your PayPal invoices from the last month.
  6. For remote use, the docs only show mcp-remote entries in a config file, so take the exact steps from the vendor documentation.
Terminal
claude mcp add paypal -e PAYPAL_ACCESS_TOKEN=YOUR_PAYPAL_ACCESS_TOKEN -e PAYPAL_ENVIRONMENT=SANDBOX -- npx -y @paypal/mcp --tools=all

Check that it works

Start with questions that only read data. If these answer from your real account, the connection is good.

  • List my PayPal invoices from the last month.
  • Show the five most recent invoices and their status, without changing anything.
  • Which PayPal environment is this connection using, Sandbox or Production?

Troubleshooting

+

The remote connection fails or loops on the PayPal login page. What should I do?

The documentation suggests clearing the files the integration stores in `~/.mcp-auth` by running `rm -rf ~/.mcp-auth`. Then restart your MCP client and sign in again. Check that you are using the Sandbox endpoint with Sandbox credentials. If it still fails, follow the vendor documentation.

+

The server does not appear in my client after I edit the config file.

Quit and fully restart the client, since changes only apply after a restart. Check that the JSON is valid, that Node.js v18 or later is installed, and that `npx` is on the client's PATH. For remote entries, confirm the `mcp-remote` URL matches the transport you chose.

+

Why can't I connect remotely from Cursor on Windows?

The documentation says Windows users with Cursor might hit a known issue when connecting to the remote server. Try the local `@paypal/mcp` setup instead, or check the vendor documentation and the PayPal GitHub repo for current guidance. Also check the access token, the environment value and the endpoint.

Written Nov 4, 2026 from the vendor documentation. Exact menus, addresses and commands change; the official documentation is the source of truth.

Questions and answers

Questions readers and searchers ask about installing 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.