> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Stripe in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/stripe
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Stripe for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/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.

1. **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**.

2. **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.

3. **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

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **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.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Stripe.

4. **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:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search stripe
```

## Employee: connect Stripe

### In the portal

1. **Open Stripe in the catalog**

   Sign in to your portal and open Stripe. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Stripe sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search stripe
metorial setup <catalog-item-id>
```

`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.

```bash
metorial list stripe
metorial client list
metorial install <client-identifier> <integration-id>
```

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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list stripe
metorial tools <integration-id>
metorial call <integration-id> get_balance -d '{"action":"get_balance"}'
```

`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. Needs `action`.
- `search_charges`: Retrieve a specific charge or list charges with optional filters. Needs `action`.
- `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. Needs `action`.
- `manage_payouts`: Create, retrieve, or list payouts. Needs `action`.
- `create_payment_link`: Create a shareable Stripe Payment Link for accepting one-time or recurring payments without building a custom checkout page. Needs `action`.
- `manage_coupons`: Create, retrieve, update, delete, or list coupons; create, retrieve, update, or list promotion codes. Needs `resource` and `action`.
- `create_checkout_session`: Create a hosted Stripe Checkout session or retrieve, list, or expire existing sessions. Needs `action`.
- `manage_invoices`: Create, retrieve, update, finalize, send, pay, or void invoices. Needs `action`.
- `manage_customers`: Create, retrieve, update, or delete Stripe customers. Needs `action`.
- `manage_payment_intents`: Create, retrieve, update, confirm, capture, or cancel PaymentIntents. Needs `action`.
- `manage_products_prices`: Create, retrieve, update, or delete products and their associated prices. Needs `resource` and `action`.
- `manage_disputes`: Retrieve, list, update, or close disputes (chargebacks). Needs `action`.
- `manage_payment_methods`: Retrieve, list, attach, or detach Stripe PaymentMethods for customer billing and saved payment flows. Needs `action`.
- `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. Needs `action`.
- `manage_setup_intents`: Create, retrieve, confirm, cancel, or list Stripe SetupIntents for saving payment methods for future use. Needs `action`.

### Destructive tools (1)

- `create_refund`: Issue a full or partial refund on a charge or PaymentIntent. Needs `action`.

## 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](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Stripe there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Stripe on metorial.com](https://metorial.com/integrations/stripe): the integration overview