MCP server for analyzing React Profiler exports: rerenders, commit spikes, slow components.
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.
Analyze React render behavior in Next.js apps and apply fixes in the editor.
perfonext-render-mcp is a Model Context Protocol (MCP) server that gives GitHub Copilot, Claude Desktop,
Claude Code, and other MCP clients structured, machine-readable React render analysis for Next.js performance
work. It turns live capture sessions and React DevTools Profiler exports into component costs, exact rerender
causes, and regression diffs β evidence an MCP client can act on directly.
perfonext-render-mcp is a standard MCP stdio server, so it works with any MCP-compatible client
(GitHub Copilot in VS Code, Claude Desktop, Claude Code, Cursor, and others). Run it directly with npx:
Or install globally:
The executable command remains perfonext-render-mcp after installation.
Add the server to .vscode/mcp.json (the workspace MCP configuration file):
Reload the VS Code window and run MCP: List Servers to start it, or accept the trust prompt when it appears.
Add the server to claude_desktop_config.json:
Restart Claude Desktop to pick up the new server.
Add the server with the CLI:
Or add the same mcpServers entry to .mcp.json.
Any client that supports stdio MCP servers can launch npx -y @perfonext/render-mcp. Consult your
client's documentation for its MCP server configuration format.
For a locally-built checkout, point command/args at node and the repo's dist/index.js instead.
spawn npx ENOENT / spawn node ENOENT on macOS with nvmIf the server fails to start with this error, your GUI MCP client likely cannot see nvm. GUI apps on
macOS do not load shell config (.zshrc/.bashrc), so nvm-installed npx/node are not on PATH.
Use an absolute npx path and include the same Node directory in PATH:
Merge these fields into your client's server entry, under servers for VS Code or mcpServers for
Claude Desktop/Code. Then ask your assistant: "Run a render analysis on my app."
perfonext-render-mcp is the agent companion to React DevTools Profiler and react-scan β best at
machine-readable summaries, exact rerender-cause attribution, source-aware follow-up, and diffing. The loop is
collect β analyze β fix, all locally:
Note: while a live capture session is active, React DevTools Timeline Profiler will not receive events (react-scan/lite takes over the profiling channel). Calling
stop_render_capturerestores it.
Capabilities:
changeDescription data, and falling back to deterministic heuristics otherwisediv, span, β¦) and unnamed components out of ranked output so findings stay actionable| Tool | Description |
|---|---|
begin_render_analysis | Entry point. Accepts approach: "live" | "manual". For live: starts a capture session and returns the instrumentation snippet. For manual: returns React DevTools Profiler export steps. |
| Tool | Description |
|---|---|
run_render_capture | Called after instrumentation is wired up. Accepts method: "manual-interaction" | "test-suite". Returns focused instructions for whichever method the user picks. |
stop_render_capture | Stop the session, finalize buffered events into a profile, and return a profileId plus dataQuality (exact | heuristic) for analysis |
get_captured_renders | Optional diagnostic: peek at session progress without stopping (commit count, unknown events). Only call if something seems wrong. |
| Tool | Description |
|---|---|
load_render_profile | Parse and load an exported React DevTools Profiler JSON file from disk (manual path entry point) |
get_render_summary | Summarize a loaded profile: top components by render cost, hottest commits, and detected render issues |
get_hot_commits | Rank the most expensive commits and show the top components inside each spike |
get_slow_components | Rank the slowest components by total actual render time |
get_rerender_causes | Explain rerender causes with evidence, confidence, and a risk score. Reports exact changed props/state/hooks when changeDescription data is present (dataQuality: "exact"), heuristics otherwise |
compare_renders | Diff two loaded render profiles and rank regressions, improvements, additions, and removals |
Ask your assistant: "Run a render analysis on my app."
Your MCP client calls begin_render_analysis and asks you to choose:
Option A β Live capture (recommended)
Your MCP client will:
127.0.0.1:7721)react-scan as a devDependency if not presentinstrumentation-client.js at your project root with the session snippetrun_render_capture)Running a test suite? Use
npx playwright testas usual.react-scan/liteinstalls__REACT_DEVTOOLS_GLOBAL_HOOK__itself, so a visible window and the React DevTools extension are not required. The run still yieldschangeDescriptiondata anddataQuality: "exact".
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/perfonext-render-mcp)<a href="https://allmcps.com/mcp/perfonext-render-mcp"><img src="https://allmcps.com/api/badge/perfonext-render-mcp?style=directory" alt="Perfonext Render MCP on AllMCPs" /></a>