Global payments + payouts giant. Owns Braintree (separate package). Orders v2 + Payments + Payouts + Subscriptions + Disputes + Webhooks. OAuth2 client_credentials. Sandbox/live toggle.
PayPal gives your agent 19 tools it calls directly β pick the ones it needs, in Claude, Cursor, or any MCP client.
create_order β Create a PayPal Order via POST /v2/checkout/orders. Pass intent ('CAPTURE' or 'AUTHORIZE') and purchase_units (each with an amount object). Returns the order with id, status, and HATEOAS links (including the approve URL for the buyer).get_order β Fetch a PayPal Order by id via GET /v2/checkout/orders/{id}. Returns the full order including status, purchase_units, and payments collection.capture_order β Capture payment for an approved order via POST /v2/checkout/orders/{id}/capture. Use after the buyer approves an order with intent=CAPTURE. Returns the captured payment details.// Your agent calls a tool directly β no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_order", { /* ... */ });$ 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.