MCP - Mixpanel Docs (original) (raw)

Mixpanel MCP Integration


Overview

The Mixpanel Model Context Protocol (MCP) integration enables organizations to analyze product and replay data using conversational AI. Teams can query events, session replays, funnels, and user behavior through AI interfaces (Claude, Cursor, etc.) using natural language, eliminating the need for complex dashboard navigation or technical query languages.


Mixpanel MCP Tools

The MCP integration provides access to all core Mixpanel analysis capabilities through natural language queries:

Analytics Functions

Data Discovery & Exploration

Qualitative Analysis

Query Capabilities

For more information on organizing and documenting your events, see Mixpanel Lexicon documentation.


Getting Started

Beta Access

The Mixpanel MCP integration is currently in Beta. You can start using it right away by following the Implementation Guide below.

Permissions & Access Control

Admin Configuration Required

User Access ScopeAfter the organization admin enables MCP:

  1. Organization admin enables “Enable MCP” toggle in organization settings
  2. Individual users complete the integration setup following the Implementation Guide
  3. Users authenticate with their Mixpanel account during the connection process
  4. Once authenticated, start by asking: “What Mixpanel projects do I have access to?”
  5. Select a project from the response to focus your analysis
  6. Ask any questions about your Mixpanel data—refer to Use Case Examples below if you need ideas
  7. Begin with test data to validate functionality
  8. Conduct security review before production data access
  9. Train teams on natural language query techniques
  10. Expand usage across product and analytics teams

Implementation Guide

Prerequisites (for Claude Free, Cursor & Gemini CLI)

Install Node.js (if needed):

Option 1: Claude Pro

Setup Steps:

  1. Navigate to claude.ai or open Claude desktop app
  2. Go to SettingsConnectorsAdd Custom Connector
  3. Configure the integration:
    • Integration Name: Mixpanel (or preferred name)
    • Integration URL
      * US:
      * EU:
      * IN:
  4. Click Connect and complete Mixpanel authorization

For additional information on setting up Claude connectors, see Claude’s connector documentation.


Option 2: Claude Free

Additional Requirements:

Setup Steps:

  1. Open Claude desktop app
  2. Navigate to Settings (from window nav bar) → DeveloperEdit Config
  3. Add the following configuration:
  4. Run authorization command in terminal:

For EU,

For IN,

  1. Complete Mixpanel authorization via the provided link

Option 3: Cursor

Additional Requirements:

Setup Steps:

  1. Open Cursor application
  2. Navigate to Cursor SettingsMCP & IntegrationsMCP ToolsNew MCP Server
  3. This opens MCP.json where you paste the following configuration:
  4. Run authorization command in terminal:

For EU,

For IN,

  1. Complete Mixpanel authorization via the provided link

Option 4: Google Gemini CLI

Additional Requirements:

Setup Steps:

  1. Install the Gemini CLI by following Gemini CLI installation instructions.
  2. Authenticate to Google Gemini using your Google account:
  3. Configure Mixpanel MCP as a remote server and authorize:
    For EU,
    For IN,
    Running this command will provide a link in your terminal to authorize your access with Mixpanel. Follow the authorization steps in your browser. After logging in via OAuth, you should see a confirmation message.
  4. Verify Configuration (or Create It Manually):
    After authorization, your file for the Gemini CLI should be updated automatically. You can find this file at . To check, run:
    The contents should be similar to the following:
    This configuration ensures that the Gemini CLI knows how to connect to the Mixpanel remote server. If is not available, create it manually using the same contents as above.
  5. Complete Mixpanel authorization via the provided link (if not already done).
  6. Run the Gemini CLI Once configured, you can use the Gemini CLI with the specified model by running this command:

Option 5: ChatGPT (OpenAI)

Additional Requirements:

Setup Steps:

  1. Enable Developer Mode
  2. Add the Mixpanel MCP connector
    • Create a new connector/integration in the ChatGPT Connectors UI
    • Provide these values:
      * Name: Mixpanel MCP
      * Description: The MCP integration provides access to all core Mixpanel analysis capabilities through natural language queries.
      * MCP Server URL
      * US:
      * EU:
      * IN:
      * Authentication type: OAuth
    • Click Create and then connect to Mixpanel and follow the OAuth flow to authorize Mixpanel access.
  3. Publish connector to workspace (optional)
    • To make the connector available to other members: go to Settings → Apps & Connectors → Mixpanel → Publish

Use Case Examples

Channel Performance Analysis

Retention Intelligence

Conversion Optimization

User Journey Analysis

Advanced Analytics

User Feedback Analysis

Usage Analysis

Troubleshooting User Issues

Key Benefits

Democratized Analytics

Enhanced Productivity

Strategic Value


Security & Compliance Considerations

Data Handling Important: This integration enables querying your Mixpanel data through AI services (Claude, Cursor, etc.). Review your organization’s data handling policies before implementation.

Access Controls

Best Practices


Technical Specifications

Supported Platforms

Integration Architecture


Troubleshooting

Common Issues

Computed PropertiesRevenue Analytics