@mattgreathouse/mixpanel-mcp
v1.0.2
Published
MCP server for querying Mixpanel data
Maintainers
Readme
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).
Required environment variables
MIXPANEL_SERVICE_ACCOUNT_USERNAMEMIXPANEL_SERVICE_ACCOUNT_PASSWORDMIXPANEL_PROJECT_ID
Installing via Smithery
To install mixpanel-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @dragonkhoi/mixpanel-mcp --client claudeAfter installing, make sure Claude Desktop provides the required env vars (MIXPANEL_SERVICE_ACCOUNT_USERNAME, MIXPANEL_SERVICE_ACCOUNT_PASSWORD, and MIXPANEL_PROJECT_ID) to the server process.
To install mixpanel-mcp for Cursor, go to Settings -> Cursor Settings -> Features -> MCP Servers -> + Add
Select Type: command and paste the below, replacing env var values with your Mixpanel credentials:
MIXPANEL_SERVICE_ACCOUNT_USERNAME=YOUR_SERVICE_ACCT_USERNAME MIXPANEL_SERVICE_ACCOUNT_PASSWORD=YOUR_SERVICE_ACCT_PASSWORD MIXPANEL_PROJECT_ID=YOUR_MIXPANEL_PROJECT_ID npx -y @smithery/cli@latest run @dragonkhoi/mixpanel-mcpClone and run locally
Clone this repo
Run npm run build
Paste this command into Cursor (or whatever MCP Client)
MIXPANEL_SERVICE_ACCOUNT_USERNAME=YOUR_SERVICE_ACCOUNT_USERNAME MIXPANEL_SERVICE_ACCOUNT_PASSWORD=YOUR_SERVICE_ACCOUNT_PASSWORD MIXPANEL_PROJECT_ID=YOUR_PROJECT_ID node /ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js
Examples
- Ask about retention numbers
- Ask for an overview of events
