Set up Stripe in Metorial for Claude, ChatGPT and Cursor
Share Stripe with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 18 tools (3 read-only).
To give your team Stripe in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Stripe integration in a Metorial portal, and each person signs in to Stripe with their own account. Agents can process payments, manage subscriptions, and handle invoices. The integration has 18 tools, 3 read-only, 14 write and 1 destructive, plus 6 triggers.
What you'll learn
- How an admin shares Stripe in a portal and how each person connects
- The 2 OAuth scopes Stripe can request, and what each one allows
- How to keep the 3 read-only tools and reject the other 15
Before you start
- A portal with at least one access group
- An account with Stripe for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
| OAuth (Stripe Connect) (default) | OAuth | Signs in to Stripe |
Also available: OAuth (Stripe Apps).
The portal and metorial setup use OAuth (Stripe Connect) unless someone picks another method.
API Key
To connect, a person enters:
token: Stripe secret API key (starts with sk_live_ or sk_test_)
OAuth (Stripe Connect)
People sign in to Stripe and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
read_write | Read & Write | Full read and write access to the connected Stripe account |
read_only | Read Only | Read-only access to the connected Stripe account |
Setup settings
Whichever method you pick, setup also asks for:
stripeAccountId(optional): Connected Stripe account ID to act on behalf of (for Stripe Connect platforms). When set, all API calls include the Stripe-Account header.
Use your own Stripe OAuth app
With your own OAuth app, people see your company's name on the Stripe consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Stripe and copy the Redirect URI.
Register the app with Stripe
Create an OAuth app or client in Stripe and add the redirect URI from Metorial as its redirect or callback URL.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Stripe integration.
Admin: share Stripe 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 Stripe. Under Auth Method, keep OAuth (Stripe Connect) or pick another. For how members connect, choose Each person connects, so everyone signs in to Stripe as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Stripe.
Choose who gets it
Add the access groups that should see Stripe. 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 Stripe integration. Once it exists, check which groups have it:
Employee: connect Stripe
In the portal
Open Stripe in the catalog
Sign in to your portal and open Stripe. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Stripe sign-in tab opens. Sign in and approve the permissions listed.
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. metorial setup uses OAuth (Stripe Connect). To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Stripe 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 3 read-only tools, such as get_account and get_balance, and lose the 14 write tools, such as manage_coupons or manage_payouts, and the destructive tool create_refund.
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 18 tools, minus any you rejected. get_balance needs action, so replace the placeholders. It retrieves your Stripe account balance across available and pending states.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (3)
get_balance: Retrieve your Stripe account balance across available and pending states. Needsaction.search_charges: Retrieve a specific charge or list charges with optional filters. Needsaction.get_account: Identify the Stripe account used by this connection, including any configured connected-account target, and inspect payment and payout readiness.
Write tools (14)
manage_subscriptions: Create, retrieve, update, cancel, pause, or resume subscriptions. Needsaction.manage_payouts: Create, retrieve, or list payouts. Needsaction.create_payment_link: Create a shareable Stripe Payment Link for accepting one-time or recurring payments without building a custom checkout page. Needsaction.manage_coupons: Create, retrieve, update, delete, or list coupons; create, retrieve, update, or list promotion codes. Needsresourceandaction.create_checkout_session: Create a hosted Stripe Checkout session or retrieve, list, or expire existing sessions. Needsaction.manage_invoices: Create, retrieve, update, finalize, send, pay, or void invoices. Needsaction.manage_customers: Create, retrieve, update, or delete Stripe customers. Needsaction.manage_payment_intents: Create, retrieve, update, confirm, capture, or cancel PaymentIntents. Needsaction.manage_products_prices: Create, retrieve, update, or delete products and their associated prices. Needsresourceandaction.manage_disputes: Retrieve, list, update, or close disputes (chargebacks). Needsaction.manage_payment_methods: Retrieve, list, attach, or detach Stripe PaymentMethods for customer billing and saved payment flows. Needsaction.create_billing_portal_session: Create a short-lived Stripe-hosted Billing Portal session so a customer can manage subscriptions, invoices, and payment methods.manage_tax_rates: Create, retrieve, update, or list Stripe manual Tax Rates for invoices, subscriptions, and Checkout Sessions. Needsaction.manage_setup_intents: Create, retrieve, confirm, cancel, or list Stripe SetupIntents for saving payment methods for future use. Needsaction.
Destructive tools (1)
create_refund: Issue a full or partial refund on a charge or PaymentIntent. Needsaction.
Triggers
Stripe has 6 triggers, which fire on events in Stripe:
checkout_events: Triggered when a Checkout session completes, expires, or its asynchronous payment succeeds or fails.subscription_events: Triggered when subscription lifecycle events occur, including creation, updates, cancellation, trial expiration, pausing, and resumption.payment_events: Triggered when payment-related events occur, including PaymentIntent, Charge, Refund, and Dispute lifecycle changes such as creation, success, failure, and refunds.customer_events: Triggered when customer-related events occur, including customer creation, updates, deletion, and changes to legacy payment sources.invoice_events: Triggered when invoice lifecycle events occur, including creation, finalization, payment success/failure, voiding, and overdue status.payout_events: Triggered when payout events occur, including creation, success, failure, and cancellation of transfers to your bank account or debit card.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Stripe there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Stripe on metorial.com: the integration overview