Skip to content
Scalekit Docs

Connect AI agents to the Whop MCP server

Vendor MCP4 toolsOAuth 2.1/DCRDeveloper ToolsProductivity

The Whop MCP connector routes your AI agent's tool calls to Whop's own MCP server through Scalekit. Each user signs in to Whop once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 4 tools.

  1. Terminal window
    npm install @scalekit-sdk/node dotenv

    Full SDK reference: Node.js | Python

  2. Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'whopmcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Whop MCP:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'whopmcp_list_api_endpoints',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

Connect this agent connector to let your agent:

  • Search docs — Search for documentation for how to use the client to interact with the API
  • List api endpoints — List or search for all endpoints in the Whop TypeScript API
  • Endpoint invoke api — Invoke an endpoint in the Whop TypeScript API
  • Get api endpoint schema — Get the schema for an endpoint in the Whop TypeScript API

Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.

whopmcp_get_api_endpoint_schema#Get the schema for an endpoint in the Whop TypeScript API. You can use the schema returned by this tool to invoke an endpoint with the `invoke_api_endpoint` tool.1 param

Get the schema for an endpoint in the Whop TypeScript API. You can use the schema returned by this tool to invoke an endpoint with the `invoke_api_endpoint` tool.

NameTypeRequiredDescription
endpointstringrequiredThe name of the endpoint to get the schema for.
whopmcp_invoke_api_endpoint#Invoke an endpoint in the Whop TypeScript API. Note: use the `list_api_endpoints` tool to get the list of endpoints and `get_api_endpoint_schema` tool to get the schema for an endpoint.2 params

Invoke an endpoint in the Whop TypeScript API. Note: use the `list_api_endpoints` tool to get the list of endpoints and `get_api_endpoint_schema` tool to get the schema for an endpoint.

NameTypeRequiredDescription
argsobjectrequiredThe arguments to pass to the endpoint, as a JSON object matching the endpoint's schema.
endpoint_namestringrequiredThe name of the endpoint to invoke.
whopmcp_list_api_endpoints#List or search for all endpoints in the Whop TypeScript API1 param

List or search for all endpoints in the Whop TypeScript API

NameTypeRequiredDescription
search_querystringoptionalAn optional search query to filter the endpoints by.
whopmcp_search_docs#Search for documentation for how to use the client to interact with the API.2 params

Search for documentation for how to use the client to interact with the API.

NameTypeRequiredDescription
languagestringrequiredThe programming language or protocol to get documentation for.
querystringrequiredThe search query to find relevant documentation.