Mixpanel MCP Server
Updated June 2026Mixpanel MCP server for read-only product analytics. Built by dragonkhoi, it is community-built and best for API & Web.
by dragonkhoi
About
Mixpanel MCP server for read-only product analytics. Mixpanel itself publishes no MCP server — its agent tooling ships as the mixpanel-headless Python CLI and a set of Claude Agent Skills — so the de-facto server for this API is dragonkhoi/mixpanel-mcp, the community project with the most adoption at 19 stars and 19 forks. It exposes 19 tools over Mixpanel's Query API and nothing over the ingestion API, so an assistant can read your data but cannot write events or edit profiles. Coverage is broad for a single-file server: saved Insights, Funnel and Retention reports (query_insights_report, query_funnel_report, query_retention_report, plus list_saved_funnels and list_saved_cohorts to find the IDs), five segmentation tools including numeric bucketing and per-unit-time sum and average, event and property discovery (get_top_events, get_today_top_events, top_event_properties, top_event_property_values), profile lookup via query_profiles and profile_event_activity, and custom_jql for anything the typed tools do not cover. Authentication is a Mixpanel Service Account username and password plus a project ID, sent as HTTP Basic on every request. There is no published npm package: the project's package.json claims the name mcp-mixpanel, but that name was unpublished from npm in April 2025 and has not existed since, so install is either a git clone and build or the Smithery bundle. Every API URL is hardcoded to mixpanel.com, which means EU- and India-residency projects are not supported. Last commit March 2025.
Trust verdict
How grades are computed →The repository is confirmed to exist, but nothing about this server has been measured yet — no remote endpoint to handshake and no repository-freshness signal collected. Absence of evidence, not evidence of a problem.
What was measured
- Source verification100/100 · weight 25
The repository URL was confirmed to resolve against the live GitHub API and is not archived.
- Provenance65/100 · weight 10
Community-built. That is not a mark against it — most of the ecosystem is community-built — but there is no vendor accountable for keeping it working.
- Listing ↔ repository match100/100 · weight 5
The listing name lines up with the linked repository dragonkhoi/mixpanel-mcp.
What could not be measured
These contributed nothing to the score — not a penalty, not a zero. They are why the confidence reads the way it does.
- Live MCP handshakeunknown
No remote endpoint to handshake — this server installs and runs locally over stdio, so there is nothing to probe from the outside.
- Measured uptimeunknown
No probe history recorded for this server yet.
- Tool-schema stabilityunknown
Drift is a difference between two successive checks, and this server has none recorded.
- Repository maintenanceunknown
Repository freshness could not be read: no repo URL
Installation
git clone https://github.com/dragonkhoi/mixpanel-mcp && cd mixpanel-mcp && npm install && node build/index.js SERVICE_ACCOUNT_USERNAME SERVICE_ACCOUNT_PASSWORD PROJECT_IDMixpanel does not publish an MCP server. That is the first thing worth knowing, because several catalogs — including this one until August 2026 — listed a "Mixpanel" server marked official with no repository behind it. What Mixpanel actually ships for agents is mixpanel-headless, a Python CLI it describes as "designed with coding agent use in mind", and ai-plugins, a set of Claude Agent Skills. Neither speaks MCP. So the practical answer to "which Mixpanel MCP server do I install" is a community one, and there are three worth separating. dragonkhoi/mixpanel-mcp is the adoption leader at 19 stars and 19 forks and has by far the widest tool surface — 19 tools over the Query API — but its last commit was March 2025 and it has no working published package. mrfentmen/mixpanel-mcp is the actively maintained one and is on npm, but it is seven tools and its published binary does not run (see the gotchas). moonbirdai/mixpanel-mcp-server is a different job entirely: it writes events into Mixpanel rather than reading them out. This guide sets up dragonkhoi/mixpanel-mcp, and tells you when not to.
Setting up dragonkhoi/mixpanel-mcp
1.Create a Mixpanel Service Account
The server authenticates with HTTP Basic against Mixpanel's Query API, and the credential is a Service Account — not your login, and not a project token. Create one in Organization Settings → Service Accounts. Mixpanel shows the secret exactly once. The README calls the two halves "username" and "password"; in the Mixpanel UI they are labelled username and secret, which is the single most common point of confusion on the issue tracker. You also need the numeric project ID, which lives in Project Settings, not in Organization Settings.
2.Clone and build
There is no package to npx. The repo's package.json runs the TypeScript build from a postinstall hook, so `npm install` alone produces build/index.js and marks it executable.
bashgit clone https://github.com/dragonkhoi/mixpanel-mcp cd mixpanel-mcp npm install3.Point your client at the build, with credentials as positional arguments
The three credentials are read from argv, in the order username, password, project ID. Use the absolute path to build/index.js — a relative path resolves against whatever directory your MCP client happens to launch from.
claude_desktop_config.json{ "mcpServers": { "mixpanel": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js", "YOUR_SERVICE_ACCOUNT_USERNAME", "YOUR_SERVICE_ACCOUNT_SECRET", "YOUR_PROJECT_ID" ] } } }4.Or run the Smithery bundle instead of building
Smithery hosts a prebuilt stdio bundle of the same project. Its config schema takes the same three fields under the names username, password and projectId. This is the route the README recommends for Cursor, where a single command string is easier to paste than a JSON args array.
bashnpx -y @smithery/cli@latest run @dragonkhoi/mixpanel-mcp \ --config '{"username":"YOUR_USERNAME","password":"YOUR_SECRET","projectId":"YOUR_PROJECT_ID"}'5.Confirm it is reading the right project
Ask for today's top events before anything else. It is the cheapest call in the set and it fails loudly on all three credential mistakes: a wrong username or secret returns a 401, and a wrong project ID returns an empty list rather than an error — which is why you want to see event names you recognise, not just an absence of red text.
All 19 tools
Read-only, every one of them. These map onto Mixpanel's Query API; the ingestion API — track, engage, import — is not exposed at all, so no prompt can make this server write to your project. Tool names and descriptions were read from src/index.ts and cross-checked against the built server's advertised tool list in the Smithery registry.
get_today_top_eventsToday's most active events. The cheapest smoke test after setup.
get_top_eventsThe most common events over the trailing 31 days — use this to learn the event names before writing any other query.
aggregate_event_countsUnique, general or average counts for a set of events bucketed by day, week or month.
aggregated_event_property_valuesThe same aggregation for one event broken out by one property.
top_event_propertiesWhich property names appear most often on a given event — property discovery, so segmentation queries can be written blind.
top_event_property_valuesThe distribution of values for one property on one event. Defaults to 255 values.
query_segmentation_reportAn event segmented and filtered by properties over a date range. The workhorse.
query_segmentation_bucketThe same, with numeric values placed into buckets.
query_segmentation_sumSums a numeric expression across events per unit time.
query_segmentation_averageAverages a numeric expression across events per unit time.
query_funnel_reportConversion data for one saved funnel, by funnel_id. It cannot define a funnel — only read one that exists in the UI.
list_saved_funnelsNames and IDs of saved funnels. You need this first, because query_funnel_report takes an ID and nobody knows their funnel IDs.
query_retention_reportCohort retention from the Retention report.
query_frequency_reportHow often users perform an action over time — Mixpanel's addiction endpoint.
query_insights_reportData behind a saved Insights report.
list_saved_cohortsEvery cohort defined in the project, with IDs.
query_profilesUser profile search with filtering, against the engage endpoint.
profile_event_activityThe event stream for specific distinct_ids over a date range — one user's timeline.
custom_jqlRuns a raw JQL script. The escape hatch for anything the eighteen typed tools cannot express.
What people use it for
Diagnose a funnel drop without opening Mixpanel
“List our saved funnels. Take the signup one, pull its conversion by step for the last 14 days versus the 14 days before that, and tell me which single step moved most.”
This is the pairing the tool list is built for: list_saved_funnels to resolve the ID, then two query_funnel_report calls. Doing it in the UI means two date-range changes and reading numbers off a chart; the diff is the part a human is bad at and the model is not.
Find the property worth segmenting on
“For our checkout_completed event, show me the top properties, then for the two most common ones show the value distribution. Which one actually splits the population?”
top_event_properties into top_event_property_values is discovery, not reporting — it answers "what can I even segment by" for an event somebody else instrumented. Most analytics MCP servers skip this and jump straight to querying, which only works if you already know the schema.
Answer a question the typed tools cannot
“Write a JQL script that finds users who triggered purchase more than three times in the last 30 days but have never triggered refund_requested, and run it.”
custom_jql is why this server outlasts its own staleness. Anything Mixpanel's Query API cannot express as a segmentation or funnel call, JQL can — and the model writing the script is a better fit for JQL than for remembering endpoint parameters.
Which one should you use?
Three community servers share this name and they are not substitutes for each other. Pick by direction of data flow first, then by whether you can tolerate a clone.
mrfentmen/mixpanel-mcp
Pick it if you want a maintained project and seven tools are enough — query_events, get_top_events, get_funnel, get_retention, query_profiles, run_jql, list_events, with credentials via MIXPANEL_SERVICE_ACCOUNT / MIXPANEL_SERVICE_SECRET / MIXPANEL_PROJECT_ID, which is a cleaner auth story than positional args. It is on npm and pushed in August 2026. Budget for invoking it through node rather than npx until the missing shebang is fixed, and note it has no saved-report tools at all: no Insights, no saved funnels or cohorts by ID.
moonbirdai/mixpanel-mcp-server
Pick it only if you want to write. It tracks events, page views and signups and updates profiles, authenticating with a project token rather than a Service Account, and it cannot read anything back. It is the tool for instrumenting from an agent, not for asking questions.
mixpanel-headless (official, not MCP)
Pick it if your agent can run shell commands. It is Mixpanel's own Python CLI for discovery, querying and extraction, built for coding agents, and being first-party it will track API changes that a community MCP server will not. The tradeoff is that you give up structured tool schemas and the model has to learn a CLI.
PostHog MCP Server
The nearest thing to a vendor-supported version of this workflow: PostHog runs a hosted remote MCP server, so there is no clone, no build and no Service Account in a config file. Relevant if you are choosing an analytics stack rather than integrating one you already have.
Every command, environment variable, and endpoint above was read from the project’s own documentation on 2026-08-23: dragonkhoi/mixpanel-mcp README, dragonkhoi/mixpanel-mcp src/index.ts (all 19 tool definitions, argv and env handling), Smithery registry entry (tool list and config schema, as built), Mixpanel Service Accounts reference, Mixpanel Query API reference, mixpanel/mixpanel-headless — the official agent-facing CLI, mixpanel/ai-plugins — the official Agent Skills collection.
Categories
Frequently Asked Questions
Why does the server exit immediately when I set the credentials as environment variables?
Does the Mixpanel MCP server work with EU or India data residency?
Is there an npm package for the Mixpanel MCP server?
Can this server track events or update profiles in Mixpanel?
What is the "password" the README asks for?
I get "fetch is not defined" on startup.
How stale is it, and does that matter?
Does Mixpanel publish an official MCP server?
What is Mixpanel MCP Server?
Who built Mixpanel MCP Server?
Is Mixpanel MCP Server free?
How do I install Mixpanel MCP Server?
What does Mixpanel MCP Server integrate with?
Related Guides
Repo Health
Local/stdio install — runs on your machine, so there is no remote endpoint to verify live. Trust signal below is from the source repo.
- Install
- npm
Repo recency not yet available for this server.
Quick Info
- Install Type
- source
- Author
- dragonkhoi
- Categories
- 2
- Integrations
- 5
Related Servers
Fetch
Web content fetching and conversion for efficient LLM usage. Extract readable content from any URL.
Apify MCP Server
The Apify MCP server gives AI agents access to 6,000+ ready-made cloud scrapers, crawlers, and automation tools on the Apify Store — no infrastructure required. Connect to Apify Actors that extract data from social media platforms (Instagram, TikTok, LinkedIn), search engines (Google, Bing), e-commerce sites (Amazon, eBay), maps (Google Maps), and virtually any website. Each Actor runs in the cloud with managed proxies, browser fingerprinting, and anti-bot bypass built in. Use the Apify MCP server to query Actors by task, stream results directly into your AI context, run custom scraping Actors from your Apify account, and chain multiple data extraction steps in a single workflow. Supports tool filtering to expose only the Actors you need, and integrates with Apify's RAG web browser Actor for retrieval-augmented generation use cases.
Browserbase MCP Server
Browserbase MCP and Stagehand MCP are the same server under two names, and this catalog lists both because people search for both — this page is the platform view, /servers/stagehand covers the natural-language automation layer that runs inside it. What Browserbase supplies is the browser itself: a headless Chrome session running in Browserbase's cloud rather than on the machine your agent is on, which is the reason to use it at all. The session is a real, addressable browser with its own residential-proxy and stealth configuration and a recorded replay you can watch afterwards, so an agent's browsing survives being run from a datacenter IP, and a failed run is debuggable after the fact instead of being a black box. Nothing renders on the developer's machine, so a long-running agent is not tied to a desktop staying awake. Browserbase's recommendation is the hosted server at https://mcp.browserbase.com/mcp over streamable HTTP — they operate it and absorb the model inference that the instruction-following tools require. Clients without HTTP transport connect via npx mcp-remote https://mcp.browserbase.com/mcp. Self-hosting installs @browserbasehq/mcp-server-browserbase from npm and needs BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID from your dashboard. Six tools are exposed — start and end for session lifecycle, navigate, act, observe and extract — and they are documented in detail on the Stagehand entry, because the act/observe/extract trio is Stagehand's model rather than Browserbase's. One thing to know before self-hosting: the browserbase/mcp-server-browserbase repository was archived on 2026-07-20 and its README now says it is kept for historical reference and should not be read as representative of the current production service. The npm package still installs and the star count on this page belongs to that archived repo; the hosted endpoint is the path Browserbase actually maintains.
Firecrawl MCP Server
The Firecrawl MCP server gives your AI assistant the ability to crawl, scrape, and extract structured data from any website — turning raw HTML into clean, LLM-ready Markdown or JSON in seconds. Built by the Firecrawl team, it exposes tools for single-page scraping, deep site crawls (following internal links), and batch URL extraction, all with JavaScript rendering handled automatically so dynamic content is never missed. Developers use it to automate competitive research, build live knowledge bases, extract pricing tables, monitor documentation changes, or feed structured web data into RAG pipelines — all through natural-language prompts without writing a single scraper script. The Firecrawl MCP server handles rate limiting, retries, and proxy rotation behind the scenes. Authentication requires a Firecrawl API key (free tier available). Install with: npx firecrawl-mcp. Works with Claude Desktop, Cursor, VS Code, and any MCP-compatible client. With Firecrawl, any public webpage becomes a structured data source your AI can reason over, compare, and act on — making it the go-to MCP server for web data extraction workflows.
Notion MCP Server
The Notion MCP Server is the official integration from Notion that connects AI assistants directly to your Notion workspace via the Notion REST API. With 4,580+ GitHub stars, it is the canonical MCP tool for bringing Notion's knowledge management capabilities into Claude Desktop, Cursor, Windsurf, and any MCP-compatible client. The server exposes a rich set of tools: search your entire workspace by keyword and return matching pages and databases; retrieve full page content and block trees; create new pages inside any parent page or workspace section; update, append, or delete block content on existing pages; list all databases your integration has access to; query database entries with filter and sort parameters; retrieve individual blocks or nested children by block ID; and add comments to pages. Authentication uses a Notion integration token — create an internal integration at notion.so/my-integrations, share specific pages or databases with it, and set NOTION_TOKEN in your environment (the older OPENAPI_MCP_HEADERS form still works). Install with a single npx command. The Notion MCP Server is especially powerful for AI workflows that span documentation retrieval, project planning, and knowledge capture — Claude can read product specs from Notion, draft new pages from conversation output, log structured data into databases, and search across thousands of notes without any manual copy-paste.
Sponsored
Better Stack
Free PlanGet alerted when your APIs, browser tests, payment pipelines, or MCP server dependencies go down. Used by 100K+ developers.
Start monitoring free →