---
ref: tool:mixpanel/create-cohort
name: Create a cohort
company: company:mixpanel
workflows: []
access: [mcp, cli]
tags: [capability:build-audience, category:product-analytics, has:cli, has:mcp]
docs: https://docs.mixpanel.com/docs/mcp
updated: 2026-09-26
---

# 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.

```json
{ "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.

```sh
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.
