Whop API Keys for MCP
Most Whop MCP setups need no API key at all. Use this guide to see when browser sign-in is enough and when you need an Account API key, an App API key, or an OAuth token.
For most seller workflows, connect https://mcp.whop.com/mcp with browser sign-in and start with read-only prompts. Use an account-scoped API key only for the local @whop/mcp package or for direct REST calls. Use app credentials only when the work depends on accounts that installed your Whop app.
Checked November 21, 2026: Current API and Legacy API. Whop serves two API surfaces. Its docs say new integrations should build on the Current API, which renames companies to accounts and plans to variants, and is pinned by date with the Api-Version-Date header. The Legacy API stays fully supported. API keys can carry a stored version pin: existing keys without one use the original 2025-01-01 behavior, newly created keys use the latest released version, and an explicit header takes precedence. The hosted MCP server always sends version 2026-11-20. Whop explains pins on its API versions page and maps resources between the two surfaces on its API stability page.
Which Whop credential should MCP use?
| Credential | Use when | Avoid when | First safe prompt |
|---|---|---|---|
| Browser sign-in on the hosted server | You run a Whop business and want an AI client to read or change products, variants, payments, memberships, or checkout resources. | You need the sandbox, webhook management, or an unattended backend job. | Run connection_status and accounts_list. Tell me which businesses you can reach. Do not change anything. |
| Account API key | You use the local @whop/mcp package or call the REST API for one account's products, variants, payments, memberships, or checkout resources. | You are connecting the hosted server. It takes no key. | List read-only tools available for my account. Do not modify data. |
| App API key | You are developing or debugging an installed Whop app and need app-context API access. | You only need seller operations for one account. | Explain which accounts or app resources this key can access before making calls. |
| OAuth token | Your own app acts on behalf of a specific Whop user. | You need a durable backend credential for account operations. | Explain the user context and scopes before using the token. |
| Sandbox key | You are testing checkout, payment, or membership code against https://sandbox-api.whop.com/api/v1. | You are using the hosted MCP server. It only reaches production. | Confirm this is sandbox before creating or updating anything. |
Sandbox and production share no keys. The local package only reaches the sandbox when WHOP_BASE_URL is set to the sandbox URL. Whop does not document that setting for the package, so test it with a read-only call first.
Checked November 21, 2026 against Whop's AI and MCP guide.
Hosted server: browser sign-in, no key
The hosted server at https://mcp.whop.com/mcp signs you in through your browser on Whop's own consent screen. Whop's guide says not to add an API key or a custom header to the client config.
- One permission level. The server advertises a single
adminscope. On/mcpevery grant is the full admin profile, even when a client asks for less. There is no read-only sign-in. - The grant is you. A hosted connection is not tied to one business. It can act on every business your Whop login manages. The agent picks the business on each call with
account_id, which it finds withaccounts_list. - Production only. The hosted server cannot reach the Whop sandbox.
- Sign-in problems. Whop's guide lists three: an expired attempt (start again), a 403 at the end when sign-in started in another browser (use one browser), and
invalid_grant(reconnect). An API key fixes none of them.
Because the grant covers every business you manage, name the business in your prompt.
Use the Whop tools. Run connection_status, then accounts_list.
Show me each business you can reach and its account_id.
Work only on [business name]. Do not change anything.Checked November 21, 2026 against the public whop-mcp-server source.
Account API key
API keys belong to a business. An Account API key is created inside one Whop business, on the dashboard Developer page under Account API Keys. It works for that one business. No business means no key and nothing for an agent to manage. New to Whop? Create a Whop business Paid link: if you create a Whop business through this link, Whop pays us a share of its profit from that business. Your Whop pricing is the same either way.
A key fits the local @whop/mcp package and direct REST calls: listing products, checking variants (formerly plans), summarizing failed payments, auditing memberships, or validating checkout IDs used in a codebase.
The main risk is over-broad authority. Whop's auth guide tells you to give a key a custom permission set instead of Admin. If the key can refund payments, cancel memberships, update products, or create checkout configurations, a connected MCP client can request those actions. Start with a read-only task and require explicit approval before any write.
Before calling any Whop MCP tool, explain whether the action is read-only or write-capable.
Do not create, update, delete, cancel, refund, retry, pause, resume, message, or modify data without explicit confirmation.Checked November 21, 2026 against Whop's authentication and scoping guide.
App API key
An App API key belongs in app-development work. Use it when the AI agent is helping build, debug, or validate a Whop app where the app context matters. A mistake here can affect resources tied to accounts that installed the app.
Do not switch to an App API key just because an Account API key failed. First identify whether the failure is authentication, permission scope, wrong account, wrong resource ID, or a tool argument problem. The wrong credential can make debugging harder and riskier.
OAuth tokens
OAuth is the path for user-authorized behavior. The hosted MCP server already uses it for you: browser sign-in is an OAuth flow. You only handle OAuth tokens yourself when you build an app that acts for a signed-in Whop user. The key question is whose authority a tool call should represent.
| Question | Prefer |
|---|---|
| "Can the agent summarize my business's failed payments?" | Hosted server with browser sign-in |
| "Can a local script or the local package read one account?" | Account API key |
| "Can the agent debug our installed app across customers?" | App API key |
| "Can my app perform an action as this signed-in user?" | OAuth token |
MCP config patterns
The hosted server and the local @whop/mcp process use different authentication paths. Choose one deliberately and keep credentials out of public config.
Hosted server: browser sign-in
Connect a supported client to https://mcp.whop.com/mcp and complete browser sign-in. Do not add an API key, bearer token, or custom authorization header to the hosted client configuration.
Local package: environment variable
The local package is @whop/mcp 0.0.17, published December 10, 2025. It has its own tool names and reads WHOP_API_KEY.
export WHOP_API_KEY="YOUR_WHOP_API_KEY"
npx -y @whop/mcp@latest --tools=dynamic --operation=readVS Code prompted secret (Local harness only)
This example uses the servers format and an ${input:...} variable. VS Code's docs call that the Local harness format and schedule its removal for February 2027. Copilot harness sessions reject ${input:...} variables. For Copilot, VS Code's docs configure servers in the mcpServers format in ~/.copilot/mcp-config.json or a workspace .mcp.json.
{
"inputs": [
{
"id": "whop-api-key",
"type": "promptString",
"description": "Whop API key",
"password": true
}
],
"servers": {
"whop_sdk_api": {
"command": "npx",
"args": ["-y", "@whop/mcp"],
"env": {
"WHOP_API_KEY": "${input:whop-api-key}"
}
}
}
}Checked November 21, 2026 against VS Code's MCP configuration reference.
REST bearer header shape
Account API keys are server-side credentials for direct REST calls. The accounts route below works only with an account-scoped key. A hosted connection uses accounts_list or connection_status instead.
curl https://api.whop.com/api/v1/accounts/me \
-H "Authorization: Bearer whop_x...xxxx"Approval and retries
Hosted calls run when they are made. The server has no prepare step and no confirmation token. Whop removed the earlier prepare-and-confirm flow on November 4, 2026. Approval belongs to your AI client.
- What the client sees. Whop marks payment, credential, and destructive tools with
destructiveHint. A client can use that mark to ask you first. Of the 70 listed write tools, 18 carry it. The rest, such asvariants_update(changes a price) andmessages_create(messages customers), depend on your client's per-tool settings. - Retries. Write tools that support it accept an
idempotency_key. Reuse the same key when you retry an uncertain call. Whop stores a keyed response for 24 hours and replays it. A corrected request needs a new key. - Intent. On
/mcp, operation tools requireintent(your original request) andintent_id. The server removes them before API validation and sends a bounded copy to Whop. See what Whop sees.
Counts come from Whop's public server source. They are not from a live tool listing.
Checked November 21, 2026 against the public whop-mcp-server source.
Permission planning
Permission planning applies to API keys. A hosted sign-in on /mcp is always the full admin grant, so your control there is the client's approval settings and your prompt. For keys, map the workflow first, then grant the smallest usable permission set. A reporting workflow should not need payment refund authority. A checkout debugging workflow may need to list products and variants before it ever needs to create a checkout configuration. For concrete recipes, use the Whop API permissions for MCP reference.
| Workflow | Likely read needs | Write actions to gate |
|---|---|---|
| Checkout debugging | Products, variants, checkout configurations. | Create or delete a checkout configuration, change a variant price, create a promo code. |
| Payment reporting | Payments, failed payments, fees, disputes. | Refund, retry, void, dispute evidence submission. |
| Membership support | Members, memberships, access checks, cancellations. | Cancel, pause, resume, message, change access. |
| App development | App resources, installs, accounts, webhooks, access tokens. | Credential changes, webhook changes, app deploys. |
Rotation checklist
Rotate a Whop key if it was pasted into a public issue, committed to git, shared in a screenshot, used on an untrusted machine, or connected to a client you no longer control.
- Create a replacement key with the smallest useful permissions.
- Update the MCP connector, environment variable, or local config.
- Fully restart the MCP client.
- Run a read-only test call.
- Revoke the old key.
- Search local files for accidental copies.
To find copies of the old key, search for its first characters:
rg -n --hidden --no-ignore "FIRST_8_CHARACTERS_OF_OLD_KEY" .A hosted connection has no key to rotate. In Claude, open Customize > Connectors and remove the Whop connector. Whop's guide says the grant then stops working immediately. In Claude Code, run claude mcp logout with the server name before you remove the server. Removing it alone only deletes the local token. Other clients differ, so check that the client signs out. Then sign in again if you still need the connection.
FAQ
Does the hosted Whop MCP server need an API key?
No. The hosted server at https://mcp.whop.com/mcp uses browser sign-in. Whop's guide says not to add an API key or a custom header. API keys are for the local package and direct REST calls.
Should I put a Whop API key in mcp.json?
Only if the file is private and never committed. Environment variables, prompted inputs, and client secret storage are better defaults.
Why do tools show up but calls fail?
Tool visibility only proves the MCP client can see the server. Calls can still fail because the key lacks permission, the resource belongs to another account or app context, or the agent supplied wrong arguments.
Is an App API key safer than an Account API key?
No. Safety depends on scope and workflow fit. Use an Account API key for account operations and an App API key only when the app context is required.