Description

This MCP server provides comprehensive Perfetto trace analysis capabilities for Android performance debugging and profiling. Built by Antariksh with Python and the Perfetto trace processor, it offers specialized tools for detecting ANRs, analyzing frame jank, profiling CPU utilization, identifying memory leaks, examining heap dominator trees, and detecting thread contention issues. The implementation features persistent connection management with automatic reconnection, unified JSON response formatting across all tools, and integration with Perfetto's standard library modules for advanced analysis workflows. It's designed for Android developers, performance engineers, and QA teams who need AI-assisted trace analysis for debugging app performance issues, identifying bottlenecks, and conducting systematic performance investigations without requiring deep Perfetto SQL expertise.

Installation

npx -y perfetto-mcp
npm install perfetto-mcp
git clone https://github.com/antarikshc/perfetto-mcp

Claude Desktop Configuration

Add this configuration to your Claude Desktop config file to enable this MCP server:

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json

Config file location: %APPDATA%\Claude\claude_desktop_config.json

Config file location: ~/.config/Claude/claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "perfetto-trace-analyzer": {
      "command": "npx",
      "args": [
        "-y",
        "perfetto-mcp"
      ]
    }
  }
}