MCP server for analyzing Perfetto trace files using PerfettoSQL with dedicated Chrome trace tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Perfetto MCP Rs.
load_traceOpen one trace with `path`, or several with `paths`; returns an opaque `trace_id` and lightweight routing summary for each file (type/profile, duration, platform, process/thread counts, capabilities, redaction policy, recommended next tools)
execute_sqlRun a PerfettoSQL query (max 5000 returned rows). Prefer the dedicated `chrome_*` / `list_*` tools for standard analyses; use this for custom joins or aggregations they don't expose. Output shaping: `head`/`limit`, `summary`, `columns_only`, `include_row_count`, `max_string_len`. Sensitive URL/head…
list_tablesList tables/views in the loaded trace, optional GLOB filter
list_table_structureShow column names and types for a table
list_processesList processes (pid, name, start/end timestamps)
list_threads_in_processList threads under a process name (up to 2000)
English | ç®€ä½“ä¸æ–‡
An MCP server that lets LLMs analyze
Perfetto traces. Point Claude Code (or any MCP client) at
a trace file (.pftrace / .perfetto-trace / .bin / … — content-sniffed) and
ask in plain language. The server runs PerfettoSQL under the hood, backed by
trace_processor_shell — downloaded automatically on first run, no manual
Perfetto install required.
Dedicated tools ship curated SQL; for custom analysis the agent writes PerfettoSQL — steered toward the right stdlib modules.
You drive perfetto-mcp-rs through an MCP client (Claude Code, Claude Desktop, Codex, Cursor, …) — install one first if you don't have it.
1. Install — downloads the prebuilt binary and, if Claude Code and/or Codex are present, registers the MCP server automatically:
Restart Claude Code (or start a new Codex session) to pick it up. Homebrew, Cargo, project scope, direct-binary download, and manual registration are under Install options.
2. Ask in plain language:
Load
~/traces/scroll_jank.pftraceand tell me the top scroll-jank causes.
Swap in any Perfetto trace you have — captured from the Perfetto UI,
chrome://tracing, or record_android_trace.
The agent calls load_trace, sees it's a Chrome trace, and reaches for the
dedicated chrome_scroll_jank_summary tool — no SQL to hand-write. When a
question falls outside the dedicated tools, it drops down to execute_sql with
raw PerfettoSQL on the same trace.
Works best with agentic clients (Claude Code, Codex, Claude Desktop, Cursor) that chain multi-turn tool calls and follow the server's error-message nudges. Non-agentic clients see the same tools and error nudges, but won't chain the guided flow automatically.
For one trace, other tools act on the most recently loaded trace by default. For
multiple traces, call load_trace with paths, keep the returned trace_id for
each file, and pass the intended id to every trace-bound tool call.
MCP tool annotations are client-facing intent and safety hints, not server-side authorization or execution boundaries.
Essential
| Tool | Purpose |
|---|---|
load_trace | Open one trace with path, or several with paths; returns an opaque trace_id and lightweight routing summary for each file (type/profile, duration, platform, process/thread counts, capabilities, redaction policy, recommended next tools) |
execute_sql | Run a PerfettoSQL query (max 5000 returned rows). Prefer the dedicated chrome_* / list_* tools for standard analyses; use this for custom joins or aggregations they don't expose. Output shaping: head/limit, summary, columns_only, include_row_count, max_string_len. Sensitive URL/header/cookie/path values redacted by default |
Exploration
| Tool | Purpose |
|---|---|
list_tables | List tables/views in the loaded trace, optional GLOB filter |
list_table_structure | Show column names and types for a table |
list_processes | List processes (pid, name, start/end timestamps) |
list_threads_in_process | List threads under a process name (up to 2000) |
slice_descendants_breakdown | Summarize child slices under a long slice id without hand-writing recursive CTEs |
list_stdlib_modules | List PerfettoSQL stdlib modules, optional domain / query / limit filters (no trace needed) |
Chrome traces — dedicated tools so the agent doesn't hand-roll SQL. Each flags row/string truncation in its metadata.
| Tool | Purpose |
|---|---|
chrome_scroll_jank_summary | Worst janky frames with cause, sub-cause, delay_since_last_frame |
chrome_page_load_summary | Page loads: URL, raw boundary timestamps, FCP, LCP, DCL, load timings (ms) |
chrome_page_load_resource_summary | Compact URL-level resource/request summary for page-load windows, ranked by max overlap with normalized origin, navigation/renderer relatedness, and attribution-scope evidence |
chrome_page_load_resource_pipeline | One URL's lifecycle/request spans joined with background parse, script evaluation, and style/layout signals, plus an evidence boundary for DNS/TLS/TTFB/cache/download hypotheses |
chrome_page_load_resource_hotspots | URL-bearing resource/request slices on thread, process, and async tracks ranked by page-load/window overlap, with process/thread identity where available |
chrome_page_load_script_hotspots | Renderer main-thread script execution grouped by URL/slice/process within a page-load/window, with style/layout descendant signals |
chrome_main_thread_hotspots | Top main-thread tasks by duration with ts, upid/pid, cpu_pct, and optional page-load/time-window filters |
chrome_startup_summary | Browser startup events and time-to-first-visible-content |
chrome_web_content_interactions | Web content interactions (clicks, taps, INP) ranked by duration |
Resources
| Resource | Purpose |
|---|---|
resource://perfetto-mcp/stdlib-quickref | On-demand PerfettoSQL stdlib quick reference for Chrome, Android, and generic traces |
The right path depends on the trace type:
load_trace → dedicated chrome_* tools → execute_sql
for deeper cuts on the returned rows. For slow FCP/load, check
chrome_page_load_resource_summary first, then chrome_page_load_resource_pipeline
for one slow URL or chrome_page_load_resource_hotspots for slice drilldown,
before interpreting main-thread ResourceLoad* slices as full request time.
The summary's resource_timing_evidence says whether DNS/TLS/TTFB/download/cache
phase hints exist; keep conclusions at URL lifecycle-span level when phase
breakdown is absent. Use chrome_page_load_script_hotspots for post-resource JS
and style/layout work, and slice_descendants_breakdown on a long task id
for its child-slice breakdown.load_trace → list_stdlib_modules
(or read resource://perfetto-mcp/stdlib-quickref) to check for a ready-made
module first (Android, generic modules like slices.with_context), then run it
via execute_sql + INCLUDE PERFETTO MODULE. No module fits? Fall back to
list_tables / list_table_structure for schema discovery, then execute_sql.Load comparison targets together with load_trace(paths=[...]). The response
returns one stable trace_id per file. Run the same trace-bound tool for each id
(concurrently when the MCP client supports parallel tool calls), then compare
the returned evidence. Calls without trace_id remain backward compatible and
use the most recently loaded trace. If a loaded file changes on disk, its old id
is rejected with an explicit instruction to reload it.
Privacy — tool results enter the LLM context, and real traces can hold URLs,
headers, cookies, and local paths. execute_sql and the dedicated Chrome tools
mask sensitive user and credential-like values by default while keeping the
diagnostic structure visible. For raw forensic work, start the server with
PERFETTO_MCP_REDACT_STRINGS_DEFAULT=false; load_trace reports the active
policy in its summary.
Precision — dedicated Chrome tools preserve full string cells by default. Use
max_string_len only when you explicitly want to trade detail for a smaller
response.
The scroll-jank question above resolves to a single chrome_scroll_jank_summary
call — no SQL to write. When you need a cut the dedicated tools don't expose, the
agent drops to execute_sql with PerfettoSQL; the same breakdown by hand:
Server settings are read at startup; when both a CLI flag and environment variable exist, the CLI flag wins.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tooluse-labs-perfetto-mcp-rs)<a href="https://allmcps.com/mcp/tooluse-labs-perfetto-mcp-rs"><img src="https://allmcps.com/api/badge/tooluse-labs-perfetto-mcp-rs?style=directory" alt="Perfetto MCP Rs on AllMCPs" /></a>