# Mixpanel MCP分析
## 基本信息
- Slug: `dragonkhoi-mixpanel-mcp`
- Source: modelscope
- Publisher: @dragonkhoi/mixpanel-mcp
- Categories: monitoring / research-and-data / marketing
- Hosted: No
- License: MIT License
- Source URL: https://www.modelscope.cn/mcp/servers/@dragonkhoi/mixpanel-mcp
## 简介
连接到您的Mixpanel数据。查询Mixpanel分析中的事件、留存率和漏斗数据。
## 安装提示

```bash
npx -y @smithery/cli install @dragonkhoi/mixpanel-mcp --client claude
```

## MCP Server 详情

# Mixpanel MCP
[![smithery badge](https://smithery.ai/badge/@dragonkhoi/mixpanel-mcp)](https://smithery.ai/server/@dragonkhoi/mixpanel-mcp)

一个简单的MCP服务器，可以与Mixpanel API接口，允许你从任何MCP客户端（如Cursor或Claude Desktop）访问你的Mixpanel事件数据。查询事件数据、留存率和漏斗。非常适合按需查找，例如：“2月1日队列的用户每周留存率是多少？”

<a href="https://glama.ai/mcp/servers/3ymkqswmp4">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/3ymkqswmp4/badge" alt="mixpanel MCP server" />
</a>

我将随着时间的推移增加对Mixpanel API的更多支持，告诉我你需要哪些工具或者直接提交一个PR。

## 安装
请确保前往你的Mixpanel组织设置中设置[Mixpanel服务账户](https://developer.mixpanel.com/reference/service-accounts)，获取用户名、密码以及你的项目ID（在Mixpanel项目设置中）。

### 通过Smithery安装

要通过[Smithery](https://smithery.ai/server/@dragonkhoi/mixpanel-mcp)自动为Claude Desktop安装mixpanel-mcp：

```bash
npx -y @smithery/cli install @dragonkhoi/mixpanel-mcp --client claude
```


要为Cursor安装mixpanel-mcp，请转到设置 -> Cursor设置 -> 功能 -> MCP服务器 -> + 添加

选择类型：命令，并粘贴以下内容，使用来自Mixpanel的参数`<USERNAME> <PW> <PROJECT_ID>`：
```
npx -y @smithery/cli@latest run @dragonkhoi/mixpanel-mcp --config "{\"username\":\"YOUR_SERVICE_ACCT_USERNAME\",\"password\":\"YOUR_SERVICE_ACCT_PASSWORD\",\"projectId\":\"YOUR_MIXPANEL_PROJECT_ID\"}"
```


### 克隆并在本地运行
克隆此仓库
运行 `npm run build`
将此命令粘贴到Cursor（或其他MCP客户端）
`node /ABSOLUTE/PATH/TO/mixpanel-mcp/build/index.js YOUR_SERVICE_ACCOUNT_USERNAME YOUR_SERVICE_ACCOUNT_PASSWORD YOUR_PROJECT_ID`

## 示例
- 询问留存率数字

<img width="500" alt="IMG_3675" src="https://github.com/user-attachments/assets/5999958e-d4f6-4824-b226-50ad416ab064" />


- 请求事件概览

<img width="500" alt="IMG_9968" src="https://github.com/user-attachments/assets/c05cd932-5ca8-4a5b-a31c-7da2c4f2fa77" />

