Whop Checkout via MCP

Use this page when an MCP client is helping with Whop checkout work: finding the right product and variant, drafting checkout configuration arguments, preparing an embed, and deciding what needs your approval.

Whop's checkout docs stay the reference. This page adds the MCP operating layer: which facts the agent should gather, which IDs matter, what to review, and which write actions should wait for your yes.

Checked November 21, 2026: variants replaced plans. The hosted server at https://mcp.whop.com/mcp calls Whop's Current API at version 2026-11-20. There a checkout configuration takes variant_id or an inline variant, plus account_id. Variants are what Whop used to call plans, and their IDs keep the plan_ prefix. The older fields plan_id, inline plan, and company_id belong to the Legacy API and to older API versions. Which fields a direct REST call needs depends on the version your API key is pinned to. Whop's API stability page maps each resource between the two surfaces.

Permission for creating a checkout configuration (Current API): checkout_configuration:create

Whop's Legacy reference page lists five: checkout_configuration:create plan:create access_pass:create access_pass:update checkout_configuration:basic:read. These names matter for API keys. A hosted browser sign-in is always the full admin grant.

Before you sell: you need a Whop business

Products, variants, and checkout links all live inside a Whop business. An AI client can only build checkout for a business your Whop login manages.

No business yet? Create a Whop business

Checked November 21, 2026 against Whop's verification reference.

Safe checkout workflow

Checkout has two layers: implementation code and live Whop account state. The hosted server covers both from one connection. It searches Whop's docs with docs_search and docs_query, and it reads your live products and variants. It should not jump straight to creation.

For a payment checkout configuration, send either an existing variant_id or an inline variant object. Do not send both. mode is payment by default. Set mode to setup to save payment details without charging. payment_method_configuration works in both modes. Ask the agent to run describe_operation for the exact inputs.

  1. Ask the hosted server to search Whop's docs for the checkout path and current element props. Tell it not to create or change anything.
  2. Inspect app code for plan_ IDs, ch_ IDs, return URLs, embed props, and environment variables.
  3. Use read-only tools to list products, variants, and checkout configurations.
  4. Compare live resources to the codebase and identify mismatches.
  5. Draft a checkout configuration, embed change, or debugging plan.
  6. Approve only after seeing exact arguments and customer-facing effects.

Checked November 21, 2026 against Whop's AI and MCP guide.

Checkout primitives

PrimitiveWhat it answersWhat MCP should verify
ProductWhat is being sold?Name, product ID, visibility, status, attached variants.
Variant (formerly plan)What price and billing behavior does checkout use?plan_ ID, amount, currency, billing interval, active state. Each variant has its own purchase_url, so a checkout configuration is optional.
Checkout configurationWhat reusable checkout setup should customers visit?ch_ ID, variant_id or inline variant, account_id, mode, metadata, redirect URL, affiliate code, and the purchase_url the API returns. Metadata and attribution live here. The Current API has no separate checkout session resource.
Embedded checkoutHow does checkout appear inside your own app or site?The Elements Checkout element and its props: plan, checkoutConfiguration, returnUrl, affiliateCode, utm, metadata.

Hosted tools for checkout

Tool names on the hosted server follow the pattern group_operation. There are variants_* tools and no plans_* tools.

ToolTypeHow the agent reaches itNote
accounts_listReadListed toolFinds the business and its account_id.
products_list, products_getReadListed toolFinds what is being sold.
variants_list, variants_getReadListed toolFinds the price, the plan_ ID, and the variant's own purchase_url.
checkout-configurations_list, checkout-configurations_getReadThrough search_operationsListing needs an account_id.
checkout-configurations_createWriteListed toolHas no destructive mark, so your client may not ask first. The listed schema leaves out the inline variant. describe_operation shows the full schema.
checkout-configurations_deleteWrite, marked destructiveListed toolRemoves a configuration.
variants_create, variants_updateWriteListed toolvariants_update can change a price and has no destructive mark.

The hosted server lists 95 operations and 106 tools on /mcp. These details come from Whop's public server source. They are not from a live tool listing.

Checked November 21, 2026 against the whop-mcp-server operation list.

