mixpanel-mcp
Provides tools for querying Mixpanel analytics, including events, funnels, retention, cohorts, user profiles, and custom analysis via JQL.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Related MCP server: Mixpanel MCP Server
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
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Mixpanel MCP — wraps Mixpanel Data Export API (mixpanel.com/api)
Query Mixpanel events, funnels, retention, segmentation and insights (JQL).
Hosted MCP server for RudderStack, the agentic CDP that runs on your warehouse. Ask Claude, ChatGPT, Cursor or Codex why events failed, which warehouse loads broke, or where your tracking plan is violated. Build and test transformations and audiences. OAuth login, your permissions, PII masked.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server that interfaces with the Mixpanel API, allowing users to query events data, retention, and funnels through natural language from any MCP client like Cursor or Claude Desktop.1351 npmMIT
- AlicenseBqualityDmaintenanceAn MCP server that provides access to the Mixpanel REST API, enabling AI agents to query events, funnels, retention data, and user profiles. It allows users to perform complex analytics tasks and export raw event data through natural language prompts.165 npmMIT
- AlicenseNot gradedqualityAmaintenanceMCP server that provides product and web analytics capabilities, allowing AI coding assistants to query funnels, retention, trends, feature flags, A/B tests, and more in natural language.4MIT
- FlicenseNot gradedqualityDmaintenanceAgent-first analytics MCP server for querying stats, funnels, and web/agent traffic, with server-side event ingestion and self-serve signup.164 npm-