PerfettoSAFE
This is a Model Context Protocol (MCP) server that gets answers from your Perfetto Traces. It turns natural‐language prompts into focused Perfetto analyses.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Turn natural language into powerful Perfetto trace analysis
A Model Context Protocol (MCP) server that transforms natural-language prompts into focused Perfetto analyses. Quickly explain jank, diagnose ANRs, spot CPU hot threads, uncover lock contention, and find memory leaks – all without writing SQL.
✨ Features
- Natural Language → SQL: Ask questions in plain English, get precise Perfetto queries
- ANR Detection: Automatically identify and analyze Application Not Responding events
- Performance Analysis: CPU profiling, frame jank detection, memory leak detection
- Thread Contention: Find synchronization bottlenecks and lock contention
- Binder Profiling: Analyze IPC performance and slow system interactions
📋 Prerequisites
- Python 3.13+ (macOS/Homebrew):
brew install [email protected]
- uv (recommended):
brew install uv
🚀 Getting Started
Cursor
[](https://cursor.com/install-mcp?name=perfetto-mcp&config=eyJjb21tYW5kIjoidXZ4IHBlcmZldHRvLW1jcCJ9)
Or add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"perfetto-mcp": {
"command": "uvx",
"args": ["perfetto-mcp"]
}
}
}Claude Code
Run this command. See Claude Code MCP docs for more info.
# Add to user scope claude mcp add perfetto-mcp --scope user -- uvx perfetto-mcp
Or edit ~/claude.json (macOS) or %APPDATA%\Claude\claude.json (Windows):
{
"mcpServers": {
"perfetto-mcp": {
"command": "uvx",
"args": ["perfetto-mcp"]
}
}
}VS Code
d0a5f506c09eOBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add perfetto-mcp -- uvx perfetto-mcp
{
"mcpServers": {
"perfetto-mcp": {
"command": "uvx",
"args": [
"perfetto-mcp"
]
}
}
}Exposed tools (12)
11 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
anr_root_cause_analyzer | read | |
binder_transaction_profiler | read | |
cpu_utilization_profiler | read | |
detect_anrs | read | |
detect_jank_frames | read | |
execute_sql_query | write | |
find_slices | read | |
frame_performance_summary | read | |
heap_dominator_tree_analyzer | read | |
main_thread_hotspot_slices | read | |
memory_leak_detector | read | |
thread_contention_analyzer | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
static/Perfetto-mcp-showcase.gif
Gates applied: no_behavioural_pass.
d0a5f506c09efull audit observations/trust-audit/mcp-server/antarikshc__perfetto.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | d0a5f506c09e | SAFE | B | 89 | first audit |
Questions
What is the Perfetto MCP server?
This is a Model Context Protocol (MCP) server that gets answers from your Perfetto Traces. It turns natural‐language prompts into focused Perfetto analyses.
What tools does Perfetto expose?
12 in total: 11 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Perfetto safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Perfetto need?
No credential environment variables were found in its source, so it appears to need none.
How does Perfetto run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as perfetto-mcp.
How current is this page?
The grade is for one exact copy of the source (d0a5f506c09e), read on 2026-10-06. The repository is watched and re-audited when it changes.