Inspect checkout without modifying data

Most checkout bugs can be diagnosed before creating or updating anything. Start with a read-only inventory that connects product names to variant IDs and customer-facing URLs.

Use read-only Whop MCP calls to inspect checkout resources for [business name].
Return a table with product name, product ID, variant name, variant ID, status, price, purchase URL, checkout configuration ID, metadata keys, and affiliate code.
Do not create, update, archive, delete, refund, retry, or message anything.

Use the result to catch stale plan_ IDs, inactive variants, checkout links pointing to the wrong product, missing metadata, or affiliate attribution that never reaches checkout.

Create a checkout configuration draft

Creating a checkout configuration is a write action on your live business. Make the agent draft the JSON first, then approve the tool call only after reviewing the customer-facing effect.

Draft the arguments for a Whop checkout configuration.

Use:
- account_id: biz_xxxxxxxxxxx
- variant_id: plan_xxxxxxxxxxx
- mode: payment
- redirect URL: https://example.com/checkout/complete
- metadata: order_id=order_12345, source=whopmcp
- affiliate_code: partnername

Do not call a write-capable tool yet. Show the exact JSON you would pass.
{
  "account_id": "biz_xxxxxxxxxxx",
  "variant_id": "plan_xxxxxxxxxxx",
  "mode": "payment",
  "redirect_url": "https://example.com/checkout/complete",
  "metadata": {
    "order_id": "order_12345",
    "source": "whopmcp"
  },
  "affiliate_code": "partnername"
}

A successful create call returns a checkout configuration ID that starts with ch_ and a purchase_url, which Whop describes as the checkout URL you can send to customers. Use the purchase_url the API returns. Do not build one by hand.

Illustrative example, not real account data. Other response fields are left out.

{
  "id": "ch_xxxxxxxxxxxxxx",
  "account_id": "biz_xxxxxxxxxxx",
  "mode": "payment",
  "purchase_url": "https://whop.com/checkout/plan_xxxxxxxxxxxxx/?session=ch_xxxxxxxxxxxxxx"
}

Legacy shape. The Legacy API and API versions before the rename use plan_id or an inline plan with company_id, and the Legacy page shows purchase URLs shaped like /checkout/ch_xxxx/. Whop renamed company_id to account_id in version 2026-07-18 and plan to variant on checkout configurations in version 2026-10-27-2. An existing API key with no version pin still gets the 2025-01-01 behavior and plan_id. A newly created key gets the latest version and variant_id.

Checked November 21, 2026 against Whop's create checkout configuration reference.

Embedded checkout

Whop's docs cover embedded checkout with the Elements packages and their Checkout element. Whop's old checkout embed URL now redirects to the Elements docs. Start new work there.

npm install @whop/elements @whop/elements-react

The Checkout element's props include plan, items, checkoutConfiguration, promoCode, affiliateCode, utm, metadata, and returnUrl. There is no planId prop. MCP can help find the right variant or checkout configuration, but generated embed code should still go through code review against Whop's current page.

returnUrl is one of the element's props. Check Whop's Elements docs for when it applies. Do not treat anything the browser reports as proof of payment: confirm with a webhook or by reading the payment.

Older package: @whop/checkout

The older package, installed with npm install @whop/checkout, provides the WhopCheckoutEmbed component. It is still on npm (0.7.0, September 11, 2026), but Whop's docs no longer mention it. Keep this section for code you already run.

import { WhopCheckoutEmbed } from "@whop/checkout/react";

export function CheckoutPage() {
  return (
    <WhopCheckoutEmbed
      planId="plan_xxxxxxxxxxx"
      returnUrl="https://example.com/checkout/complete"
      affiliateCode="partnername"
    />
  );
}

This example follows the package's own README. Whop's current docs do not cover it, so check the README on npm before you change this code.

Checked November 21, 2026 against the @whop/checkout npm page.

Embed prop checklist

Use this as a planning checklist. Before shipping, compare the generated code against Whop's Elements Checkout docs.

