Best for
- Android developers analyzing Perfetto traces
- Engineers who want jank, ANR, contention, and memory analysis without writing SQL
- Clients supporting stdio MCP such as Cursor, Claude Code, VS Code, and Codex
A comprehensive Android performance-analysis MCP server that turns natural-language prompts into 12 specialized Perfetto tools covering ANR, CPU, frame performance, contention, Binder IPC, and memory analysis. Stdio transport only; requires Python 3.13+ and uv; community-maintained under Apache-2.0, not official.
Perfetto MCP Server is a Model Context Protocol (MCP) server that transforms natural-language prompts into focused Perfetto analyses. It explains jank, diagnoses ANRs, spots CPU hot threads, uncovers lock contention, and finds memory leaks without writing SQL. Every tool requires trace_path (absolute path to a Perfetto trace) and process_name (target process/app name). All tools return structured JSON with summary, details, and metadata.
Requires Python 3.13+ and uv (on macOS: brew install [email protected], brew install uv). Add the MCP server to Cursor, Claude Code, VS Code, or Codex with command 'uvx perfetto-mcp'. Alternatively pip3 install perfetto-mcp and run python3 -m perfetto_mcp. If your network blocks downloads, set PERFETTO_MCP_TRACE_PROCESSOR_BIN_PATH to the absolute path of a local trace_processor_shell binary. For development, run uv sync and uv run mcp dev src/perfetto_mcp/dev.py inside the perfetto-mcp-server directory.
{"mcpServers":{"perfetto-mcp":{"command":"uvx","args":["perfetto-mcp"]}}}