Skip to main content

Mixpanel

Lets an agent read Mixpanel project analytics — top events, event property breakdowns, funnels, and retention — via the Mixpanel Query API and a service account credential pair.

What it can do

MethodWhat it does
mixpanel_get_top_eventsList top events in a date range; sort by count, limit by N.
mixpanel_get_eventsTimeseries event counts by name; supports event filters and grouping.
mixpanel_get_event_namesAll event names tracked in the project, paginated.
mixpanel_get_top_propertiesTop property values for a given event over a date range.
mixpanel_get_event_propertiesProperty breakdowns for a single event (counts per value).
mixpanel_get_funnelsList saved funnels in the project.
mixpanel_get_funnelConversion rates step-by-step for a saved funnel.
mixpanel_get_retentionCohort retention table; supports daily/weekly/monthly buckets.

How to get credentials

Use a Mixpanel Service Account (project-scoped, not org-scoped) for the Basic Auth username/secret pair, plus your numeric Project ID.

  1. Open Mixpanel → Project settings (gear icon top-right) → Service Accounts tab.
  2. Create a new service account; pick a name like flymyai-mcp. Set role to Analyst (read-only is enough for the actions above).
  3. Copy the Username and Secret Mixpanel shows once on creation (the secret is not retrievable later — store it somewhere safe).
  4. In Project settings → Overview, copy the Project ID (numeric).

If your project lives in the EU Mixpanel data residency, also set MIXPANEL_DATA_RESIDENCY=eu. US is the default.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
MIXPANEL_SERVICE_ACCOUNT_USERNAMEService Accounts → Username
MIXPANEL_SERVICE_ACCOUNT_SECRETService Accounts → Secret (shown once)
MIXPANEL_PROJECT_IDProject settings → Overview → Project ID
MIXPANEL_DATA_RESIDENCYus (default) or eu

Troubleshooting

  • 401 Unauthorized — service account doesn't have access to that Project ID. Re-check the Project ID matches the project the service account was created in.
  • Not Found on EU projectMIXPANEL_DATA_RESIDENCY is still us. Switch to eu and retry.