Elements propUse whenMCP review question
planYou are checking out a known variant directly.Did the agent verify the live variant is active and belongs to the expected product?
checkoutConfigurationYou created or retrieved a checkout configuration first.Does the configuration carry the metadata or attribution the workflow needs?
returnUrlWhop lists it as a prop of the Checkout element.Does the return page exist, and does fulfillment wait for a webhook or a payment read?
affiliateCodeCheckout should attribute a partner.Is attribution also reflected in links or server-side configuration?
promoCodeCheckout should apply a promo code.Did the agent confirm the promo code exists and is active?
utm, metadataYou track where a purchase came from.Do the same values reach your webhook handler?

The older WhopCheckoutEmbed component used different prop names, such as planId. Do not mix the two sets.

Sandbox and test checkouts

Checked November 21, 2026 against Whop's sandbox guide.

Webhook context after checkout

Checkout UI callbacks are useful, but server-side fulfillment should rely on verified webhook events. Whop's webhook guide documents signature verification and common events such as payment.succeeded, membership.activated, and setup-intent events. The hosted server's webhook tools need an API key, so a browser sign-in cannot create or change webhook endpoints. Manage endpoints in the Whop dashboard or with an API key.

Event familyUse forMCP task
payment.succeededConfirm a payment completed.Inspect webhook handler code and verify it is idempotent.
membership.activatedConfirm customer access changed.Map membership activation to product access and onboarding.
setup_intent.succeededConfirm a saved-payment-method setup completed.Check whether the flow uses setup intent state correctly before future charges. Webhook endpoint management uses developer:manage_webhook; any webhook_receive:* app permission is a separate install concern.
Inspect the Whop webhook handler for checkout fulfillment.
Confirm it verifies signatures, returns 2xx quickly, handles duplicate delivery, and treats embed callbacks as UI state rather than final fulfillment proof.
Do not edit the handler yet.

Affiliate attribution

Whop affiliate attribution can appear in links and checkout/API fields. Keep attribution explicit so you can tell whether traffic came from a partner link, embedded checkout, or an MCP-created checkout configuration.

SurfaceField or patternUse for
Referral link?a=<username>Simple public attribution links.
Checkout configurationaffiliate_codeAPI/MCP-created checkout setup.
Elements Checkout elementaffiliateCodeEmbedded checkout attribution.

Approval prompt for write actions

Hosted tools act on the first call. The server has no prepare step, and Whop removed the old mcp_confirmation_token flow on November 4, 2026. Approval belongs to your AI client. Creating a checkout configuration has no destructive mark, so your client may run it without asking. Use this prompt before checkout creation, variant price changes, promo code changes, payment retries, or anything that can affect a customer purchase.

Before calling a write-capable Whop checkout tool, show:
1. Exact tool name
2. Exact JSON arguments
3. Target business (account_id), product, variant, checkout configuration, payment, or promo code
4. Customer-facing effect
5. That this runs on production
6. Rollback or cleanup path

Hosted tools act on the first call, so show me everything above and wait for my yes. Use one stable idempotency_key. If the result is uncertain, check the effect or retry with the same idempotency_key. Never retry with a new key.

Checked November 21, 2026 against the public whop-mcp-server source.

FAQ

Do I need two MCP servers for checkout, one for docs and one for the API?

No. Use the hosted server for both. Have it search Whop's docs with no writes, then list live variants and checkout configurations.

Is it variant_id or plan_id?

The hosted server and the latest Current API version use variant_id with account_id. plan_id is the Legacy name and still applies to older API versions. Variant IDs keep the plan_ prefix either way.

Can Whop MCP create checkout resources?

Yes. The hosted server lists checkout-configurations_create and variants_create. Both run on your live business when called, so review the arguments first.

Do I have to verify my identity before I can sell?

No. You can create products and checkout links and start selling first. Whop's API reference says payments stop at $5,000 in payments until you verify, and you always need verification and a payout method to withdraw.

What should I verify before approving checkout changes?

Verify the business, the variant ID or inline variant (not both), mode, redirect URL, metadata, affiliate code, and whether the action creates a new resource or changes an existing one. Remember the hosted server works on production.

Related Whop MCP guides

Official checkout references