roblox-analytics-mcp
roblox-analytics-mcp
Open Cloud Analytics Query APIを通じて、AIエージェントにRoblox体験のアナリティクスへの読み取りアクセスを提供するローカルMCPサーバーです。
APIがサポートする168のメトリクスすべてを16カテゴリ(リテンション、エンゲージメント、マネタイゼーション、獲得、パフォーマンス、エコノミー、ファネル、カスタムイベント、サムネイル、マッチメイキング、データストア、セーフティ、広告)にわたって公開するほか、「私のゲームの調子はどう?」を1回の呼び出しに変える分析ツールのレイヤーも備えています。
なぜAPIを直接呼び出さないのか
生のAPIは操作が面倒です:
メトリクス名、粒度、ディメンションは大文字小文字を区別し、実行時に発見できず、無効な組み合わせはすべて同じ不透明な
400 / 2001を返します。アカウントごとに毎分30クエリという制限があるため、無駄な呼び出しは高くつきます。
大きなクエリは
202とポーリングが必要なパスを返します。アクティビティのないバケットはゼロとして返されるのではなく省略されるため、ギャップがあいまいになります。
ファネルのステップとプロダクトIDは、フィルタリングする前に発見する必要があります。
このサーバーはそれらすべてを処理します:クエリを消費する前にバンドルされたカタログに対してリクエストを検証し、レート制限内でペースを調整し、長時間実行されるオペレーションを完了まで追跡し、ゼロを捏造する代わりに欠落バケットを明示的に報告し、2段階のファネル検索を代行します。
Related MCP server: Roblox Executor MCP
セットアップ
npm install
npm run build
npm link # optional, puts `roblox-analytics-mcp` on your PATHCreator DashboardでAPIキーを作成します:
アクセス許可の下に、クエリしたい各体験を追加します。
universe-analyticsシステムの下でuniverse.analytics:readオペレーションを許可します。
次に保存します:
roblox-analytics-mcp setup # prompts for the key and an optional default universe
roblox-analytics-mcp test # runs a live DAU query to confirm it works保存されたキーはROBLOX_API_KEY環境変数より優先されます。
Claude Codeに登録する
claude mcp add roblox-analytics -- node /absolute/path/to/AnalyticsMcp/dist/cli.jsツール
クエリ可能なものの発見
ツール | 目的 |
| 168のメトリクスすべてを閲覧;検索、カテゴリ、サポートされるディメンション、粒度でフィルタリング。 |
| 完全な定義:粒度、リテンションウィンドウ、すべての有効なディメンション。 |
| 69のディメンションすべてと、各ディメンションをサポートするメトリクス。 |
| データ内の実際の国、プロダクトID、ファネル名、プレイスバージョン。 |
データの読み取り
ツール | 目的 |
| 1つのメトリクスを時系列として、サマリー統計、外れ値、カバレッジ付きで。 |
| 同じ範囲の複数のメトリクスを、レート制限内でペース調整して。 |
| タイムアウトしたオペレーションのためのエスケープハッチ。 |
分析
ツール | 目的 |
| 前期間との比較による17の主要KPI、急激な変動をフラグ付きで。 |
| テーマ別パック — マネタイゼーション、パフォーマンス、獲得、エコノミー、セーフティ、広告… |
| 1つのメトリクスをサポートするすべてのディメンションでスライスし、ランク付け。 |
| 2つの任意のウィンドウを、系列ごとの絶対変化とパーセント変化で比較。 |
| ファネルとステップIDを発見し、ステップごとのチャーンと完了率を報告。 |
コンテキスト
ツール | 目的 |
| 体験メタデータに加え、公開統計(いいね、お気に入り、ライブCCU)。 |
| 一度に最大50ユニバース。APIキー不要 — 競合他社にも使えます。 |
| APIキーの所有者、読み取り可能なもの、所有者のグループ。 |
| 名前またはクリエイターによるユニバースID — 自分のアカウントとすべてのグループ。 |
| プレイスメタデータ。パフォーマンスメトリクスがプレイスIDを指す場合に。 |
| デフォルトのユニバースとオプションのエイリアスを保存。 |
| キーのソース、デフォルトのユニバース、キャッシュ状態、カタログサイズ、レート制限。 |
アイデンティティ:サーバーが誰のゲームかをどう知るか
Open Cloud APIキーは、呼び出すエンドポイントに対して匿名です — アナリティクスのレスポンスは呼び出し元を明かさず、追加のキー権限でもそれは変わりません。サーバーは代わりに別のエンドポイントを通じてアイデンティティを解決します:
POST https://apis.roblox.com/api-keys/v1/introspect { "apiKey": "..." }キーはボディで送信され、呼び出しには独自のスコープは不要です — 有効なキーならどれでも自己イントロスペクトできます。authorizedUserId、キーのスコープ、有効かつ期限切れでないか、カバーするユニバース(所有者がアクセスできるすべての体験を意味する*)を返します。
そのユーザーIDが公開エンドポイントを通じて残りを解放します:所有者のユーザー名、個人の体験、所属するすべてのグループ。グループスキャンは重要です — スタジオのタイトルは通常、開発者が単に所属しているグループの下に置かれるため、個人アカウントのみの検索では実際のゲームを完全に見逃します。
whoami → who owns this key, what can it read
find_universes { search: "party" } → ranked matches across account + groupsグループリストは6時間キャッシュされます(変更するにはROBLOX_ANALYTICS_CACHE_TTL_MINUTES、バイパスするにはrefresh: true)。40グループのコールドスキャンには約1分かかります。ウォームルックアップは即時です。キャッシュは所有者ごとなので、レート制限されたグループリストだけが次回再試行されます。
読み取れなかったソースは破棄されるのではなくerrorsで報告されます — エラーがある空の結果は、スキャンがスロットリングされたことを意味し、クリエイターにゲームがないことを意味するわけではありません。この2つの状態はそれ以外では同一に見え、混同すると自信満々の誤った答えを生み出します。
知っておくべきこと
集計は報告され、推測されません。 月間のデイリーアクティブユーザーを合計しても月間アクティブ数にはなりません — 2回プレイした人は二重にカウントされるからです。APIがサポートする場合、期間合計は単一の全範囲クエリ(aggregation: "api-period-total")から得られます。サポートしない場合、フォールバックはmean-of-bucketsまたはsum-of-bucketsとラベル付けされ、数値が匿名になることはありません。
sumは常に意味があるわけではありません。 すべての結果にはaggregationHintが付きます。レート、平均、パーセンタイル(ForwardD1Retention、ClientFpsP90、PayingUsersCVR)ではaverage-onlyと表示されます — sumフィールドは算術的なもので、情報ではありません。
ギャップはゼロではありません。 APIはアクティビティのないバケットを省略します。結果は平均を引き下げるゼロを埋めるのではなく、missingBucketsリストを報告します。
時間はUTCです。 endTimeは排他的で、デフォルトは今日のUTC午前0時なので、完全なバケットのみが得られます。現在の部分的な日を含めるにはendTime: "now"を渡します。範囲はRFC 3339、プレーンな日付、または相対的な短縮形(-30d、-12w、-6mo、today、yesterday)を受け付けるか、lastDaysを使用します。
リテンションウィンドウは異なります。 標準メトリクスは4年間保持します。パフォーマンスと安定性のメトリクスは28日間のみ保持します。ウィンドウを超えるクエリは、最も古いクエリ可能なタイムスタンプとともにローカルで拒否されます。
ベータAPI。 Analytics Query APIはベータ版であり、スキーマが変更される可能性があります。メトリクスカタログは公式ドキュメントから生成されます — Robloxがメトリクスを追加した場合はnpm run generate:catalogで更新してください。
開発
npm run build # compile TypeScript
npm test # 6 suites: time, validation, query pipeline, reports, packs, MCP protocol
npm run generate:catalog # regenerate src/catalog.ts from the Roblox docsテストはAPI向けスイートでfetchをモックするため、ネットワークに触れるのはMCPプロトコルスイートのみです(公開エンドポイント、キー不要)。
ライセンス
MIT
Available Tools
19 toolsanalyze_funnelA
Resolve an experience's funnels end to end: discover which funnels exist, discover their step IDs, then pull users, overall completion, step-to-step completion, and churn for every step — ordered, with the biggest drop-off called out.
Funnel step IDs are defined by your own AnalyticsService:LogFunnelStepEvent calls rather than by Roblox, so they must be discovered before they can be queried; this handles that two-stage lookup for you. Omit funnelName to report on every funnel found.
Steps only appear for days a player actually reached them, so use a generous range (90 days is a safe default) or late steps will look absent rather than unreached.
Inputs: endTime, lastDays, breakdown, startTime, +2 more.
breakdown_metric_by_segmentsA
Slice one metric by every dimension it supports — platform, country, age group, new vs returning, payer status, device, locale, place version, and so on — in a single call, ranked within each dimension.
This is the fastest way to answer 'who is this bad for?'. A crash rate or retention figure that looks acceptable overall is often far worse on one platform or in one country, and this surfaces that without guessing which dimension to try. For rate-like metrics it flags segments running at least 1.5x or at most 0.67x the overall value.
Costs one query per dimension, so restrict dimensions if you only care about a few.
Inputs: metric (required), filter, endTime, lastDays, +4 more.
compare_periodsA
Compare metrics between two time ranges, with absolute and percent change per series. Use it to measure the effect of an update, an event, or a marketing push: set current to the window after the change and leave baseline empty to compare against the equal-length window immediately before it, or set baseline explicitly to compare against, say, the same week last year.
With a breakdown, series are matched by label so you can see which platform or country actually moved.
Inputs: metrics (required), filter, breakdown, universeId, +6 more.
describe_metricA
Full definition of one or more metrics: display label, category, every granularity the API accepts, how many days of history are retained, and every dimension valid in breakdown or filter. Check this before querying an unfamiliar metric — an unsupported granularity or dimension returns an opaque 400 and burns query budget.
Inputs: metrics (required).
find_universesA
Find universe IDs for experiences, by name or by creator.
With no arguments it identifies the API key's owner automatically and returns every experience on their account plus every experience in all of their groups — which is where studio titles usually live, so a personal-account-only search will often miss the game you want. Add search to filter by name; results are ranked by lifetime visits, so the real title outranks similarly-named test places.
Pass username, userId, or groupId to target someone else instead.
Scanning many groups takes several requests. Any source that could not be read is reported in errors rather than silently omitted — an empty result with errors present means the scan was throttled, not that the creator has no games.
Inputs: limit, search, userId, groupId, +3 more.
get_analytics_operationA
Fetch the result of a long-running analytics operation by its path. Queries normally poll themselves to completion; this is the escape hatch for one that timed out, using the path reported in the timeout message.
Inputs: operationPath (required).
get_experience_overviewA
One-call health check for an experience. Pulls the headline KPIs — DAU, MAU, stickiness, visits, peak CCU, session length, playtime, D1/D7/D30 retention, revenue, ARPU, ARPPU, paying users and conversion — for a period, compares each against the immediately preceding period of equal length, and flags the ones that moved sharply.
Start here when asked how a game is doing, then drill in with breakdown_metric_by_segments or get_metric_report.
Each KPI reports how it was aggregated: api-period-total values come from a whole-period query, so user counts are distinct users rather than summed daily figures. This issues roughly two queries per metric against a 30-per-minute budget, so a full comparison run takes about a minute.
Inputs: endTime, metrics, lastDays, startTime, +3 more.
get_metric_reportA
Query a themed group of related metrics in one call. Packs: • retention: ForwardD1Retention, ForwardD7Retention, ForwardD30Retention, DailyCohortRetention, WeeklyCohortRetention, DauMauStickiness • engagement: DailyActiveUsers, MonthlyActiveUsers, AverageSessionLengthMinutes, AveragePlayTimeMinutesPerDAU, TotalPlayTimeHours, PeakConcurrentPlayers, Visits, SessionDurationSecondsP50, SessionDurationSecondsP90, TotalSessionsEndedInBucket • monetization: DailyRevenue, AverageRevenuePerUser, AverageRevenuePerPayingUser, PayingUsers, PayingUsersCVR, ItemMonetizationRevenue • acquisition: UniqueUsersWithImpressions, UniqueUsersWithClicks, UniqueUsersWithPlaySessions, QualifiedUniqueUsersWithPlaySessions, ImpressionCVR, ClickCVR, EndToEndCVR, QualifiedEndToEndCVR, RFYPlayThroughRate, RFYQualifiedPTR, RFYDeepEngagementRate • performance: ClientCrashRate15m, ClientCrashCount, ServerCrashCount, OomUnexpectedExits, ClientFpsP50, ClientFpsP10, ServerFrameRateP50, ClientMemoryUsageP90, ClientMemoryUsagePercentageP90, MemoryUsageP90, CpuTimeP90, ClientCpuTimeAvg, CpuCoreUtilization • economy: EconomyTransactionAmount, EconomyTransactionCount, EconomyAverageWalletBalance • thumbnails: ThumbnailImpressions, ThumbnailQualifiedPlays, ThumbnailQualifiedPTR, ThumbnailL7QualifiedPTR, ThumbnailAverageSessionLengthMinutes • safety: TotalAbuseReports, UniqueAbuseReportSubmittersPer1000PlaytimeHours • ads: AdsPublisherReportingTotalImpressions, AdsPublisherReportingTotalRevenueRobux, AdsPublisherReportingVideo2DImpressions, AdsPublisherReportingVideo2DRevenueRobux, AdsPublisherReportingVideo2DDailyUniqueViewer, AdsPublisherReportingVideo2DEpmNoUnvalidatedPc • infrastructure: DataStoreRequests, DataStoreStorageUsageBytes, DataStoreReadRequests, DataStoreWriteRequests, DataStoreRequestsByStatus, MemoryStoreRequests, MemoryStoreMemoryUsageBytes • customEvents: CustomEventCount, CustomEventCountUser, CustomEventSumValue, CustomEventAvgValue, CustomEventAvgPerUserValue
Use this when a question is about an area rather than a single number — 'how is monetization doing', 'is performance regressing', 'where is acquisition leaking'. Optionally break every metric down by a dimension and compare against the preceding period. Metrics the experience has no data for come back with an error field rather than failing the report.
Note the performance pack only retains 28 days of history.
Inputs: pack (required), filter, endTime, lastDays, +6 more.
get_place_infoA
Open Cloud metadata for one place within a universe: name, description, server size, and current server fill behaviour. Useful when performance metrics broken down by Place point at a specific place ID you need to identify.
Inputs: placeId (required), universeId.
get_public_game_statsA
Public storefront stats for up to 50 universes at once: live player count, lifetime visits, favourites, like/dislike ratio, genre, server size, and last-update date. No API key needed, so this works for any public experience.
Use it to benchmark against competitors, or to size up several of your own experiences before deciding which to analyse in depth.
Inputs: universeIds (required).
get_server_statusA
Check how this MCP server is configured: whether an API key is available and where it came from, the default universe, saved aliases, and the query budget. Call this first if an analytics tool returns an authentication error — it distinguishes a missing key from a key that lacks the analytics scope.
Inputs: no named parameters.
get_universe_infoA
Metadata and public storefront stats for an experience: name, description, creator, creation and last-update dates, root place, live player count, lifetime visits, favourites, and the like/dislike ratio.
The like ratio, favourite count, and lifetime visits are not available through the Analytics Query API at all, so this complements the metric tools — a retention problem alongside a falling like ratio reads very differently from one without.
Public stats need no API key and work for experiences you do not own, which makes this usable for competitor comparison. The Open Cloud metadata portion needs a key with universe read access and is reported as an error if the key is analytics-only.
Inputs: universeId, includeOpenCloudMetadata.
list_dimensionsA
List the 69 dimensions available for breakdowns and filters, each with the metrics that support it. Use this to answer 'what can I slice this by' or, in reverse, 'which metrics can I break down by Country'. Dimension values (the actual countries, product IDs, funnel steps) come from list_dimension_values.
Inputs: search, includeMetrics.
list_dimension_valuesA
List the actual values a dimension took over a date range — the countries, product IDs, funnel names, funnel step IDs, custom event names, or place versions present in your data. Run this before filtering: filters match raw values exactly, and guessing them wastes queries.
Values only appear for periods with activity, so widen the range if something you expect is missing. The metric argument selects which namespace of dimensions to resolve against; it does not compute the metric.
Inputs: metric (required), dimensions (required), limit, filter, +6 more.
list_metricsA
Browse the 168 metrics the Roblox Analytics Query API supports, across 16 categories (Retention, Engagement, Monetization, Acquisition, Performance & Stability, Economy, Funnels, Custom Events, Thumbnails, Speech-to-Text, Text-to-Speech, Matchmaking, Data Store, Memory Stores, Safety, Advertising). Start here when you do not already know the exact metric name — names are case-sensitive and the API rejects anything it does not recognise. Filter by free-text search, category, a dimension the metric must support, or a granularity it must allow. Returns names and labels only unless includeDetails is set.
Inputs: search, category, includeDetails, supportsDimension, +1 more.
query_metricA
Query one analytics metric as a time series. This is the core read tool — everything the Analytics Query API exposes is reachable through it.
Returns, per series: summary statistics (first, last, min, max, mean, median, stdDev, sum, percent change, trend per bucket), outlier buckets beyond 2.5 standard deviations, any buckets the API returned no data for, and the raw data points.
Use breakdown to split into one series per dimension value, and filter to narrow the population. The request is validated against the metric's documented capabilities before it is sent, so mistakes come back as a clear message rather than an opaque 400.
Note aggregationHint: for rates, averages, and percentiles the sum of buckets is not a meaningful number — read mean instead.
Inputs: metric (required), limit, filter, endTime, +8 more.
query_metricsA
Query several metrics over the same time range in one call, with the same breakdown and filter applied to each. Prefer this over repeated query_metric calls: the API allows only 30 queries per minute per account, and this paces them automatically.
A metric that fails (commonly because the experience does not use that feature) is reported with an error field and does not abort the rest. Breakdowns and filters a given metric does not support are dropped for that metric rather than failing it.
Inputs: metrics (required), filter, endTime, lastDays, +5 more.
set_default_universeA
Store a default universe ID so later tool calls can omit universeId, and optionally save a short alias for it. Writes to this server's local config file; it does not change anything on Roblox.
Inputs: universeId (required), alias.
whoamiA
Identify the owner of the configured API key, and report exactly what it can read.
Open Cloud keys are otherwise anonymous — no analytics endpoint reveals the caller — so call this first whenever you need to know whose experiences these are, or when a query fails and you cannot tell whether the cause is a missing scope, a disabled key, or the wrong universe.
Returns the key's name, the Roblox account that created it (with username), whether it is enabled and unexpired, its scopes, and which universes it covers — where * means every experience the owner can access. Optionally also lists the owner's groups, which is usually where a studio's real titles live.
Inputs: includeGroups.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
The query-related tools (query_metric, query_metrics, get_metric_report, get_experience_overview, compare_periods, breakdown_metric_by_segments) all read analytics data, but each description carves a distinct usage: single series, batch, themed packs, health check, period comparison, exhaustive segment scan. A couple of metadata/auth tools (get_server_status vs whoami, get_universe_info vs get_public_game_stats) are adjacent but their descriptions separate them.
Names are consistently snake_case and mostly verb-first: list_*, get_*, query_*, compare_periods, analyze_funel, find_universes. Minor deviations: 'whoami' is an idiom rather than verb_noun, and 'breakdown_metric_by_segments' uses 'breakdown' as a verb-ish noun instead of 'break_down_metric_by_segments'.
At 19 tools this is above the ideal 3-15 range, but the server spans analytics querying, metric/dimension discovery, reporting wrappers, funnel analysis, universe/place lookup, and account/config diagnostics, so the count is defensible. A few convenience tools could theoretically be folded into query_metric, but none feel disposable.
Core analytics workflows are well covered: discover metrics/dimensions, query single/bulk metrics, break down, compare periods, analyze funnels, and retrieve async results. Minor gaps: no direct place-list endpoint (place IDs must be discovered via dimension values then resolved with get_place_info) and alias configuration can be set but not explicitly removed.
Maintenance
Related MCP Connectors
Analytics for MCP servers. Find out which of your tools agents get wrong. MCPulse shows you which tools AI agents retry, which come back empty, and which they never call at all. Two lines inside your own server. It never sees your arguments or your results. getmcpulse.com
Analytics your AI agent can actually use. Track, experiment, and optimize via MCP.
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseAqualityCmaintenanceAn MCP server that bridges AI to Roblox Studio, enabling execution of Luau scripts, instance manipulation, play-testing control, and Open Cloud operations via natural language.221-
- AlicenseNot gradedqualityBmaintenanceMCP server that allows AI agents to execute code, inspect scripts, spy on remotes, and interact with a running Roblox game client.59MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to execute Lua code, inspect scripts, spy on remotes, and interact with running Roblox game clients, including support for mobile executors on Android and iOS.2MIT
- AlicenseAqualityFmaintenanceUnofficial MCP server that lets AI agents query Aptabase analytics using cookie-authenticated dashboard endpoints, providing tools for metrics, events, and sessions.171MIT