paypal-mcp-server
MCP server by paypal Community
Gives an AI assistant access to PayPal APIs through MCP. It covers invoices, orders, refunds, disputes, products, subscriptions and transactions. Developers and merchants can use it from MCP hosts such as Claude Desktop.
Install paypal-mcp-server
Built from the published package, never by AI.
claude mcp add paypal-mcp-server -e PAYPAL_ACCESS_TOKEN=YOUR_PAYPAL_ACCESS_TOKEN -e PAYPAL_ENVIRONMENT=YOUR_PAYPAL_ENVIRONMENT -- npx -y @paypal/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"paypal-mcp-server": {
"env": {
"PAYPAL_ENVIRONMENT": "YOUR_PAYPAL_ENVIRONMENT",
"PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN"
},
"args": [
"-y",
"@paypal/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"paypal-mcp-server": {
"env": {
"PAYPAL_ENVIRONMENT": "YOUR_PAYPAL_ENVIRONMENT",
"PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN"
},
"args": [
"-y",
"@paypal/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"paypal-mcp-server": {
"env": {
"PAYPAL_ENVIRONMENT": "YOUR_PAYPAL_ENVIRONMENT",
"PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN"
},
"args": [
"-y",
"@paypal/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add paypal-mcp-server --env PAYPAL_ACCESS_TOKEN=YOUR_PAYPAL_ACCESS_TOKEN --env PAYPAL_ENVIRONMENT=YOUR_PAYPAL_ENVIRONMENT -- npx -y @paypal/mcp{
"mcpServers": {
"paypal-mcp-server": {
"env": {
"PAYPAL_ENVIRONMENT": "YOUR_PAYPAL_ENVIRONMENT",
"PAYPAL_ACCESS_TOKEN": "YOUR_PAYPAL_ACCESS_TOKEN"
},
"args": [
"-y",
"@paypal/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add paypal-mcp-server npx -y @paypal/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the paypal-mcp-server block.
About
The PayPal MCP server lets an AI assistant work with PayPal APIs through function calling. It exposes tools grouped by service, including invoices, payments, dispute management, shipment tracking, catalog management, subscription management and transaction reporting. It is started with npx using the package @paypal/mcp and the --tools=all option.
The server needs a PayPal access token, which can be set as an environment variable or passed with --access-token. The PAYPAL_ENVIRONMENT value selects SANDBOX or PRODUCTION, with SANDBOX as the default. It is added to an MCP host such as Claude Desktop, Cline, Cursor or GitHub Copilot. It suits developers and merchants who want an assistant to handle PayPal tasks, and it requires Node.js 18 or later.
Written from the project's README and checked against it.
Tools it gives your assistant
create_invoiceCreate a new invoice in the PayPal system.list_invoicesList invoices with optional pagination and filtering.create_orderCreate an order in PayPal system based on provided details.create_refundProcess a refund for a captured payment.list_disputesRetrieve a summary of all open disputes.create_shipment_trackingCreate a shipment tracking record.create_productCreate a new product in the PayPal catalog.create_subscription_planCreate a new subscription plan.create_subscriptionCreate a new subscription.list_transactionsList transactions with optional pagination and filtering.
What you need
- PayPal developer account for sandbox or PayPal business account for production
- PayPal access token
- Node.js 18 or later
- An MCP host such as Claude Desktop, Cline, Cursor or GitHub Copilot
| Setting | Needed | What it is |
|---|---|---|
PAYPAL_Environment variable, secret | Required | YOUR_PAYPAL_ACCESS_TOKEN ref: https://docs.paypal.ai/developer/how-to/api/get-started |
PAYPAL_Environment variable | Required | 'SANDBOX' or 'LIVE' |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List my PayPal invoices
- Create a refund for a captured payment
- Show me all open PayPal disputes
Good to know
- Sandbox access tokens are valid for 3 to 8 hours and production tokens for 8 hours.
- PAYPAL_ENVIRONMENT defaults to SANDBOX mode.
- Output may be inaccurate or incomplete, so users should verify information before relying on it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to paypal-mcp-server
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
paypal-mcp-server: common questions
How do I get a PayPal access token for this server?
The source explains generating a token with the client credentials grant using your Client ID and Client Secret from the PayPal Developer Dashboard. It uses the sandbox URL for testing and the production URL for live use.
Does it work with sandbox or production PayPal accounts?
Both are supported. Set PAYPAL_ENVIRONMENT to SANDBOX for testing or PRODUCTION for the live environment.
Which AI assistants can use the PayPal MCP server?
The source describes use with MCP hosts including Claude Desktop, Cline, Cursor and GitHub Copilot. Claude Desktop is the example used in the guide.
How do I install paypal-mcp-server?
In Claude Code run claude mcp add paypal-mcp-server -e PAYPAL_ACCESS_TOKEN=YOUR_PAYPAL_ACCESS_TOKEN -e PAYPAL_ENVIRONMENT=YOUR_PAYPAL_ENVIRONMENT -- npx -y @paypal/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is paypal-mcp-server the official server?
paypal-mcp-server is a community project by paypal, not verified by a company domain.
Is paypal-mcp-server free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is paypal-mcp-server safe to use?
It scores 54 of 100. Grades: maintenance F, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to paypal-mcp-server?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does paypal-mcp-server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
