跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Mixpanel,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
让你的 AI 读取 Mixpanel 的产品分析数据:事件趋势、按任意属性细分、已保存的漏斗、留存、频次、已保存的 Insights 报告、群组和用户档案,并管理图表注释。使用服务账号登录;支持美国、欧盟和印度的数据驻留。报告需要 Growth 或 Enterprise 套餐。
试试这样问
Mixpanel 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Mixpanel、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Mixpanel + ChatGPT
让你的 AI 读取 Mixpanel 的产品分析数据:事件趋势、按任意属性细分、已保存的漏斗、留存、频次、已保存的 Insights 报告、群组和用户档案,并管理图表注释。使用服务账号登录;支持美国、欧盟和印度的数据驻留。报告需要 Growth 或 Enterprise 套餐。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
MIXPANEL_API_HOST, MIXPANEL_SERVICE_ACCOUNT_USERNAME, MIXPANEL_SERVICE_ACCOUNT_SECRET, MIXPANEL_PROJECT_ID
步骤 1 — 获取凭证
- 以 Owner 或 Admin 角色打开 Organization Settings → Service Accounts(
https://mixpanel.com/settings/org#serviceaccounts,欧盟项目为https://eu.mixpanel.com/settings/org#serviceaccounts),添加一个服务账号。项目的 Owner 或 Admin 也可以在 Project Settings → Service Accounts 中创建一个仅用于该项目的服务账号。 - 为它命名(例如 AnythingMCP),授予它访问该项目的权限并选择角色:读取报告和用户档案用 Consumer 就够了;创建、编辑或删除注释以及列出注释标签需要 Analyst 或更高角色。到期日期可选:一旦过期,所有调用都会返回 401。
- 立即把 username(形如
anythingmcp.abc123.mp-service-account)复制到MIXPANEL_SERVICE_ACCOUNT_USERNAME,把 secret 复制到MIXPANEL_SERVICE_ACCOUNT_SECRET:Mixpanel 只显示一次 secret。如果丢失,请新建一个服务账号。 - 把项目 id 填入
MIXPANEL_PROJECT_ID:Project Settings → Overview → Project ID,或项目地址中/project/后面的数字。 - 按项目存储数据的位置(Project Settings → Overview → Data Residency)设置
MIXPANEL_API_HOST:https://mixpanel.com(美国,默认)、https://eu.mixpanel.com(欧盟)或https://in.mixpanel.com(印度)。 - 仅当你的项目使用 Data Views 时:把
MIXPANEL_WORKSPACE_ID设为全局数据视图的 id(地址中/view/后面的数字)。否则留空。 - 安装连接器并运行
mixpanel_list_event_names,查看你的项目记录了哪些事件。
套餐:报告使用 Mixpanel 的 Query API,它包含在 Growth 和 Enterprise 套餐中。在 Free 套餐上,所有报告工具都会返回 402,安装时的连接检查也一样。注释工具在任何套餐上都可用。要试用报告,Growth 试用期就够了。
限制:Mixpanel 每个项目每小时允许 60 次查询、同时最多 5 次,这个额度与所有查询该项目的其他集成共享。每个报告就是一次查询,所以请一次性请求完整的细分,而不是按天或按用户逐个查询。超过限制时 Mixpanel 返回 429:请等待,不要立即重试。
可读取的内容:事件趋势、按任意属性细分(含求和与平均值)、已保存的漏斗、留存、频次、已保存的 Insights 报告、群组以及用户或群组档案。只能运行已保存的漏斗和已保存的 Insights 报告;报告通过其地址中 report- 后面的数字来指定。日期以整天为单位,按项目时区计算(Project Settings → Overview → Timezone)。
先确认:注释是固定在某个日期上的备注,项目的每个图表都会向所有成员显示。在执行 mixpanel_create_annotation 或 mixpanel_update_annotation 之前,AI 会先和你确认文本和日期。mixpanel_delete_annotation 在安装时默认关闭。
常见错误:401:username 或 secret 错误,或服务账号已过期。403:服务账号无权访问该项目,或角色不够(修改注释需要 Analyst)。400:通常是参数拼写错误、日期没有写成 YYYY-MM-DD,或筛选条件有语法错误。如果正确的项目 id 被拒绝,请核对 MIXPANEL_API_HOST 是否与项目的数据驻留位置一致。空结果不是错误:只是该事件或时间段没有数据。
该连接器不会发送或导入事件和用户档案,不会导出原始事件,不会运行 JQL 或单个用户的活动流,不会编辑 Lexicon,不会创建群组,也不涉及功能开关、实验和项目管理。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 ChatGPT 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。
- 前往 chatgpt.com/plugins,点击 +,然后选择 Add custom MCP server。
- 填写名称,例如 Name:
Mixpanel。 - 在 Connection 下的 Server URL 中填入
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。 - 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
- 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。
可用工具
| Tool | What it does |
|---|---|
mixpanel_list_event_names | List the names of the most common events in the project over the last 31 days, as a plain array of strings |
mixpanel_get_top_events | Get today's top events with their count (amount) and percent_change against yesterday, under events, plus the counting type |
mixpanel_get_event_counts | Count one or more events per minute, hour, day, week or month over a date range |
mixpanel_get_top_event_properties | List the most used property names of one event with how many events carry each, as an object of property name to {count} |
mixpanel_get_top_property_values | List the most common values of one property of one event, as a plain array of strings (e.g. the browsers or plans seen) |
mixpanel_get_event_property_counts | Count one event broken down by the values of one of its properties, per unit over a date range |
mixpanel_query_segmentation | Segmentation: count one event over a date range, optionally filtered with where and broken down with on |
mixpanel_query_segmentation_numeric | Segmentation into numeric buckets: count one event per day or hour, grouped into ranges of a numeric property expression (e.g. order amount… |
mixpanel_query_segmentation_sum | Sum a numeric expression over the events of one type per day or hour, e.g. revenue per day from properties["amount"] |
mixpanel_query_segmentation_average | Average a numeric expression over the events of one type per day or hour, e.g. the average order value from properties["amount"] |
mixpanel_list_funnels | List the saved funnels of the project with funnel_id and name. mixpanel_query_funnel needs one of these ids; a project without saved… |
mixpanel_query_funnel | Get the conversion data of a saved funnel over a date range: meta.dates and, per date, steps (count, step_conv_ratio, overall_conv_ratio… |
mixpanel_query_retention | Retention: of the users who did born_event (first-time, "birth") or any event (recurring, "compounded") in each cohort date, how many came… |
mixpanel_query_frequency | Frequency (addiction): how often users do an event within each day, week or month, counted per hour or per day |
mixpanel_query_insights_report | Run a saved Insights report and return what it shows: computed_at, date_range, headers and series (metric name to date to value) |
mixpanel_list_cohorts | List the saved cohorts of the project with id, name, description, count (members now), created and is_visible |
mixpanel_query_profiles | Read user profiles (or group profiles with data_group_id): one, a list of distinct ids, those matching a where expression, or the members… |
mixpanel_list_annotations | List the annotations of the project (notes pinned to a date on charts), optionally within a date range |
mixpanel_get_annotation | Read one annotation by id: results with id, date, description, user (who added it) and tags |
mixpanel_list_annotation_tags | List the tags used on annotations with id, name and has_annotations |
mixpanel_create_annotation | Add an annotation to the project: a note pinned to a date and time that every chart of the project shows to all its users |
mixpanel_update_annotation | Change the description or tags of an existing annotation (the date cannot be changed) |
mixpanel_delete_annotation | Delete an annotation for everyone in the project; it cannot be restored |
示例提示
- “过去三个月每周有多少注册,按国家细分是怎样的?”
- “给我看我们已保存的新手引导漏斗上个月的转化情况,以及流失用户最多的是哪一步。”
- “九月注册的用户中,在之后八周的每一周里回访的比例分别是多少?”
- “为 10 月 1 日价格页重新上线添加一条注释,保存前先把文本和日期给我看。”
FAQ
ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。
下一步
这份指南对你有帮助吗?