Set up PayPal in Metorial for Claude, ChatGPT and Cursor
Share PayPal with your team in Claude, ChatGPT and Cursor through Metorial: client credentials sign-in, 16 tools (4 read-only).
To give your team PayPal in Claude, ChatGPT, Cursor and other AI clients, an admin shares the PayPal integration in a Metorial portal, and each person connects with client credentials. Agents can process payments, manage orders, and handle financial transactions through PayPal. The integration has 16 tools, 4 read-only and 12 write, plus 6 triggers.
What you'll learn
- How an admin shares PayPal in a portal and how each person connects
- What PayPal asks for when you connect, and where to find it
- How to keep the 4 read-only tools and reject the other 12
Before you start
- A portal with at least one access group
- Client credentials from PayPal for each person, or one set for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| Client Credentials | Custom credentials | clientId, clientSecret and environment |
Client Credentials
To connect, a person enters these values:
clientId: PayPal REST API Client IDclientSecret: PayPal REST API Client Secretenvironment(optional): PayPal environment One of "sandbox", "production".
Setup settings
Setup also asks for:
environment(optional): PayPal environment to use. Use sandbox for testing. One of "sandbox", "production".
Admin: share PayPal in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose PayPal. For how members connect, choose Each person connects so everyone enters their own client credentials, or Shared connection to enter the client credentials once for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from PayPal.
Choose who gets it
Add the access groups that should see PayPal. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user PayPal integration. Once it exists, check which groups have it:
Employee: connect PayPal
In the portal
Open PayPal in the catalog
Sign in to your portal and open PayPal. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your client credentials (clientId and clientSecret).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your PayPal connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_order and get_payout, and lose the 12 write tools, such as send_payout or add_tracking.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 16 tools, minus any you rejected. list_invoices takes no input. It lists PayPal invoices with optional pagination.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (4)
get_order: Retrieve details of a PayPal order by its ID. NeedsorderId.get_payout: Retrieve the status and details of a PayPal batch payout or individual payout item.search_transactions: Search PayPal transaction history by date range, status, amount, and other filters. NeedsstartDateandendDate.list_invoices: List PayPal invoices with optional pagination.
Write tools (12)
add_tracking: Add shipment tracking information to a captured PayPal payment. NeedscaptureId,trackingNumberandcarrier.manage_product: Create, retrieve, or list PayPal catalog products. Needsaction.send_payout: Send batch payouts to one or more recipients via PayPal email, phone, or PayPal ID. NeedssenderBatchIdandrecipients.capture_order: Capture payment for an approved PayPal order. NeedsorderId.manage_payment: Manage payment authorizations, captures, and refunds. NeedsactionandresourceId.create_subscription: Create a new PayPal subscription for a billing plan. NeedsplanId.create_invoice: Create and optionally send a PayPal invoice. NeedscurrencyCode,recipientEmailanditems.manage_invoice: Manage existing PayPal invoices. NeedsactionandinvoiceId.create_order: Create a new PayPal checkout order. NeedsintentandpurchaseUnits.manage_subscription: Manage an existing PayPal subscription. Needsaction.manage_billing_plan: Create, retrieve, list, activate, or deactivate PayPal billing plans. Needsaction.manage_dispute: Manage PayPal customer disputes (chargebacks, claims, inquiries). Needsaction.
Triggers
PayPal has 6 triggers, which fire on events in PayPal:
payment_events: Triggers on payment lifecycle events including authorizations, captures, refunds, and reversals.payout_events: Triggers on payout batch and item events including processing, success, denied, blocked, cancelled, held, and more.invoice_events: Triggers on invoice lifecycle events: created, updated, scheduled, paid, refunded, and cancelled.dispute_events: Triggers when customer disputes are created, updated, or resolved.order_events: Triggers on checkout order lifecycle events: approved, completed, processed, and payment approval reversed.subscription_events: Triggers on subscription lifecycle events including creation, activation, cancellation, suspension, payment failures, and plan/product changes.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use PayPal there
- Tool permissions: tool filters and what employees see
- PayPal on metorial.com: the integration overview