Mixpanel
About
Integrates with Mixpanel's API to enable querying of events data, retention, and funnels for on-demand analytics and custom report generation.
Details
- Author
- dragonkhoi
- Repository
- dragonkhoi/mixpanel-mcp
- GitHub stars
- 17
- Downloads
- 340
- License
- MIT License
- Categories
- Design, Developer Tools, Search, Infrastructure
- Tags
- #integration, #analytics, #data-science
Jump to
- Query Mixpanel events, retention, and funnel data.
- Works with any MCP client (Cursor, Claude Desktop).
- On-demand natural language analytics lookups.
- Easy installation via Smithery or local clone.
- Authenticates using Mixpanel Service Accounts.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MixpanelCommand (node, npx, python, etc.)nodeArguments-
Argument 1
/ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js -
Argument 2
YOUR_SERVICE_ACCOUNT_USERNAME -
Argument 3
YOUR_SERVICE_ACCT_PASSWORD -
Argument 4
YOUR_MIXPANEL_PROJECT_ID
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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).
To install mixpanel-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @dragonkhoi/mixpanel-mcp --client claude
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
npx -y @smithery/cli@latest run @dragonkhoi/mixpanel-mcp --config "{\"username\":\"YOUR_SERVICE_ACCT_USERNAME\",\"password\":\"YOUR_SERVICE_ACCT_PASSWORD\",\"projectId\":\"YOUR_MIXPANEL_PROJECT_ID\"}"
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mixpanel": {
"env": {},
"args": [
"/ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js",
"YOUR_SERVICE_ACCOUNT_USERNAME",
"YOUR_SERVICE_ACCT_PASSWORD",
"YOUR_MIXPANEL_PROJECT_ID"
],
"command": "node"
}
}
}
Linux
{
"env": [],
"args": [
"/ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js",
"YOUR_SERVICE_ACCOUNT_USERNAME",
"YOUR_SERVICE_ACCT_PASSWORD",
"YOUR_MIXPANEL_PROJECT_ID"
],
"command": "node"
}
Macos
{
"env": [],
"args": [
"/ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js",
"YOUR_SERVICE_ACCOUNT_USERNAME",
"YOUR_SERVICE_ACCT_PASSWORD",
"YOUR_MIXPANEL_PROJECT_ID"
],
"command": "node"
}
Windows
{
"env": [],
"args": [
"/c",
"node",
"/ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js",
"YOUR_SERVICE_ACCOUNT_USERNAME",
"YOUR_SERVICE_ACCT_PASSWORD",
"YOUR_MIXPANEL_PROJECT_ID"
],
"command": "cmd"
}
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?"
<a href="https://glama.ai/mcp/servers/3ymkqswmp4">
</a>
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:
npx -y @smithery/cli install @dragonkhoi/mixpanel-mcp --client claude
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
npx -y @smithery/cli@latest run @dragonkhoi/mixpanel-mcp --config "{\"username\":\"YOUR_SERVICE_ACCT_USERNAME\",\"password\":\"YOUR_SERVICE_ACCT_PASSWORD\",\"projectId\":\"YOUR_MIXPANEL_PROJECT_ID\"}"
Clone and run locally
Clone this repo Runnpm 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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




