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.

Before you start
- A PayPal developer account with Sandbox access, and later a PayPal business account for Production
- For local use:
Node.jsv18 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
npxcommands 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
- Choose local or remote. The docs use Claude as their example client and show the local config in
~/Claude/claude_desktop_config.json. - Open
claude_desktop_config.jsonin a text editor and add the entry from the snippet. For local, replaceYOUR_PAYPAL_ACCESS_TOKENwith your token and keepPAYPAL_ENVIRONMENTset toSANDBOX. - For remote, use the Sandbox URL
https://mcp.sandbox.paypal.com/sse(server-sent events) orhttps://mcp.sandbox.paypal.com/http(streamableHTTP) withmcp-remote. The snippet shows the local entry. - 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.
- Run a read-only test first, such as listing your PayPal invoices from the last month.
- If a remote connection fails, the docs suggest running
rm -rf ~/.mcp-authand trying again.
{
"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
- 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.
- ChatGPT adds remote servers by URL. PayPal's documented remote access goes through
mcp-remotein 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. - If you try a hosted endpoint, use only the Sandbox endpoint from the docs,
https://mcp.sandbox.paypal.com, and take the exact path (/sseor/http) from the vendor documentation. - Complete the PayPal login and consent if prompted.
- Test with a read-only request, such as listing recent invoices, before anything else.
PayPal MCP Server in Gemini
- The PayPal documentation does not cover Gemini. Gemini CLI reads an
mcpServersobject from its settings file, so you can reuse the documented entry. - Open the Gemini CLI settings
JSONand add the localpaypalentry from the docs, or themcp-remoteentry for remote use. - For local, set
PAYPAL_ACCESS_TOKENto your token andPAYPAL_ENVIRONMENTtoSANDBOX. For remote, usehttps://mcp.sandbox.paypal.com/sseorhttps://mcp.sandbox.paypal.com/http. - Restart Gemini CLI. For remote, complete the PayPal login and consent in the browser.
- Run a read-only test, such as listing invoices from the last month.
- For remote connection problems, the docs suggest clearing
~/.mcp-auth.
{
"mcpServers": {
"paypal-mcp-server": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.sandbox.paypal.com/sse"
]
}
}
}
PayPal MCP Server in Microsoft Copilot
- The PayPal documentation does not cover Microsoft Copilot Studio or GitHub Copilot, so use each product's standard way of adding an MCP server.
- In VS Code, add the server to
.vscode/mcp.jsonunder a top-levelserversobject, using the samecommandandargsas the documented entry. - For local, use
npxwith-y,@paypal/mcpand--tools=all, and setPAYPAL_ACCESS_TOKENandPAYPAL_ENVIRONMENTtoSANDBOX. - 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. - Restart or reload the client, then start the server from its MCP tools list.
- Test with a read-only prompt, such as listing PayPal invoices from the last month.
{
"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
- The PayPal documentation does not mention Perplexity. Use the connector settings in the Perplexity desktop app to add an MCP server.
- Perplexity connectors vary by app version and plan. Check that yours supports local commands or remote MCP servers.
- If it accepts a command, use
npxwith-y,@paypal/mcpand--tools=all, plus thePAYPAL_ACCESS_TOKENandPAYPAL_ENVIRONMENT=SANDBOXenvironment values. - If it accepts only a URL, take the exact Sandbox endpoint and path from the vendor documentation.
- Complete the PayPal login and consent if prompted.
- Run a read-only test, such as listing recent invoices.
PayPal MCP Server in Cursor
- The docs name Cursor as a supported MCP client. Open Cursor's MCP settings, which edit an
mcpServersJSONfile. - Add the local
paypalentry from the docs. ReplaceYOUR_PAYPAL_ACCESS_TOKENwith your token and keepPAYPAL_ENVIRONMENTatSANDBOX. - For remote, use the
mcp-remoteentry withhttps://mcp.sandbox.paypal.com/sseorhttps://mcp.sandbox.paypal.com/http. - Save and restart Cursor. For remote, log in to PayPal and authorize the client, then quit and reopen Cursor.
- Test with a read-only prompt, such as listing invoices from the last month.
- The docs note that Windows users with Cursor might hit a known issue connecting remotely. Try local if remote fails.
{
"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
- The docs do not cover Claude Code, so use the standard
claude mcp addcommand with the documented local package. - 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-eflag sets environment variables for the server. - Replace
YOUR_PAYPAL_ACCESS_TOKENwith your own token. KeepPAYPAL_ENVIRONMENT=SANDBOXwhile testing. - Restart Claude Code and check that
paypalis listed as a server. - Start with a read-only request, such as listing your PayPal invoices from the last month.
- For remote use, the docs only show
mcp-remoteentries in a config file, so take the exact steps from the vendor documentation.
claude mcp add paypal -e PAYPAL_ACCESS_TOKEN=YOUR_PAYPAL_ACCESS_TOKEN -e PAYPAL_ENVIRONMENT=SANDBOX -- npx -y @paypal/mcp --tools=allCheck 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.