All tools

Create a cohort

Creates a saved cohort of users from a cohort definition.

View on GitHub
Updated Sep 26, 2026Available asMCPCLI

Description

Over MCP, `Describe-Cohort-Schema` documents the structure of a cohort definition.

create-cohort.md

Create a cohort

Creates a saved cohort of users from a cohort definition.

Over MCP, Describe-Cohort-Schema documents the structure of a cohort definition.

Set up

Use the first option your agent supports.

MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

{ "mcpServers": { "mixpanel": { "url": "https://mcp.mixpanel.com/mcp" } } }

Call the MCP tool Create-Cohort.

Server URL: https://mcp.mixpanel.com/mcp

CLI (official)

Install the command, then confirm it runs.

pip install mixpanel-headless
mp --version

Run mp cohorts create.

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remoteCreate-CohortOAuthDocs
CLIOfficialmp cohorts createOAuthDocs

Workflows using Create a cohort

No workflows yet
No published workflow uses Create a cohort yet.