Gigante global de pagamentos + payouts. Dono do Braintree (pacote separado). Orders v2 + Payments + Payouts + Subscriptions + Disputes + Webhooks. OAuth2 client_credentials. Toggle sandbox/live.
O PayPal dá ao seu agente 19 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer 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-paypalAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com 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>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 19 ferramentas abaixo — teste create_order primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da 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 ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
create_orderget_ordercapture_orderauthorize_ordercapture_authorizationrefund_capturevoid_authorizationget_payment_detailsMCP é um protocolo — qualquer framework que o fale pode montar este server.