Data & Analytics

Mixpanel MCP

Query Mixpanel analytics, manage dashboards, cohorts, metrics, feature flags, experiments, Lexicon events and properties, tracking plans, annotations and automations through Mixpanel's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Delete annotation

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Delete an annotation from a project's charts. Parameters: - project_id (int): the project. - annotation_id (int or str): from List-Annotations. - workspace_id (int, optional): workspace the annotation belongs to.

  • Delete automation

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Delete one of the current user's Automations. It stops running and is removed from their Automations list. Only delete when the user asks; to change an Automation, update it instead of deleting and recreating it. An Automation (also called an agent flow or KPI Monitor, type metric_monitor) analyzes one metric with an AI agent, on a schedule or when the metric meets a threshold condition, and delivers a digest of its findings by email or Slack. Automations are personal: each user sees and edits only their own. Params: - project_id (int, required): Mixpanel project. - automation_id (str, required): The Automation's id from List-Automations.

  • Delete cohort

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Delete a Mixpanel cohort. WARNING: This action is destructive and cannot be undone. Always confirm with the user before deleting a cohort. The webapp will prevent deletion if the cohort is used in active reports or other dependencies, returning an actionable error message. `workspace_id` is required (unlike List-Cohorts, which lists project-wide when it is omitted).

  • Delete dashboard

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Delete a dashboard. Always confirm with the user before proceeding. Use List-Dashboards or Get-Dashboard to find the dashboard ID.

  • Delete tag

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Delete a tag from a Mixpanel project. This removes the tag from all associated events and properties. Use with caution as this operation cannot be undone.

  • Delete tracking plan

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Delete a tracking plan. This cannot be undone. Only the plan and its membership go. The event definitions it referenced stay in the project, so deleting a plan does not untrack anything and does not remove data. The plan's name becomes reusable. Call List-Tracking-Plans or Get-Tracking-Plan first to confirm the id names the intended plan. To drop events from a plan without deleting the plan, call Update-Tracking-Plan with remove_events. Params: - project_id (int, required): Mixpanel project the plan belongs to. - plan_id (str, required): The plan to delete.

  • Merge group

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Merge a group of duplicate names into one canonical entity in a Mixpanel project's Lexicon. Works for events and event properties. DESTRUCTIVE: source entities are remapped to the canonical entity and their historical data is unified. Confirm with the user before calling. However, the merge can be undone in the Mixpanel UI with a single button click, so it's not a permanent action. Use with Find-Duplicate-Groups: pass its suggested_name as canonical_name, the remaining entity_names as source_names, and the group's entity_type as entity_type. canonical_name is filtered out of source_names automatically. entity_type must be 'events' or 'event_properties'. excluded: names from the suggested cluster the user does NOT want to merge. Pass them here (not in source_names) — they are left untouched but are still required to locate the suggestion, so include every name the cluster originally had across canonical + source + excluded. Server-side restrictions (rejected with an error): Mixpanel default entities, custom entities, dropped entities, entities already merged into another, and names that do not exist in the project.

  • Update dashboard

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Call Get-Dashboard with include_layout=True first to get cell/row IDs. - To update a report cell query_id, call Run-Query first. - To rename a report cell or change its description, send only name/description. - A report-link cell can't be renamed or requeried; delete it and create a report cell. - To add rows or cells, use any temporary string ID (e.g. "temp-row-1"). - To add cell in a new row, use the row temp id in the cell definition. - For updates and deletes, use real row and cell ids from Get-Dashboard. - rows_order may list only the rows to move; omitted rows follow in their current order. - filters replaces all board filters, using the Create-Dashboard filter schema; [] removes them. - time_filter sets the board date range, using the Create-Dashboard time filter schema; {} removes it. rows: ['<row_id>', 'add'] | ['<row_id>', 'delete'] Content: {type: 'text', html_content: 'string (max 5000000 chars)'} | {type: 'report', query_id: 'string', name: 'string (max 255 chars)', description: 'string'} cells: ['<cell_id>', 'create', 'text' | 'report', {row_id: 'string', ...Content}] | ['<cell_id>', 'update', 'text' | 'report', {...Content}] | ['<cell_id>', 'delete']

  • Update experiment

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Update experiment configuration or manage its lifecycle. Lifecycle actions (set action param): - "launch": DRAFT→ACTIVE. Enables linked flag. - "conclude": ACTIVE→CONCLUDED. Disables linked flag. - "decide": CONCLUDED→SUCCESS/FAIL. See "decide" below. - "archive" / "restore": soft delete / undelete. For action="decide", pick by settings.collectionMethod (call Get-Experiment first if unknown). shipMode rolls the linked flag as part of decide; omit it on exposure-events experiments (returns UnsupportedCollectionMethod). feature_flag experiments: ship variant X → shipMode="ship_variant", variant=X keep control → shipMode="do_not_ship" (auto: success=true) abandon flag → shipMode="abandon" (auto: success=false, variant="abandoned") record only → success=true|false, variant=<key> (omit shipMode) exposure_events experiments (always omit shipMode): ship variant X → success=true, variant=X keep control → success=true, variant=<control_key> abandon → success=false, variant="abandoned" keepCohortTargeting (only with shipMode=ship_variant|do_not_ship): preserve existing cohort restrictions instead of serving the chosen variant to 100%. Config updates (all optional): name, description, hypothesis, metrics, settings, tags. Metrics: Use List-Metrics to find saved metric IDs, then pass them via primaryMetricIds/guardrailMetricIds/secondaryMetricIds. Alternatively, define inline with the metrics array using eventName and metricType. Field edits and launches run the seven deterministic pre-launch pitfall checks over the *resulting* configuration (the server merges this patch onto the stored experiment and derives most inputs from it). Optional `validationContext` supplies the externals it can't derive (baseline rate, MDE, expected exposures, cohort size, primary-metric measurement types). Blockers short-circuit the update (actionable error); warnings/fyi ride along as `validationFindings` on the updated experiment.

  • Update feature flag

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Update flag configuration, status, or archive state. For rollout / kill-switch / archival decisions — including the staged-rollout cadence, when to use status vs rolloutPercentage, and archive-vs-restore semantics — call `Get-Feature-Flag-Lifecycle-Guidance` first. All fields on `flag` are optional but at least one is required. Set `context` to change the assignment key (`distinct_id`, `device_id`, or a data group's property name such as `company_id`); it cannot be combined with archive/restore, is rejected for experiment-linked flags (change it in the Mixpanel UI, in the experiment's settings) and for flags with cohort-filtered rollout groups. To configure cohort targeting or advanced rollout rules, use the Mixpanel UI via the flag's URL (returned by Get-Feature-Flag).

  • Update lookup table

    Required tools: Get-Business-Context (call it once per conversation, before this tool). Update a lookup table with a row delta and/or edit name/description. Send only the cells you want to change — you do NOT need to read or resend the whole table: - `upsert_rows`: a list of {column: value} objects to add or patch. When a row's `primary_key_column` matches an existing row, only the columns you send are updated and the row's other columns are kept; an unmatched key is added as a new row. Set a column to "" to blank it; to replace all of a row's columns, `delete_keys` it and upsert it in the same call. - `delete_keys`: a list of primary-key values whose rows to remove. Keys not in the table are ignored (reported back under `not_found`). The server reads the current table, applies the delta, and re-imports the full result, so a shrink is an explicit `delete_keys` rather than an omission. The response includes an `update_summary` ({added, updated, deleted, not_found}) so you can confirm what landed. Pass `name`/`description` to edit metadata. Provide at least one field.