MCP Server
The Framedash MCP Server is a Model Context Protocol server that gives LLMs direct access to Framedash telemetry data. Version 0.2.1 and later provide 14 read-only stdio tools and 4 resources; version 0.2.0 provides 12 tools, enabling natural-language queries against your game analytics.
Node.js 22+ is required for the local npx server.
Claude Desktop
Section titled “Claude Desktop”Add to your claude_desktop_config.json:
{ "mcpServers": { "framedash": { "command": "npx", "args": ["-y", "@framedash/mcp-server"], "env": { "FRAMEDASH_API_KEY": "fd_xxx", "FRAMEDASH_PROJECT_ID": "your-project-uuid" } } }}VS Code (Claude Extension)
Section titled “VS Code (Claude Extension)”Add to your VS Code settings:
{ "claude.mcpServers": { "framedash": { "command": "npx", "args": ["-y", "@framedash/mcp-server"], "env": { "FRAMEDASH_API_KEY": "fd_xxx", "FRAMEDASH_PROJECT_ID": "your-project-uuid" } } }}Claude Code
Section titled “Claude Code”Register the server with the claude mcp command:
claude mcp add framedash \ -e FRAMEDASH_API_KEY=fd_xxx \ -e FRAMEDASH_PROJECT_ID=your-project-uuid \ -- npx -y @framedash/mcp-serverUse a Read-only + SQL key (query:read) to enable every tool including raw SQL query (a Full key also works), or a Read-only key for the non-SQL analytics tools. In MCP server 0.2.1 and earlier, the query tool description names only data:admin, but a query:read key works with those versions too.
Hosted remote endpoint
Section titled “Hosted remote endpoint”Framedash also hosts a remote MCP server, so MCP clients that support remote servers and OAuth need no local install. Send requests to POST {origin}/api/mcp (default https://app.framedash.dev/api/mcp) over the Streamable HTTP transport. The endpoint is stateless: it uses no session IDs.
Authentication is OAuth 2.1 Bearer only; API keys are not accepted here. A 401 response carries a WWW-Authenticate header whose resource_metadata points at {origin}/.well-known/oauth-protected-resource, so a client that implements the MCP authorization spec can discover the authorization server and complete the OAuth flow on its own, including dynamic client registration. Tool calls run under the granted scopes and projects, exactly as on the REST API. GET and DELETE return 405. The raw SQL query tool is not available over the remote endpoint: it needs the query:read scope (or data:admin), which OAuth tokens can never carry, so raw SQL stays with the stdio server and a Read-only + SQL (or Full) API key. With this server revision, the hosted OAuth endpoint exposes 13 tools and omits query; older server revisions may still list it, but cannot execute it with OAuth.
The remote endpoint has a separate per-IP rate limit at its pre-auth entry point, in addition to the per-account plan rate limit. Each tool call is carried out as REST API requests with the same OAuth token, so the per-grant ceiling applies to tool calls made through it. The stdio MCP server uses an API key and is not affected. See Rate Limits in the API Overview for details.
Use the hosted endpoint as the zero-install alternative to the stdio server for MCP clients with remote-server and OAuth support. The stdio server (npx -y @framedash/mcp-server) remains the choice for API-key-based or local setups.
Environment Variables
Section titled “Environment Variables”| Variable | Required | Description |
|---|---|---|
FRAMEDASH_API_KEY | Yes | API key with scopes required by the tools you use. The Read-only + SQL preset covers every MCP tool, including raw SQL query (the Full preset also works); the Read-only preset covers the non-SQL analytics tools. |
FRAMEDASH_PROJECT_ID | No | Default project UUID |
FRAMEDASH_BASE_URL | No | API base URL (default: https://app.framedash.dev) |
Read-only build comparison
Section titled “Read-only build comparison”For a comparison using an analytics:read key, list the exact build IDs first, then use the published CLI. SQL and data:admin are not required for these commands. Set FRAMEDASH_PROJECT_ID and FRAMEDASH_API_KEY in your environment.
framedash builds --days 30 --format jsonframedash perf-diff --baseline "<baseline-build-id>" --candidate "<candidate-build-id>" \ --days 30 --threshold 5 --fail-on-regression --format jsonUse the same time window, map and platform filters for both populations. Check sample and session counts; a single session or small sample does not establish statistical certainty. Treat null as unknown, not zero. Separately verify readiness using the expected unique run markers and fresh queries when authorized; HTTP 202 alone is not proof of stored data. If you cannot query markers, state that gap. For heatmaps, call list_maps to recover upAxis before interpreting coordinates.
| Tool | Description | Arguments |
|---|---|---|
query | Execute a read-only SQL query against the ClickHouse events table | sql (string, required), project_id (uuid, optional), limit (int 1-1000, default 100) |
Analytics
Section titled “Analytics”| Tool | Description | Arguments |
|---|---|---|
get_dashboard | Project KPIs (DAU, MAU, sessions, events) | project_id (uuid, optional), days (7/14/30/90, default 30) |
get_retention | Cohort retention analysis | project_id (uuid, optional), days (7/14/30/90, default 30) |
get_funnel | Event funnel analysis | project_id (uuid, optional), steps (string, required: comma-separated 2-8 event names), days (7/14/30/90, default 30) |
get_insights | Aggregated insights by dimension | project_id (uuid, optional), metric (count/unique_players, required), group_by (string, required: event_name, platform, etc.), days (7/14/30/90, default 30), limit (10/20/50), event_name (string, optional) |
get_heatmap | Heatmap grid data for a map in engine world coordinates. For maps whose list_maps upAxis is “y” (Unity, Godot), the ground cell is x/z and y is omitted; otherwise it is x/y | project_id (uuid, optional), map_id (string, required), cell_size (5/10/25/50, default 25), days (1/7/14/30, default 30), event_name (string, optional) |
list_builds | List builds; exact build_id avoids the newest-50 cap | project_id (optional), days (7/14/30/90, default 30), build_id (optional), fresh (default false) |
compare_builds | Compare two distinct builds; returns P50/P95 and sample/session counts without a CI threshold | baseline, candidate (required), project_id, days, map_id, platform, fresh (optional) |
list_builds, compare_builds, and structured heatmap context require MCP Server 0.2.1 or later; 0.2.0 users can use the CLI fallback above.
In 0.2.1, get_heatmap also returns structured cells and context, including filters, units and truncation. Use list_maps.upAxis to interpret coordinates; null causes remain unknown. The bounded legacy text remains available.
Project
Section titled “Project”| Tool | Description | Arguments |
|---|---|---|
list_projects | Show projects bound to the API key | (none) |
get_project_status | Project health overview (event counts, last event time) | project_id (uuid, optional) |
list_maps | List maps in the project (each map includes upAxis: “z” or “y”) | project_id (uuid, optional) |
list_content | List content registry entries | project_id (uuid, optional), type (string, optional) |
Alerts
Section titled “Alerts”| Tool | Description | Arguments |
|---|---|---|
list_alerts | List alert rules | project_id (uuid, optional) |
get_alert_history | Alert trigger/resolve history | project_id (uuid, optional), limit (int 1-100, default 50) |
Resources
Section titled “Resources”Data is also available as MCP resources via the framedash:// URI scheme:
| URI | Description |
|---|---|
framedash://projects | Projects bound to the API key |
framedash://projects/{projectId}/maps | Maps with coordinates and bounds |
framedash://projects/{projectId}/content | Content registry entries |
framedash://projects/{projectId}/status | Project health and statistics |
Example Prompts
Section titled “Example Prompts”Once the MCP Server is configured, you can query your data in natural language:
| Prompt | Tool Used |
|---|---|
| ”Show me DAU for the last 7 days” | get_dashboard (days=7) |
| “Analyze the funnel from spawn to death” | get_funnel (steps=“player_spawn,player_death”) |
| “Break down event counts by platform” | get_insights (metric=count, group_by=platform) |
| “Show the FPS heatmap for my map” | get_heatmap (map_id=…) |
| ”Check recent alert history” | get_alert_history |
Next Steps
Section titled “Next Steps”- API Reference: REST API details
- CLI Reference: Command-line tool