Skip to content
API Reference
Mixpanel logo

Mixpanel

Analytics

Product analytics and user behavior tracking

Run analytics queries, search dashboards and saved entities, manage dashboards, explore and edit Lexicon events and properties (including tags), review and dismiss data quality issues, open Lexicon UI links, and access session replay data through the Mixpanel MCP server.

Add Mixpanel to your zone and connect it to your MCP client.

  1. In your zone’s Keycard Console, go to Applications -> Add Application -> Explore MCP Servers.

  2. Search for Mixpanel and click Install.

  3. A browser tab opens to Mixpanel’s OAuth consent screen. Sign in and approve the requested permissions.

  4. You’re redirected back. Mixpanel appears on the Applications page with a Keycard MCP Gateway URL.

On the Applications page, click Add to Coding Agent next to Mixpanel and pick how you want to install:

  • Cursor - opens a deeplink that hands the MCP config straight to Cursor. Click Install inside Cursor to finish.
  • Claude Code - opens a dialog with a claude mcp add command. Pick a scope (User, Project, or Local), then copy and run the command in your terminal.
  • Install manually - reveals the Server Name and Server URL to paste into any other MCP-compatible client.

Once connected, Mixpanel’s tools are available to the agent, scoped to whoever signs in to your zone.

What Mixpanel can do once installed.

Mixpanel provides 25 tools:

Get-Projects
List projects accessible to the user with workspaces; use so the user can choose a project
Search-Entities
Search dashboards, reports, cohorts, experiments, feature flags, metric trees, playlists, heat maps, and more; use Get-Report or Get-Dashboard for full details
Run-Query
Run a single insights, funnel, flow, or retention query and return results (use skip_results when chaining into dashboards only)
Get-Query-Schema
Full instructions and JSON schema for the Run-Query report parameter (insights, funnels, flows, retention)
Get-Report
Load a saved report; optionally include results for queryable report types
Create-Dashboard
Create a dashboard from Run-Query query_ids (text cards and reports; max 30 rows)
List-Dashboards
List dashboards with optional title filter (Search-Entities with entity_types dashboard is often preferable)
Get-Dashboard
Get a dashboard; set include_layout for row/cell IDs needed by Update-Dashboard
Update-Dashboard
Update rows, cells, and content; call Get-Dashboard with include_layout first
Duplicate-Dashboard
Copy a dashboard and its contents; optional new title and description
Delete-Dashboard
Delete a dashboard (confirm with the user; use List-Dashboards or Get-Dashboard for the ID)
Get-Events
List event names with optional case-insensitive substring query
Get-Event-Details
Full event metadata (use before Edit-Event)
Edit-Event
Update ownership, verification, visibility, deprecation, and related event metadata
Get-Property-Names
List property names for events, users, or both (scope with event when needed)
Get-Property-Values
Sample property values (for event properties, pass the event)
Get-Property
Full property metadata (use before Edit-Property)
Edit-Property
Edit property metadata; set sensitive=True for PII classification
Get-Lexicon-URL
Return a Lexicon URL to edit display name and description for an event or property
Create-Tag
Create a Lexicon tag for organizing events and properties
Rename-Tag
Rename a tag (unique name; updates all associated events and properties)
Delete-Tag
Delete a tag from the project (removes it from all events and properties; cannot be undone)
Get-Issues
List data quality issues with filters (event, property, type, status, dates, description search)
Dismiss-Issues
Dismiss issues by natural criteria; set dismiss_all_matching when multiple issues match
Get-User-Replays-Data
Session replay data by distinct_id and date range or by specific replay_ids (optional event properties)

What to do once Mixpanel is installed.

Now do this

  • Confirm the gateway works by asking your AI client to call one of the Mixpanel tools above.

Recommended

  • Decide who can use it - write access policies scoped to the Mixpanel resource so only the right users and agents reach the tools.
  • Watch the calls - every tool call lands in your audit log with user identity, resource, and policy decision.