Gigante global de pagos + payouts. Dueño de Braintree (paquete separado). Orders v2 + Payments + Payouts + Subscriptions + Disputes + Webhooks. OAuth2 client_credentials. Toggle sandbox/live.
PayPal le da a tu agente 19 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
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-paypalAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"paypal": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-paypal"
],
"env": {
"PAYPAL_CLIENT_ID": "<your_paypal_client_id>",
"PAYPAL_CLIENT_SECRET": "<your_paypal_client_secret>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 19 herramientas de abajo — probá create_order primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
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).
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_orderget_ordercapture_orderauthorize_ordercapture_authorizationrefund_capturevoid_authorizationget_payment_detailsMCP es un protocolo — cualquier framework que lo hable puede montar este server.