MCP Server
Connect Measure to Claude Code, OpenAI Codex, Google Antigravity, Cursor and other AI coding agents. Query crashes, traces, sessions and bug reports from your editor or AI agent workflows.
Measure exposes a Model Context Protocol (MCP) server that lets AI-powered coding tools query your app's crash and error data directly.
What is MCP?
The Model Context Protocol is an open standard that allows AI tools to interact with external data sources through a consistent interface. With Measure's MCP server, you can ask AI assistants to look up crashes, analyze error trends and inspect stack traces without leaving your editor.
Setup
You can connect Measure's remote MCP server to any client with the endpoint:
| Version | Endpoint |
|---|---|
| Cloud | https://agent.measure.sh/mcp |
| Self Hosted | https://[your-measure-agent-domain]/mcp |
The examples below use the cloud endpoint. If you self-host Measure, replace it with your own agent domain.
Add the server from the terminal:
claude mcp add --transport http measure https://agent.measure.sh/mcpOr add it to .mcp.json in your project:
{
"mcpServers": {
"measure": {
"type": "http",
"url": "https://agent.measure.sh/mcp"
}
}
}When you first use a Measure tool, your client opens a browser window. Measure asks you to allow the client, then you sign in. Subsequent requests work automatically.
Available Tools
ask_question
Ask a natural language question to help debug an app and let Measure Agent work out the answer using the app's telemetry data.
list_apps
List all apps the authenticated user has access to.
get_filter_keys
List the filter keys of an entity (spans, bug_reports, sessions, errors, error_group_events, journeys, network, app_health, memory, devices, funnels or builds): the vocabulary a filter expression is written with.
get_filter_values
List the values a filter key can be set to for an app.
get_metrics
Get app metrics including adoption, crash-free/ANR-free/app-hang-free sessions and launch performance (cold/warm/hot p95).
get_app_health_over_time
Get the app health timeline: sessions, crashes (fatal exceptions), ANRs and app hangs bucketed over time.
get_errors
Get error groups (crashes, non-fatal exceptions and ANRs) for an app, filterable by error type and severity.
get_error
Get individual error events (exception or ANR) for a specific error group.
get_errors_over_time
Get time-series of error occurrences across all error groups, filterable by error type and severity.
get_error_over_time
Get time-series of occurrences for a specific error group.
get_error_distribution
Get attribute distribution (OS, device, version, country etc) for a specific error group.
get_error_common_path
Get the most common user navigation path leading to a specific error group.
get_sessions
Get sessions for an app, ordered by most recent first.
get_sessions_over_time
Get time-series of session counts.
get_session
Get full session with all events.
get_memory_usage_over_time
Get aggregate memory usage over time. Use it to compare shifts in app's memory profile. Returns p50/p90/p95/p99 in KiB by app version/build and time bucket.
get_memory_usage_by_device_tier
Get a breakdown of memory usage by different device memory tiers. Returns p50/p90/p95 in KiB along with sampled-session and sample counts.
get_high_memory_sessions
Get a paginated list of sessions with high memory usage. Use get_session to connect a returned session ID to user actions, screens, and errors.
get_device_sessions_over_time
Get session counts over time for the five device models with the most sessions.
get_devices_by_sessions
Get device models ranked by session count.
get_devices_by_errors
Get device models ranked by error count.
get_devices_by_launch_time
Get device models ranked by app launch time.
get_devices_by_span_duration
Get device models ranked by root span duration.
get_devices_by_memory_usage
Get device models ranked by memory usage.
get_bug_reports
Get bug reports for an app, ordered by most recent first.
get_bug_reports_over_time
Get time-series of bug report counts.
get_bug_report
Get a single bug report with full details.
update_bug_report_status
Update the status of a bug report (open or closed).
get_builds
Get builds for an app, ordered by most recent upload first.
get_profiles
Get captured profiles for an app, newest first.
get_root_span_names
Get all root span names for an app.
get_span_instances
Get span instances for a root span name.
get_span_metrics_over_time
Get p50/p90/p95/p99 duration metrics over time for a span name.
get_trace
Get full trace with all child spans.
get_alerts
Get alerts for an app, ordered by most recent first.
get_journey
Get user journeys for an app as a graph of screens and custom events.
get_journey_nodes
Get the screens and custom events of an app's journey with their number of users, which get_journey can be filtered on.
get_journey_path_users
Get how many users went through a journey path.
get_journey_errors
Get the errors users hit on a journey node or a path.
get_journey_traces
Get the root spans recorded on a journey node or a path.
get_journey_network
Get the network requests made on a journey node or a path.
get_journey_sessions
Get the sessions that went through a journey node or a path.
get_funnels
Get an app's funnels, most recently updated first, optionally narrowed by a search on the funnel name.
get_pinned_funnels
Get an app's pinned funnels in their pinned order.
get_funnel
Get a single funnel with its steps, conversion window and pin.
get_funnel_event_names
Get the custom event names an app sent, which a funnel's steps are chosen from.
get_funnel_conversion
Get the users that reached each step of a funnel over a time range, and the median time between steps.
get_funnel_trend
Get a funnel's conversion by day, week or month, optionally with the builds released in that time.
get_funnel_cadence
Get how many users entered a funnel and converted in each hour of the week.
get_funnel_step_errors
Get the errors users hit while trying to get from one funnel step to the next, with how many of them converted or dropped off.
get_funnel_step_traces
Get the root spans recorded while users tried to get from one funnel step to the next, with their durations for users that converted and those that dropped off.
get_funnel_step_network
Get the network requests made while users tried to get from one funnel step to the next, with their latencies for users that converted and those that dropped off.
get_funnel_step_sessions
Get the sessions of users that converted, or of those that dropped off, between two funnel steps.
create_funnel
Create a funnel from a name, an ordered list of custom event names and a conversion window.
update_funnel
Change a funnel's name, steps or conversion window.
delete_funnel
Delete a funnel.
set_funnel_pinned
Pin or unpin a funnel.
reorder_pinned_funnels
Change the order of an app's pinned funnels.
create_funnel, update_funnel, delete_funnel, set_funnel_pinned and reorder_pinned_funnels change funnels for everyone on the team, and need a role that can edit funnels in the dashboard.
get_network_metrics_trends
Get top network endpoints for an app by latency, error rate and frequency.
get_network_status_codes_over_time
Get time-series of HTTP status class counts (2xx, 3xx, 4xx, 5xx) for an app or a specific endpoint.
get_network_endpoint_status_codes_over_time
Get time-series of exact HTTP status code counts for a specific endpoint.
get_network_latency_over_time
Get time-series of p50/p90/p95/p99 latency for an app or a specific endpoint.
get_network_timeline
Get time-series of network requests per session, bucketed by time since session start, for an app or a specific endpoint.
Think this page can be better?
Open an issue