Overview
Mixpanel provides a hosted Model Context Protocol (MCP) server that gives AI assistants direct access to your Mixpanel data. Once connected, you can query events, funnels, flows, retention, session replays, and more using natural language — no dashboard navigation required. A typical workflow looks like:- Discover: Find your projects, events, and properties
- Query: Run insights, funnels, flows, or retention analyses
- Create: Build dashboards, organize Lexicon, or manage data quality issues
- Iterate: Refine with follow-up questions in the same conversation
Available Tools
| Category | Tool | Description |
|---|---|---|
| Analytics | Run-Query | Execute insights, funnels, flows, and retention queries |
Get-Query-Schema | Get the full JSON schema for building a query | |
Get-Report | Retrieve a saved report, optionally including results | |
Display-Query | Display an interactive chart widget for a previously-run query | |
| Dashboards (Boards) | Create-Dashboard | Create a new dashboard with text cards and reports |
List-Dashboards | Browse dashboards in a project | |
Get-Dashboard | Retrieve a dashboard’s metadata, text cards, and reports | |
Update-Dashboard | Modify a dashboard’s metadata, rows, and layout | |
Duplicate-Dashboard | Create a copy of an existing dashboard | |
Delete-Dashboard | Delete a dashboard | |
| Data Discovery | Get-Business-Context | Get org- and project-specific business context, vocabulary, and query instructions |
Get-Projects | List your projects and workspaces | |
List-Organizations | List organizations the current user belongs to | |
Get-Events | Browse and search events in a project, optionally including full metadata | |
List-Properties | List and search event or user properties in a project | |
Get-Property-Values | Discover values for a specific property | |
Search-Entities | Search across dashboards, reports, experiments, feature flags, and more | |
Get-Issues | Get data quality issues filtered by event, property, type, or date | |
Get-Lexicon-URL | Get a direct link to an event or property in Lexicon | |
| Data Management | Edit-Event | Update event description, display name, tags, or visibility |
Edit-Property | Update property description, display name, hidden status, or PII classification | |
Bulk-Edit-Events | Edit multiple events at once (up to 50) with uniform or per-event fields | |
Bulk-Edit-Properties | Edit multiple properties at once (up to 50) with uniform or per-property fields | |
Create-Tag | Create a new tag in Lexicon | |
Rename-Tag | Rename an existing tag across all associated events and properties | |
Delete-Tag | Remove a tag from your project | |
Dismiss-Issues | Bulk-dismiss data quality issues by event, property, or type | |
Update-Business-Context | Update business context at the project or organization level | |
| Metrics | Create-Metric | Create a saved metric (behavior or formula) for reuse across experiments |
Get-Metric | Get the full definition of a saved metric | |
List-Metrics | List all saved metrics in a project | |
Update-Metric | Update a saved metric’s name, definition, or description | |
| Session Replays | Get-User-Replays-Data | Analyze a specific user’s replays alongside their event data |
| Experiments (Beta) | List-Experiments | List and search experiments in a project |
Get-Experiment | Retrieve experiment details, configuration, and results | |
Create-Experiment | Create a new experiment | |
Update-Experiment | Modify an experiment’s configuration or manage its lifecycle | |
Get-Experiment-Setup-Guidance | Get best-practice guidance for designing an experiment | |
Get-Experiment-Results-Interpretation-Guidance | Get best-practice guidance for interpreting experiment results | |
| Feature Flags (Beta) | List-Feature-Flags | List and search feature flags in a project |
Get-Feature-Flag | Retrieve feature flag details and targeting rules | |
Create-Feature-Flag | Create a new feature flag | |
Update-Feature-Flag | Modify a feature flag’s configuration or targeting | |
Get-Feature-Flag-Setup-Guidance | Get best-practice guidance for creating and configuring a feature flag | |
Get-Feature-Flag-Lifecycle-Guidance | Get best-practice guidance for rollout, kill-switch, and cleanup of a feature flag |
MCP Server URLs
| Region | URL |
|---|---|
| US | https://mcp.mixpanel.com/mcp |
| EU | https://mcp-eu.mixpanel.com/mcp |
| IN | https://mcp-in.mixpanel.com/mcp |
Permissions & Access
Admin setup required. An organization admin must enable MCP in Settings → Org → Overview before anyone can connect. Changes can take up to 15 minutes to take effect.
Connecting to the MCP Server
Mixpanel’s MCP server supports two authentication methods:- OAuth — Users sign in through a browser with their Mixpanel credentials. Best for interactive use in AI assistants like Claude, ChatGPT, or Cursor.
- Service Accounts (Beta) — A static credential header with no browser login required. Best for CI/CD pipelines, automated agents, and shared team setups.
Connecting with OAuth
Claude
Add Mixpanel to Claude and complete the Mixpanel OAuth flow. For EU or IN regions, use Settings → Connectors → Add Custom Connector instead, and enter your MCP Server URL.Claude Code
Claude Code MCP docs/mcp inside Claude Code and completing the Mixpanel OAuth flow in your browser.
ChatGPT
Add Mixpanel to ChatGPT and complete the Mixpanel OAuth flow. For EU or IN regions, or to publish the connector to your workspace so teammates can use it:- Go to Settings → Connectors → Advanced and enable Developer Mode
- Add a new connector — set the MCP Server URL to your regional endpoint and Authentication to OAuth
- Complete the Mixpanel OAuth flow
- Optionally publish the connector to your workspace so teammates can use it
Codex
- Go to Settings → MCP Servers → + Add Server
- Provide a name (e.g. Mixpanel) and select Streamable HTTP
- Enter your MCP Server URL and click Save
Codex CLI
Add the following to~/.codex/config.toml (use the EU or IN URL if needed):
Notion
- Create a new Agent from the Agents section in the Notion sidebar
- In the Agent’s Settings, go to Tools and Access → + Add Connection
- Select Mixpanel and complete the OAuth flow
Gemini CLI
~/.gemini/settings.json manually and add:
Cursor
- Go to Settings → Tools & MCP → New MCP Server to open
~/.cursor/mcp.json - Add the following (use the EU or IN URL if needed):
- Save the file — Cursor will prompt you to authorize with Mixpanel on first connect
Microsoft Copilot (JSON-configured clients)
Any client that supports the MCP JSON config format, including Microsoft Copilot, can connect using the same JSON snippet from the Cursor section above. The first time it connects it will prompt you to authorize with Mixpanel.Connecting with Service Accounts
Service accounts are non-human Mixpanel users designed for scripts, back-end services, and automated workflows. They authenticate via a static header — no browser-based login is required. Use service accounts when you need a headless MCP connection, such as CI/CD pipelines, automated agents, or shared team setups. The service account’s project permissions apply: it can only access projects it has been added to.Prerequisites
- Create a service account in your Organization settings or Project settings. You need Owner or Admin permissions to do this.
- Save the username and secret — you won’t be able to view the secret again after creation.
- Ensure the service account has access to the projects you want to query via MCP.
- MCP must be enabled by an org admin in Settings → Org → Overview.
Generating the Authorization Header
Encode the service account credentials as a base64 string and construct the authorization header:my-sa.abc123.mp-service-account and your secret is my-secret, run:
Authorization: Bearer Basic bXktc2EuYWJjMTIzLm1wLXNlcnZpY2UtYWNjb3VudDpteS1zZWNyZXQ=
Claude
Claude Desktop MCP docs Open your config file via Settings → Developer → Edit Config and add the following (use the EU or IN URL if needed):Claude Code
Claude Code MCP docs.mcp.json file using an environment variable:
MIXPANEL_SA_TOKEN to your base64-encoded credentials before starting Claude Code.
Codex
- Go to Settings → MCP Servers → + Add Server
- Provide a name (e.g. Mixpanel) and select Streamable HTTP
- Enter your MCP Server URL
- Add the authorization header and click Save
Codex CLI
Add the following to~/.codex/config.toml (use the EU or IN URL if needed):
Notion
Service accounts are not supported through the Notion agent connector. Use Cursor or another client that supports custom headers instead.Gemini CLI
~/.gemini/settings.json manually and add (use the EU or IN URL if needed):
Cursor
Cursor MCP docs- Go to Settings → Tools & MCP → New MCP Server to open
~/.cursor/mcp.json - Add the following (use the EU or IN URL if needed):
- Set the
MIXPANEL_SA_TOKENenvironment variable to your base64-encoded credentials
Microsoft Copilot (JSON-configured clients)
Any client that supports the MCP JSON config format, including Microsoft Copilot, can connect using the same JSON snippet from the Cursor section above — adding theheaders object with the authorization header.
Example Queries
Once connected, try asking your AI assistant: Understand your data- “What projects do I have access to?”
- “What are the most fired events this week?”
- “Which properties on
checkout_completedare marked as PII?”
- “How many sign ups did we have in February?”
- “What’s our signup-to-purchase conversion rate this month vs last month?”
- “Show 7-day retention for users who completed onboarding in Q1”
- “Which acquisition channels have the best 30-day retention?”
- “Create a board of purchase metrics”
- “Build a weekly growth dashboard with signups, activations, and churn”
- “Add descriptions to any events that don’t have one”
- “Tag all checkout-related events with ‘Checkout’”
- “Hide any events that haven’t fired in the last 90 days”
- “Find all properties that look like PII but aren’t flagged yet”
- “Show me all open data quality issues for the Signup event”
- “Dismiss all issues for events we deprecated last quarter”
- “Create an experiment to test whether showing a progress indicator during onboarding increases activation rate”
- “Create a feature flag for our new AI-powered search”
- “How did our checkout experiment perform? Did it reach significance?”
- “This user reported a bug — what happened in their last 3 sessions?”
- “Walk me through what [user ID] did before they churned”
Security Considerations
When connected, the AI assistant can both read and write to Mixpanel on your behalf. Your Mixpanel data is also sent to whichever AI provider you’re using (Claude, ChatGPT, etc.), so review that provider’s data handling policies before connecting. Access controls- MCP must be explicitly enabled by an org admin. It is off by default
- Users can only access projects they already have permission to view in Mixpanel
- All existing roles and project-level permissions remain in effect
- Check applicable compliance requirements (GDPR, CCPA, etc.) before connecting to projects with personal data
- If using a shared AI environment (e.g., a team workspace), be aware that conversation history may be visible to others
Troubleshooting
- “MCP access is not enabled for this project”: Ask your org admin to enable MCP in Settings → Org → Overview.
- “Missing scope” error: Your cached auth token was created with an outdated scope list. Delete the
.mcp-authfolder in the directory where you ran the authorization command, then re-authorize. - Authorization fails: Ensure your Mixpanel account has access to at least one project and that MCP is enabled at the org level.
- Desktop app doesn’t pick up config changes: Restart the application after editing the config file.
Rate Limits
- A maximum of 600 MCP requests/hour per user
Building Custom Integrations (OAuth)
If you’re building a third-party MCP client or custom integration, use the following OAuth configuration.OAuth Discovery
Mixpanel’s MCP server supports OAuth discovery via two well-known endpoints, following RFC 8414 and RFC 9728: Protected Resource Metadata (RFC 9728): Discover which authorization servers can issue tokens for this resource:Dynamic Client Registration
| Region | Registration Endpoint |
|---|---|
| US | https://mixpanel.com/oauth/mcp/register/ |
| EU | https://eu.mixpanel.com/oauth/mcp/register/ |
| IN | https://in.mixpanel.com/oauth/mcp/register/ |
Authorization Code Flow with PKCE
Mixpanel uses Authorization Code + PKCE (S256):- Authorization endpoint:
https://{mixpanel_domain}/oauth/authorize - Token endpoint:
https://{mixpanel_domain}/oauth/token/ - Grant types:
authorization_code,refresh_token - Code challenge method:
S256 - Token endpoint auth methods:
none,client_secret_basic,client_secret_post
Required OAuth Scopes
Mandatory:To request a specific subset of scopes, pass
--static-oauth-client-metadata '{ "scope": "..." }' to npx mcp-remote. Otherwise all available scopes are requested automatically.