MCP server that decodes V8 CPU profiles into token-efficient bottleneck summaries for AI agents
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that decodes V8 CPU profiles into token-efficient bottleneck summaries for AI agents.
Your Node.js app is slow. You ran --cpu-prof. Now you have a 20MB .cpuprofile file โ and your AI agent is completely blind to it.
V8 CPU profiles are massive. A typical .cpuprofile from a production Node.js app is 5โ50MB of raw JSON โ millions of lines mapping memory addresses, tick counts, and microsecond execution sequences. It looks like this:
An AI agent attempting to read this file instantly collapses its context window and fails. Even if it could read it, it can't run the aggregation algorithms needed to compute inclusive/exclusive CPU times across the call tree.
So when you ask your agent:
...it's guessing. It has no access to the profiling data.
v8-cpu-profile-decoder-mcp fixes that. It decodes the profile locally and hands the agent a 10-line semantic summary instead of a 50MB file.
extract_hottest_functionsParses the .cpuprofile and returns the top N functions ranked by exclusive CPU time (self time).
Filters out V8 internals and Node.js built-ins โ only user code.
analyze_call_tree_pathFinds all callers of a specific function and shows how often each one invoked it. Accepts partial, case-insensitive function name matching.
correlate_source_codeMaps compiled JS bottlenecks back to their original TypeScript source locations using .js.map files.
Falls back gracefully to compiled JS locations if no source map is found.
analyze_gc_pressureReports garbage collection overhead as a percentage of profiling duration, broken down by GC type. Flags when GC exceeds a configurable threshold and provides a targeted recommendation.
diff_profilesCompares two .cpuprofile files (before/after an optimization) and returns per-function CPU time deltas,
normalized against each profile's total duration. Frames are matched by call-frame coordinates, not
transient node IDs, so alignment is stable across profiling sessions.
analyze_async_bottlenecksDetects event-loop overhead by identifying V8 internal frames representing async machinery โ
microtask queue processing, nextTick saturation, and timer/immediate callbacks.
Or install globally:
Or programmatically via Chrome DevTools โ Performance tab โ Record.
"Here's my CPU profile at
/app/profiles/CPU.cpuprofileโ which function is consuming the most CPU?"
"Find what's calling
processRequestin this profile and how often"
"Map the top 10 hottest functions back to their original TypeScript files"
"My Node.js API is slow under load โ profile is at
/tmp/CPU.cpuprofile, find the bottleneck"
"Is GC the bottleneck? Check the profile at
/tmp/CPU.cpuprofileand tell me what kind of allocation is causing it"
"Compare these two profiles before and after my optimization โ which functions improved and which regressed?"
"Is this app spending too much CPU on async overhead and event-loop machinery?"
MIT ยฉ vola-trebla
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/v8-cpu-profile-decoder-mcp)<a href="https://allmcps.com/mcp/v8-cpu-profile-decoder-mcp"><img src="https://allmcps.com/api/badge/v8-cpu-profile-decoder-mcp?style=directory" alt="V8 Cpu Profile Decoder MCP on AllMCPs" /></a>