# Mixpanel MCP

> Mixpanel MCP is an open-source MCP server for analytics and data. Query Mixpanel events, funnels, retention, cohorts, and user profiles. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mrfentmen/mixpanel-mcp
- **GitHub stars:** 0
- **MCP Registry name:** io.github.mrfentmen/mixpanel-mcp
- **Categories:** analytics and data
- **Listing updated:** 2026-11-13

## About

Query Mixpanel events, funnels, retention, cohorts, and user profiles.

## Install

### Claude Code (Terminal)

```sh
claude mcp add mixpanel-mcp --env MIXPANEL_TOKEN='<MIXPANEL_TOKEN>' --env MIXPANEL_API_SECRET='<MIXPANEL_API_SECRET>' -- npx -y @mrfentmen/mixpanel-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mixpanel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/mixpanel-mcp"
      ],
      "env": {
        "MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>",
        "MIXPANEL_API_SECRET": "<MIXPANEL_API_SECRET>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mixpanel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/mixpanel-mcp"
      ],
      "env": {
        "MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>",
        "MIXPANEL_API_SECRET": "<MIXPANEL_API_SECRET>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mixpanel-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/mixpanel-mcp"
      ],
      "env": {
        "MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>",
        "MIXPANEL_API_SECRET": "<MIXPANEL_API_SECRET>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mixpanel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/mixpanel-mcp"
      ],
      "env": {
        "MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>",
        "MIXPANEL_API_SECRET": "<MIXPANEL_API_SECRET>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mixpanel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/mixpanel-mcp"
      ],
      "env": {
        "MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>",
        "MIXPANEL_API_SECRET": "<MIXPANEL_API_SECRET>"
      }
    }
  }
}
```

## FAQ

### Is Mixpanel MCP free?

Yes. Mixpanel MCP is open source, so you can use and self-host it for free.

### How do I add Mixpanel MCP to Claude Code?

Run this command in your terminal: claude mcp add mixpanel-mcp --env MIXPANEL_TOKEN='<MIXPANEL_TOKEN>' --env MIXPANEL_API_SECRET='<MIXPANEL_API_SECRET>' -- npx -y @mrfentmen/mixpanel-mcp

### What are the best alternatives to Mixpanel MCP?

The closest alternatives to Mixpanel MCP are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/mixpanel-mcp
