MetorialDocs

Set up Whop in Metorial for Claude, ChatGPT and Cursor

Share Whop with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 17 tools (11 read-only).

To give your team Whop in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Whop integration in a Metorial portal, and each person signs in to Whop with their own account. Agents can manage Whop products, pricing plans, memberships, members, payments, refunds, promo codes, checkout configurations, invoices, and user profiles. The integration has 17 tools, 11 read-only, 2 write and 4 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Whop in a portal and how each person connects
  • The 3 OAuth scopes Whop can request, and what each one allows
  • How to keep the 11 read-only tools and reject the other 6

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth (default)OAuthSigns in to Whop
API KeyAPI tokentoken

The portal and metorial setup use OAuth unless someone picks another method.

OAuth

People sign in to Whop and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
openidOpenIDBase identity scope for authentication
profileProfileAccess to user profile information (name, username, picture)
emailEmailAccess to user email and verification status

API Key

To connect, a person enters:

  • token: Your Whop API key (Company API key or App API key)

Setup settings

Whichever method you pick, setup also asks for:

  • companyId (optional): Your Whop company ID (e.g. biz_xxxxx). Required for most API operations.

Use your own Whop OAuth app

With your own OAuth app, people see your company's name on the Whop 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 Whop and copy the Redirect URI.

Register the app with Whop

Create an OAuth app or client in Whop 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 Whop integration.

Admin: share Whop 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 Whop. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Whop as themselves.

Limit the tools

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

Choose who gets it

Add the access groups that should see Whop. 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 Whop integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search whop

Employee: connect Whop

In the portal

Open Whop in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Whop 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

metorial catalog search whop
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth. 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 Whop 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.

metorial list whop
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 11 read-only tools, such as get_user and list_plans, and lose the 2 write tools, such as create_checkout or manage_membership, and the 4 destructive tools, such as manage_plan or manage_product.

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 list whop
metorial tools <integration-id>
metorial call <integration-id> list_plans -d '{}'

metorial tools lists the 17 tools, minus any you rejected. list_plans takes no input. It lists plans in your Whop company.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (11)

  • get_payment: Retrieve detailed information about a specific payment, including user, product, membership, payment method, and refund details. Needs paymentId.
  • list_members: List members of your Whop company.
  • list_products: List products in your Whop company.
  • list_invoices: List invoices in your Whop company.
  • list_plans: List plans in your Whop company.
  • list_payments: List payments in your Whop company.
  • get_user: Retrieve a Whop user's public profile by their user ID or username. Needs userIdOrUsername.
  • list_memberships: List memberships in your Whop company.
  • get_checkout: Retrieve an existing Whop checkout configuration and its purchase URL, plan, redirect URL, and metadata without creating another checkout.
  • list_accounts: Discover Whop business accounts visible to your credentials.
  • get_current_user: Retrieve the signed-in Whop user’s identity using an OAuth connection.

Write tools (2)

  • create_checkout: Create a Whop checkout session. Needs mode.
  • manage_membership: Retrieve, update metadata, cancel, uncancel, pause, or resume a Whop membership. Needs action and membershipId.

Destructive tools (4)

  • manage_promo_code: Create, retrieve, list, or delete Whop promo codes. Needs action.
  • manage_product: Create, update, retrieve, or delete a Whop product. Needs action.
  • refund_payment: Issue a full or partial refund for a Whop payment. Needs paymentId.
  • manage_plan: Create, update, retrieve, or delete a Whop plan. Needs action.

Triggers

Whop has 4 triggers, which fire on events in Whop:

  • payment_events: Triggers when a payment succeeds or fails.
  • membership_events: Triggers when a membership is activated, deactivated, or its cancel-at-period-end setting changes.
  • setup_intent_events: Triggers when a customer saves their payment method via a setup intent (setup_intent.succeeded).
  • entry_events: Triggers when someone joins a waitlist (entry.created).

Next steps