インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Mixpanel をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
AI に Mixpanel のプロダクト分析を読み取らせます。イベントの推移、任意のプロパティによるセグメンテーション、保存済みファネル、リテンション、頻度、保存済み Insights レポート、コホート、ユーザープロファイルを読み取り、チャートの注釈を管理できます。サービスアカウントでサインインし、米国、EU、インドのデータレジデンシーに対応しています。レポートには Growth または Enterprise プランが必要です。
こう聞いてみよう
Mixpanel のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Mixpanel をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
Mixpanel + Gemini
AI に Mixpanel のプロダクト分析を読み取らせます。イベントの推移、任意のプロパティによるセグメンテーション、保存済みファネル、リテンション、頻度、保存済み Insights レポート、コホート、ユーザープロファイルを読み取り、チャートの注釈を管理できます。サービスアカウントでサインインし、米国、EU、インドのデータレジデンシーに対応しています。レポートには Growth または Enterprise プランが必要です。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
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、EU のプロジェクトでは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/の後に続く数字です。 MIXPANEL_API_HOSTを、プロジェクトがデータを保存している場所(Project Settings → Overview → Data Residency)に合わせて設定します。https://mixpanel.com(米国、既定)、https://eu.mixpanel.com(EU)、https://in.mixpanel.com(インド)のいずれかです。- プロジェクトで Data Views を使っている場合のみ、
MIXPANEL_WORKSPACE_IDにグローバルデータビューの ID(アドレスで/view/の後に続く数字)を設定します。それ以外の場合は空のままにします。 - コネクターをインストールし、
mixpanel_list_event_namesを実行して、プロジェクトで記録しているイベントを確認します。
プラン: レポートは Mixpanel の Query API を使います。Query API は Growth プランと Enterprise プランに含まれています。Free プランでは、すべてのレポートツールが 402 を返し、インストール時の接続チェックも同じく 402 になります。注釈ツールはどのプランでも使えます。レポートを試すには Growth のトライアルで十分です。
制限: Mixpanel では、プロジェクトごとに 1 時間あたり 60 クエリ、同時実行 5 件までで、この枠はプロジェクトを照会するほかのすべての連携と共有です。レポート 1 回が 1 クエリになるため、日ごとやユーザーごとに分けず、内訳は 1 回でまとめて依頼してください。上限を超えると 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 — アダプターをインストール
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 — Gemini にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Gemini CLI は ~/.gemini/settings.json(Windows では %USERPROFILE%\.gemini\settings.json)から MCP サーバーを読み込みます。次を追加してください:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API キーを作成し、
YOUR_MCP_API_KEYと置き換えます。 - ファイルを保存し、
geminiを再起動します。 - Gemini CLI で
/mcpを実行します(またはシェルでgemini mcp list)。anythingmcpが接続済みとして表示されるはずです。 - プロンプトを入力しましょう。Gemini CLI が
Mixpanelのツールを呼び出せるようになりました。
利用可能なツール
| 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 |
プロンプトの例
- 「過去 3 か月の週ごとのサインアップ数を、国別の内訳で教えてください。」
- 「保存済みのオンボーディングファネルについて、先月のコンバージョンと、最も多くのユーザーが離脱したステップを見せてください。」
- 「9 月にサインアップしたユーザーのうち、その後 8 週間の各週に戻ってきた割合はどれくらいですか。」
- 「10 月 1 日の料金ページのリニューアルについて注釈を追加し、保存する前に文面と日付を見せてください。」
FAQ
Gemini CLI はどこから MCP サーバーを読み込みますか? ユーザー単位では ~/.gemini/settings.json、プロジェクト単位ではプロジェクト内の .gemini/settings.json です。gemini mcp list で各サーバーと接続状態を確認できます。
次のステップ
このガイドは役に立ちましたか?