Whop MCP connector
OAuth2.1/DCRDeveloper ToolsProductivityWhop is a platform for selling digital products, memberships, and communities.
Whop MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. 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> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'whopmcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Whop MCP:', link)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'whopmcp_list_api_endpoints',toolInput: {},})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "whopmcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Whop MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="whopmcp_list_api_endpoints",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”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
Tool list
Section titled “Tool list”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.
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.
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
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.
languagestringrequiredThe programming language or protocol to get documentation for.querystringrequiredThe search query to find relevant documentation.