Mixpanel MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Mixpanel MCP or direct API to query analytics, manage dashboards, analyze cohorts, and monitor experiments through natural language.

Mixpanel MCP logoMixpanel MCP
Dcr Oauth

Mixpanel MCP is Mixpanel's hosted server for product analytics and experimentation data. It gives teams a secure, natural-language interface to Mixpanel insights and operations.

85 Tools

Try Mixpanel MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Mixpanel MCP
Try asking
TOOLS

Supported Tools

Every Mixpanel MCP action and event your agent gets out of the box.

Activate automation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Bulk edit events

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Bulk edit properties

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create annotation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create automation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create cohort

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create custom property

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create dashboard

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create experiment

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create feature flag

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create lookup table

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create metric

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create tag

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Create tracking plan

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Delete annotation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Delete automation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Delete cohort

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Delete dashboard

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Delete tag

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Delete tracking plan

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Describe cohort schema

Return the schema for the `definition` parameter accepted by Create-Cohort and Update-Cohort.

Dismiss duplicate group

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Dismiss issues

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Display query

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Duplicate dashboard

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Edit event

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Edit property

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Explain experiment health check

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Fill event metadata

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Find duplicate groups

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get annotation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get audit log

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get automation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get automation run history

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get business context

Call this FIRST, before any other Mixpanel tool whenever ANY of these are true: 1.

Get cohort

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get custom property

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get dashboard

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get events

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get experiment

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get experiment results interpretation guidance

Returns best-practice guidance for interpreting Mixpanel experiment results and making ship/iterate/kill decisions.

Get experiment setup guidance

Returns best-practice guidance for designing a Mixpanel experiment before launch.

Get feature flag

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get feature flag lifecycle guidance

Returns best-practice guidance for managing a Mixpanel feature flag after creation — staged rollout, kill-switch, hygiene/cleanup, archival, exposure tracking, and experiment linkage.

Get feature flag setup guidance

Returns best-practice guidance for creating and configuring a Mixpanel feature flag.

Get issues

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get lexicon url

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get live events

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get lookup table

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get metric

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get projects

If you have not yet called Get-Business-Context this conversation, call it FIRST — it may resolve project nicknames, acronyms, or org-specific terms in the user's request and tell you which project to pick without listing them.

Get project token

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get property values

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get query schema

Get the full instructions and JSON schema for building a full Mixpanel query.

Get report

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get tracking plan

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Get user replays data

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List annotations

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List automations

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List cohorts

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List dashboards

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List experiments

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List feature flags

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List metrics

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List organizations

Returns the organizations the current user belongs to.

List properties

Required tools: Get-Business-Context (call it once per conversation, before this tool).

List tracking plans

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Merge group

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Pause automation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Rename tag

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Run experiment pre launch checks

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Run query

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Search entities

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Search prior experiments

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update annotation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update automation

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update business context

Update the business context at the project or organization level.

Update cohort

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update custom property

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update dashboard

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update experiment

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update feature flag

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update lookup table

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update metric

Required tools: Get-Business-Context (call it once per conversation, before this tool).

Update tracking plan

Required tools: Get-Business-Context (call it once per conversation, before this tool).

SETUP GUIDE

Connect Mixpanel MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["mixpanel_mcp"],
  mcp: true,
});
Create a session scoped to Mixpanel MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Analyze Mixpanel funnel drop-offs by device",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Mixpanel MCP request
SETUP GUIDE

Connect Mixpanel MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["mixpanel_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Mixpanel MCP
3

Run Mixpanel MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Analyze Mixpanel funnel drop-offs by device" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Mixpanel MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native Mixpanel MCP Integration

  • Supports both Mixpanel MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Mixpanel data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Mixpanel access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Mixpanel
  • Scoped, least privilege access to Mixpanel resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use Mixpanel MCP with any AI Agent Framework

Choose a Framework you want to connect Mixpanel MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Mixpanel MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Mixpanel MCP tool your agent needs.Free to start.

Start building