Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mixpanel-mcp

MCP.Pizza Chef: dragonkhoi

The mixpanel-mcp is an MCP server that interfaces directly with the Mixpanel API, allowing MCP clients to query Mixpanel events, retention metrics, and funnel data in real time. It supports on-demand data lookups such as cohort retention analysis and event tracking, making Mixpanel analytics accessible within any MCP-enabled environment. The server simplifies integration by providing structured access to Mixpanel data for developers and analysts.

Use This MCP server To

Query Mixpanel event data from any MCP client Retrieve user retention metrics for specific cohorts Analyze funnel conversion rates on demand Integrate Mixpanel analytics into AI workflows Perform real-time Mixpanel data lookups via natural language Automate reporting of Mixpanel metrics in chat or IDE Combine Mixpanel data with other data sources in MCP clients

README

Mixpanel MCP

smithery badge

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?"

mixpanel MCP server

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 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
IMG_3675
  • Ask for an overview of events
IMG_9968

mixpanel-mcp FAQ

How do I authenticate the mixpanel-mcp server?
You authenticate using a Mixpanel Service Account with username, password, and project ID from your Mixpanel Organization Settings.
Can I query all Mixpanel API endpoints with this server?
Currently, it supports events, retention, and funnels, with plans to add more API coverage over time.
Which MCP clients can connect to mixpanel-mcp?
Any MCP client like Cursor or Claude Desktop can connect to this server to query Mixpanel data.
Is the mixpanel-mcp server secure?
Yes, it uses scoped credentials from Mixpanel Service Accounts and follows MCP principles for secure model interaction.
How do I install the mixpanel-mcp server?
Installation instructions include setting up a Mixpanel Service Account and installing via Smithery or other MCP-compatible methods.
Can I extend mixpanel-mcp to support additional Mixpanel features?
Yes, the server is open for contributions and you can open a PR to add more API endpoints.
Does mixpanel-mcp support real-time data queries?
Yes, it enables on-demand, real-time queries to Mixpanel event and funnel data.
What programming languages or environments does mixpanel-mcp support?
It is an MCP server accessible from any MCP client regardless of language or environment.