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.

Adding Mixpanel provisions three things in your zone: an upstream resource pointing at https://mcp.mixpanel.com/mcp (kept inside Keycard), a Keycard MCP Gateway URL - the downstream resource - that you install in Cursor, Claude Code, or any MCP client, and a provider for token exchange with Mixpanel’s OAuth issuer.

When your AI client makes a tool call, it sends a Keycard-issued access token to the gateway URL. Keycard’s STS exchanges that token for an upstream Mixpanel token, the gateway calls the upstream MCP, and the response is proxied back. Your zone’s identity provider, access policies, and audit log apply to every call - the upstream credential never leaves Keycard. Each call is recorded in the audit log with the user identity, the resource accessed, and the policy decision.

Tools the upstream server exposes through the Keycard MCP Gateway.

Mixpanel exposes 25 tools through the gateway:

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)

Add Mixpanel to your zone and install the gateway URL into Cursor, Claude Code, or any MCP client.

  1. Open the catalog

    In your zone’s Keycard Console, go to ApplicationsAdd ApplicationExplore MCP Servers.

  2. Find and install Mixpanel

    Search for Mixpanel in the catalog and click Install.

  3. Connect your development tool

    Once installed, Mixpanel appears on the Applications page with a Keycard MCP Gateway URL. Use the Install dropdown to add it to Cursor, Claude Code, or any MCP-compatible client.