Mixpanel
Product analytics and funnels.
Verdict
Common use cases
- Answer 'how many signups this week' during standups
- Debug user behavior from support ticket context
- Compare event trends month-over-month in planning docs
- Pull cohort breakdowns for roadmap prioritization
- Audit top events and properties after releases
Integration
- Vendor
- Mixpanel
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 21
- Composio slug
mixpanel
Tools
- Execute JQL Query
Execute a custom jql (javascript query language) query against mixpanel's query api. key constraints: - 60 queries/hour, max 5 concurrent queries. - 2-minute execution timeout. - 5 gb data processing limit, 2 gb output limit. - no remote ne
- Get Aggregated Event Property Values
Get unique, total, or average data for a single event and property over days, weeks, or months. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Get Aggregate Event Counts
Get aggregate event counts over time. supports different types of aggregation: general, unique, average, sum.
- Get Aggregate Events
Get aggregate event counts over time. supports different types of aggregation: general, unique, average, sum.
- Get All Projects
Get all projects associated with the authenticated mixpanel account. returns project details including name, permissions, role, domain, and other configuration details.
- Get Profile Event Activity
Get event activity feed for specified users from mixpanel query api. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Get Today's Top Events
Get the top events for today, with their counts and the normalized percent change from yesterday. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Get Top Event Properties
Get the top property names for an event. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Get Top Event Property Values
Get the top values for a property. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Get Top Events
Get a list of the most common events over the last 31 days. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- List Saved Cohorts
Get list of all cohorts in a mixpanel project. returns cohort details including name, id, count, description, creation date, and visibility. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- List Saved Funnels
Get the names and funnel ids of your funnels. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Query Frequency Report
Get data about how frequently users are performing events. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. example response with unit="day" and addiction unit="hour": { "2012-01-01": [305, 107, 6
- Query Numeric Average Report
Averages an expression for events per unit time. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. example response: { "status": "ok", "results": { "2024-01-01": 25.5, "2024-01-02": 32.75, "2024-01
- Query Numeric Segmentation Report
Get data for an event, segmented and filtered by properties, with values placed into numeric buckets. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Query Numeric Sum Report
Sums an expression for events per unit time. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. example response: { "status": "ok", "computed at": "2024-01-20t12:00:00", "results": { "2024-01-01": 1
- Query Profiles
Query user or group profile data from mixpanel. returns list of profiles that match specified parameters. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Query Retention Report
Get cohort analysis data. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Query Saved Funnel
Get data for a funnel. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Query Saved Insight
Get data from your insights reports. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
- Query Segmentation Report
Get data for an event, segmented and filtered by properties. the query api has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
Setup
Setup guide
- 11. Open your Switchy workspace and navigate to Settings > Integrations > Developer Tools. 2. Click 'Connect' next to Mixpanel. 3. You'll be prompted to enter a Mixpanel API secret — generate one in your Mixpanel project settings under Project Settings > Service Accounts (create a service account if you don't have one, then copy its secret). 4. Paste the secret into Switchy and click 'Authorize'. 5. Select which Mixpanel project you want to query (if you manage multiple projects, you'll see a dropdown). 6. Test the connection by opening any Space and typing '@Mixpanel get today's top events' — you should see a list of event names and counts. 7. To invoke other tools, @mention Mixpanel and describe what you need (event aggregates, property breakdowns, user activity feeds). The MCP will route your request to the appropriate query endpoint.
What teammates see: by default, memories from Mixpanel are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Weekly Signup Trend
@Mixpanel get aggregate event counts for 'signup_completed' over the last 7 days, grouped by day.Open in a Space →
Top Events Today
@Mixpanel show me today's top events with their counts and percent change from yesterday.Open in a Space →
User Activity Feed
@Mixpanel get the event activity feed for user ID 'abc123' over the past 30 days.Open in a Space →
Property Breakdown
@Mixpanel get the top property values for 'plan_type' on the 'subscription_started' event this month.Open in a Space →
Custom JQL Query
@Mixpanel execute this JQL query: function main() { return Events({ from_date: '2025-01-01', to_date: '2025-01-31' }).filter(event => event.name == 'purchase').groupBy(['properties.category'], mixpanel.reducer.count()); }Open in a Space →Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@mixpanel what were our top 5 events yesterday and how do their counts compare to the day before?
Based on yesterday's data, your top 5 events were: 1) page_view (12,847 events, +8.3% vs prior day), 2) button_click (4,231 events, -2.1%), 3) form_submit (1,892 events, +15.7%), 4) video_play (1,203 events, +4.2%), and 5) search_query (987 events, -6.4%). The form_submit event showed the strongest growth, while search_query declined notably. This data reflects your production project for the 24-hour period ending midnight UTC.
This example uses the Get Today's Top Events tool to surface high-level engagement trends. Be aware of the 60 queries/hour rate limit — repeated requests in a conversation can exhaust your quota. The percentage changes help identify anomalies worth investigating further.
@mixpanel show me the event activity for user ID abc-123 over the last 7 days, focusing on purchase-related events
User abc-123 triggered 23 events in the past week. Purchase-related activity: viewed product_detail 8 times (most recently 2 hours ago for item SKU-9921), added 3 items to cart, initiated checkout twice, and completed 1 purchase (order #ORD-4482, $127.50, 3 days ago). Non-purchase events included 6 page_view events and 4 search_query events. The user appears to be in an active browsing phase with one recent conversion.
This example demonstrates the Get Profile Event Activity tool, which returns a time-ordered feed of user actions. Requires read access to user profiles in your Mixpanel project. Useful for debugging individual user journeys or investigating support tickets tied to specific accounts.
@mixpanel run a JQL query to calculate the average session duration for users who completed a purchase in the last 30 days, grouped by traffic source
Executed custom JQL query against 30 days of event data. Results: Organic search users averaged 8.4 minutes per session before purchase (n=1,247 conversions). Paid social users averaged 5.2 minutes (n=892). Direct traffic users averaged 11.7 minutes (n=634). Email campaign users averaged 6.1 minutes (n=423). Query processed 4.2 GB of data in 47 seconds. This suggests organic and direct users exhibit more exploratory behavior pre-purchase compared to paid channels.
This showcases the Execute JQL Query tool for custom analytics beyond Mixpanel's standard reports. Requires familiarity with JQL syntax. Subject to strict limits: 60 queries/hour, 5 concurrent max, 2-minute timeout, 5 GB data cap. Complex queries can hit these ceilings quickly — test incrementally and cache results when possible.
Use-case deep-dives
When Mixpanel MCP makes sense for small product teams
A 5-person product team ships features every sprint and needs to review adoption metrics in their Friday retro. The Mixpanel MCP is a good fit here because the team can query event counts and property breakdowns directly in Switchy without context-switching to the Mixpanel dashboard. The 60-query-per-hour limit is fine for a weekly cadence—you're pulling 8-12 queries per session, not hundreds. The JQL tool lets you write custom queries for edge cases without waiting on a data analyst. If your team reviews metrics daily or runs more than 10 concurrent analyses, you'll hit rate limits and need to batch requests or move to the Mixpanel UI. For weekly reviews with moderate query volume, this MCP saves 15 minutes of tab-switching per meeting.
Using Mixpanel MCP to debug user drop-off patterns
A 3-person customer success team notices a cohort of trial users churning at day 7 and needs to understand which features they skipped. The Mixpanel MCP works well here because you can pull profile event activity for specific users and compare their behavior to successful cohorts—all in one Switchy thread. The Get Profile Event Activity tool surfaces the exact event sequence for each user, and the Get Top Event Properties tool shows which feature interactions correlate with retention. The 2-minute query timeout is rarely an issue unless you're analyzing profiles with 50k+ events. If you're investigating more than 60 users per hour, you'll need to stagger your queries or export a CSV from Mixpanel first. For ad-hoc churn investigations with 10-30 user profiles, this MCP turns a 2-hour spreadsheet exercise into a 20-minute conversation.
When Mixpanel MCP hits limits for high-frequency dashboards
A 6-person growth team runs daily standups where they review yesterday's signup funnel, activation rate, and top-performing campaigns. The Mixpanel MCP is borderline here. The Get Today's Top Events tool gives you a quick snapshot of what changed overnight, and the Get Aggregate Event Counts tool pulls funnel metrics without opening a browser. But if your team runs 15+ queries per standup and does this 5 days a week, you're burning through the 60-query-per-hour limit by Tuesday. The 5-concurrent-query cap also means you can't parallelize requests during live meetings. If your daily review is under 10 queries and you're okay with sequential execution, the MCP keeps your standup in Switchy. If you need real-time dashboards or 20+ daily queries, build a Slack bot that hits Mixpanel's API directly or stick with the Mixpanel UI.
Frequently asked
What does the Mixpanel MCP let me do in Switchy?
It pulls product analytics data directly into your AI workspace. You can query event counts, analyze user behavior, aggregate property values, and run custom JQL queries without leaving Switchy. The MCP exposes 21 tools covering everything from top events to user activity feeds, so your team can ask questions about product metrics in natural language instead of writing SQL.
Do I need admin access to connect Mixpanel via OAuth?
You need a Mixpanel account with project access, but not necessarily admin. OAuth grants Switchy read access to your analytics data — it can't modify events or change project settings. The connection respects your existing Mixpanel permissions, so if you can view a project in Mixpanel's UI, the MCP can query it.
Can the Mixpanel MCP send events or update user profiles?
No. This MCP is read-only. It queries existing analytics data but can't write new events, update profiles, or change cohorts. If you need to send events from Switchy workflows, use Mixpanel's Ingestion API separately. The MCP is built for analysis and reporting, not data collection.
How does this compare to querying Mixpanel's UI or API directly?
The MCP wraps Mixpanel's Query API, so you get the same data with the same rate limits — 60 queries per hour, 5 concurrent max. The difference is you can ask questions in plain English and combine Mixpanel data with other tools in Switchy. You skip writing JQL or REST calls, but you're still bound by Mixpanel's 2-minute query timeout and 5GB processing cap.
Who on the team should connect the Mixpanel integration?
Whoever has Mixpanel project access and understands your event taxonomy. Product managers and data analysts are typical owners. Since the MCP shares one OAuth connection across your Switchy workspace, the connector's Mixpanel permissions apply to everyone. If your team has multiple projects, connect with an account that can see all the ones you need.