mixpanel-mcp
MCP server for Mixpanel product analytics. Query events, funnels, retention, cohorts, and user profiles.
Documentation
Mixpanel MCP
An MCP server for Mixpanel product analytics. Query events, funnels, retention, cohorts, and user profiles through natural language.
What it does
Connect your Mixpanel analytics to any MCP client. Ask questions like "What are our top events this week?" or "Show me retention for users who signed up last month" and get structured answers.
Tools
- query_events. Raw event data with time ranges and filters.
- get_top_events. Most frequently tracked events.
- get_funnel. Multi-step funnel conversion rates.
- get_retention. Cohort retention over days, weeks, or months.
- query_profiles. Search and filter user profiles.
- run_jql. Execute raw JavaScript Query Language for custom analysis.
- list_events. All tracked event names in your project.
Authentication
Set these environment variables:
export MIXPANEL_SERVICE_ACCOUNT="your-service-account"
export MIXPANEL_SERVICE_SECRET="your-service-secret"
export MIXPANEL_PROJECT_ID="your-project-id"Service accounts are created in Mixpanel under Project Settings > Service Accounts.
Install
npx mixpanel-mcpClaude Desktop setup
{
"mcpServers": {
"mixpanel": {
"command": "npx",
"args": ["-y", "mixpanel-mcp"],
"env": {
"MIXPANEL_SERVICE_ACCOUNT": "your-account",
"MIXPANEL_SERVICE_SECRET": "your-secret",
"MIXPANEL_PROJECT_ID": "your-project-id"
}
}
}
}Example usage
Ask Claude:
"What are our top 10 events this week?"
"Show me the conversion funnel for funnel ID 12345"
"Get retention for users who signed Up in the last 30 days"
"Run a JQL query to find users who purchased more than 3 times"
"List all events we are tracking"
"Search for user profiles with email containing @gmail.com"
JQL support
JQL (JavaScript Query Language) lets you write custom analysis scripts. Example:
function main() {
return People().filter(function (user) {
return user.properties.plan === "premium"
})
}License
MIT
Frequently asked questions
What is mixpanel-mcp?
mixpanel-mcp is MCP server for Mixpanel product analytics. Query events, funnels, retention, cohorts, and user profiles.
How do I install mixpanel-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mixpanel-mcp open source?
Yes — it is hosted on GitHub at https://github.com/mrfentmen/mixpanel-mcp.
Related MCP tools
Model Context Protocol Servers
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you
MCP server to provide Figma layout information to AI coding agents like Cursor
The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP