Mixpanel automation

From davepoon/buildwithclaude · View interactive version

Mixpanel automation is an AI agent skill from the GitHub repository davepoon/buildwithclaude. Automate Mixpanel tasks via Rube MCP (Composio): events, segmentation, funnels, cohorts, user profiles, JQL queries. Always search tools first for current schemas.

How to use this skill

Skill file

Mixpanel Automation via Rube MCP

Automate Mixpanel product analytics through Composio's Mixpanel toolkit via Rube MCP.

Toolkit docs: composio.dev/toolkits/mixpanel

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit mixpanel
  3. If connection is not ACTIVE, follow the returned auth link to complete Mixpanel authentication
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Aggregate Event Data

When to use: User wants to count events, get totals, or track event trends over time

Tool sequence:

  1. MIXPANEL_GET_ALL_PROJECTS - List projects to get project ID [Prerequisite]
  2. MIXPANEL_AGGREGATE_EVENT_COUNTS - Get event counts and aggregations [Required]

Key parameters:

Pitfalls:

2. Run Segmentation Queries

When to use: User wants to break down events by properties for detailed analysis

Tool sequence:

  1. MIXPANEL_QUERY_SEGMENTATION - Run segmentation analysis [Required]

Key parameters:

Pitfalls:

3. Analyze Funnels

When to use: User wants to track conversion funnels and identify drop-off points

Tool sequence:

  1. MIXPANEL_LIST_FUNNELS - List saved funnels to find funnel ID [Prerequisite]
  2. MIXPANEL_QUERY_FUNNEL - Execute funnel analysis [Required]

Key parameters:

Pitfalls:

4. Manage User Profiles

When to use: User wants to query or update user profiles in Mixpanel

Tool sequence:

  1. MIXPANEL_QUERY_PROFILES - Search and filter user profiles [Required]
  2. MIXPANEL_PROFILE_BATCH_UPDATE - Update multiple user profiles [Optional]

Key parameters:

Pitfalls:

5. Manage Cohorts

When to use: User wants to list or analyze user cohorts

Tool sequence:

  1. MIXPANEL_COHORTS_LIST - List all saved cohorts [Required]

Key parameters:

Pitfalls:

6. Run JQL and Insight Queries

When to use: User wants to run custom JQL queries or insight analyses

Tool sequence:

  1. MIXPANEL_JQL_QUERY - Execute a custom JQL (JavaScript Query Language) query [Optional]
  2. MIXPANEL_QUERY_INSIGHT - Run a saved insight query [Optional]

Key parameters:

Pitfalls:

Common Patterns

ID Resolution

Project name -> Project ID:

1. Call MIXPANEL_GET_ALL_PROJECTS
2. Find project by name in results
3. Extract project id

Funnel name -> Funnel ID:

1. Call MIXPANEL_LIST_FUNNELS
2. Find funnel by name
3. Extract funnel_id

Mixpanel Expression Syntax

Used in where and on parameters:

Pagination

Known Pitfalls

Date Formats:

Expression Syntax:

Rate Limits:

Response Parsing:

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| List projects | MIXPANEL_GET_ALL_PROJECTS | (none) |

| Aggregate events | MIXPANEL_AGGREGATE_EVENT_COUNTS | event, from_date, to_date, unit |

| Segmentation | MIXPANEL_QUERY_SEGMENTATION | event, on, from_date, to_date |

| List funnels | MIXPANEL_LIST_FUNNELS | (none) |

| Query funnel | MIXPANEL_QUERY_FUNNEL | funnel_id, from_date, to_date |

| Query profiles | MIXPANEL_QUERY_PROFILES | where, output_properties, page |

| Batch update profiles | MIXPANEL_PROFILE_BATCH_UPDATE | (profile update objects) |

| List cohorts | MIXPANEL_COHORTS_LIST | (none) |

| JQL query | MIXPANEL_JQL_QUERY | script |

| Query insight | MIXPANEL_QUERY_INSIGHT | bookmark_id |


Powered by Composio

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.