The Mixpanel server allows you to interact with Mixpanel analytics data programmatically through MCP clients like Cursor or Claude Desktop.
You can:
- Retrieve Event Data: Get today's top events or most common events over the last 31 days
- Aggregate Events: Fetch unique, total, or average event counts over various time periods
- Analyze Properties: Get aggregated data for specific event properties
- Access Reports: Query saved Insights reports using bookmark IDs
- Analyze Funnels: Retrieve data for specific funnels and list all saved funnels
- Query Retention: Analyze user retention data with customizable parameters
- Run JQL Scripts: Execute custom JSON Query Language for advanced analytics
- Segment Data: Sum numeric expressions for events over defined time periods
- List Cohorts: Retrieve all cohorts in a Mixpanel project
Allows querying Mixpanel analytics data including events, retention, and funnels. Provides access to Mixpanel data through an MCP server for on-demand analytics lookups.
Mixpanel MCP
Simple MCP server that interfaces with the Mixpanel API, allowing you to talk to your Mixpanel events data from any MCP client like Cursor or Claude Desktop. Query events data, retention, and funnels. Great for on-demand look ups like: "What's the weekly retention for users in the Feb 1 cohort?"
I am adding more coverage of the Mixpanel API over time, let me know which tools you need or just open a PR.
Installation
Make sure to go to your Mixpanel Organization Settings to set up a Mixpanel Service Account, get the username, password, and your project ID (in Mixpanel Project Settings).
Installing via Smithery
To install mixpanel-mcp for Claude Desktop automatically via Smithery:
To install mixpanel-mcp for Cursor, go to Settings -> Cursor Settings -> Features -> MCP Servers -> + Add
Select Type: command and paste the below, using the arguments <USERNAME> <PW> <PROJECT_ID>
from Mixpanel
Clone and run locally
Clone this repo
Run npm run build
Paste this command into Cursor (or whatever MCP Client)
node /ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js YOUR_SERVICE_ACCOUNT_USERNAME YOUR_SERVICE_ACCOUNT_PASSWORD YOUR_PROJECT_ID
Examples
- Ask about retention numbers
- Ask for an overview of events
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.
Related Resources
Related MCP Servers
- -securityFlicense-qualityEnables form management, response handling, and analytics through the Fillout.io API for enhanced form interactions and insights.Last updated -TypeScript
- -securityFlicense-qualityProvides access to PyTorch CI/CD analytics data including workflows, jobs, test runs, and log analysis through an MCP interface.Last updated -Python
- -securityAlicense-qualityIntegrates with the Eventbrite API to provide AI-assisted event management capabilities for viewing events, tracking attendees, and generating analytics reports.Last updated -MIT License
- AsecurityAlicenseAqualityProvides tools for interacting with the Flow blockchain, including Flow balance checking, token balance querying, and Cadence Owned Account information retrieval.Last updated -521TypeScriptMIT License