Set up a local MCP server
PayPal provides two ways for merchants to set up the MCP server:
Running the MCP server locally. This option enables developers to download, install, and run the MCP server locally.
Using the MCP server remotely. This option is for users who prefer not to install the MCP server locally. With remote MCP server support, users can continue their tasks across devices with a single login after authentication.
One way to use the MCP server is to run it locally. To do that, you must first install Node.js v18 or later. If you haven't already done so, visit the Node.js website to download and install it.
To install the MCP server in a local configuration:
Update the configuration file in your favorite MCP client
Open the MCP client.
In the configuration settings for the client, locate the external tools or connectors configuration section, and add the PayPal connector configuration that follows this procedure. In Claude, for example, you add this to
~/Claude/claude_desktop_config.json
.In the new entry, replace
YOUR_PAYPAL_ACCESS_TOKEN
with your actual PayPal access token. Alternatively, you can set thePAYPAL_ACCESS_TOKEN
as an environment variable. You also can pass it as an argument using--access-token
inargs
. Set thePAYPAL_ENVIRONMENT
toSANDBOX
for testing orPRODUCTION
for your production environment.
Last updated
Was this helpful?