Global payments + payouts giant. Owns Braintree (separate package). Orders v2 + Payments + Payouts + Subscriptions + Disputes + Webhooks. OAuth2 client_credentials. Sandbox/live toggle.
$ npm install @codespar/mcp-paypalAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"paypal": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-paypal"
],
"env": {
"PAYPAL_CLIENT_ID": "<your_paypal_client_id>",
"PAYPAL_CLIENT_SECRET": "<your_paypal_client_secret>"
}
}
}
}After restart, your agent can call any of the 19 tools below โ try create_order first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
PAYPAL_CLIENT_IDPayPal REST app client id (from developer.paypal.com Apps & Credentials).
PAYPAL_CLIENT_SECRETPayPal REST app client secret (OAuth2 client_credentials password).
PAYPAL_ENVPayPal environment. 'sandbox' (default, https://api-m.sandbox.paypal.com) or 'live' (https://api-m.paypal.com).
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
create_orderget_ordercapture_orderauthorize_ordercapture_authorizationrefund_capturevoid_authorizationget_payment_detailsMCP is a protocol โ any framework that speaks it can mount this server.