rendertrail
Diagnose and verify React render performance by recording a short interaction against supplied component files and returning a plain-language finding.
Call
inspect_renderwith 1–30 files, an entry file, and 1–20 interaction steps (type, click, wait), optionally including props, export name, and a baseline run ID.Record actual renders in local headless Chrome during the interaction.
Report the main problem, its cost, and the exact line to change, focusing on memo-busting props or state set inside
useEffect.Re-run with changed files and
baselineRunIdto check whether the fix worked.Show results as an inline card in Claude Desktop or as text in Claude Code.
Run locally without calling an AI model; only
reactandreact-domare available, network is blocked, and other packages are replaced with stand-ins.
Records how React components render in headless Chrome and identifies the main performance problem, using the locally installed Chrome for rendering and recording.
Analyzes React component rendering performance by recording component renders in a headless browser and explaining the main performance bottleneck.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rendertrail record how my ProductList component renders and explain the main perf problem"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rendertrail
Rendertrail shows you why a React component is slow, in plain words, inside Claude. Claude sends it a few component files and a short interaction (like typing into a search box); Rendertrail records every render in headless Chrome on your computer and answers with the main problem, what it costs and the exact line to change, then re-runs the same interaction to prove the fix worked.

The card as Claude Desktop shows it, recorded from real results for the example below.
It's an MCP App: one tool, inspect_render,
plus a card that Claude Desktop shows inline in the chat. Claude Code gets the same answer as text.
Install
You need Node.js 22 or later and Google Chrome (or Chromium, see Requirements).
Claude Desktop: the bundle (one click)
Download
rendertrail.mcpbfrom the latest release.Double-click it, or open Claude Desktop → Settings → Extensions and drag the file in.
Click Install. Start a new chat.
Claude Desktop: the config file
Open Claude Desktop → Settings → Developer → Edit Config and add Rendertrail to
claude_desktop_config.json, then restart Claude Desktop.
macOS and Linux:
{
"mcpServers": {
"rendertrail": {
"command": "npx",
"args": ["-y", "rendertrail"]
}
}
}Windows (npx is a script there, so it runs through cmd):
{
"mcpServers": {
"rendertrail": {
"command": "cmd",
"args": ["/c", "npx", "-y", "rendertrail"]
}
}
}Claude Code
claude mcp add --scope user rendertrail -- npx -y rendertrail--scope user makes it available in every project. Claude Code doesn't show the card; the text
answer stands on its own.
Without npx at every start
npx -y rendertrail asks the npm registry for the latest version each time Claude starts the
server. To skip that (or to work offline), install it once and point Claude at the command:
npm install -g rendertrailThen use "command": "rendertrail" with no args in the Desktop config (on Windows,
"command": "cmd", "args": ["/c", "rendertrail"]), or claude mcp add --scope user rendertrail -- rendertrail.
Related MCP server: react-profiler-mcp
Try it
examples/laggy-search is a small app with a search box that feels laggy.
Get it with git clone https://github.com/cfl777/rendertrail, or just that folder with
npx degit cfl777/rendertrail/examples/laggy-search laggy-search. Then open it in Claude:
Claude Code:
cd laggy-search(orcd rendertrail/examples/laggy-search), runclaude.Claude Desktop: give Claude the folder with the Filesystem extension (Settings → Extensions), or paste the files from
src/into the chat.
And ask:
Why is typing in the search box laggy?
You get: Every letter you type re-renders 201 components that didn't change: ResultsList and 200 ×
ResultRow, about 20 ms per letter
(more than one screen refresh, so it feels laggy), because filters is a new object on every render
at SearchPage.tsx:19. Press Fix it and check: Claude wraps it in useMemo, records the same
typing again, and the card says Fixed. Each keystroke now takes 0.1 ms.
On your own code, ask the same kind of question about a component that feels slow. Claude picks the files and the interaction; you don't need to write a test.
What it reports
Two problems for now, ranked by what they cost:
A prop that breaks
memo. Amemocomponent re-renders although nothing it shows changed, because a prop (an object, array or function) is created anew on every render. Rendertrail shows how much time that wastes per keystroke or click, which components re-rendered for nothing, and the line that creates the prop. The fix isuseMemooruseCallback.State set inside an effect. A component copies a value into state inside
useEffect, so React renders it twice where once would do. The fix is to compute the value during render.
Every number comes from a real recording, measured in code. Rendertrail never calls an AI model: your own Claude explains the findings and writes the fix.
Privacy
Everything runs on your computer. Rendertrail records your code locally and has no network code of its own besides the optional localhost
--httpserver. (Started withnpx -y, npm checks the registry for the latest version at launch; a global install avoids that, see Install.)The recorded page has no network access. Every request it makes is blocked, so the component can't load or send anything.
Runs are stored locally, in
~/.rendertrail/runs(the last 50), so a re-run can be compared with an earlier one. Delete the folder whenever you like.RENDERTRAIL_RUNS_DIR(an absolute path) stores them elsewhere.Anonymous counts are off unless you turn them on, and even then they are only stored, never sent: sending is not implemented. When on, each run adds to three counters for the current week in
~/.rendertrail/counts.json: the number of runs, the number of findings per rule, and the number of fixes checked (re-runs where the main problem went away). The week (like2026-W46) is the only time information. No code, file names, component names, paths, run ids or machine id are counted.Turn on (recommended): create
~/.rendertrail/config.jsoncontaining{ "telemetry": true }. Every way of starting Rendertrail reads it, and--telemetry-statusreports it correctly.Or turn on in the environment Claude starts the server with:
"env": { "RENDERTRAIL_TELEMETRY": "1" }next to"command"in the Desktop config, orclaude mcp add --scope user -e RENDERTRAIL_TELEMETRY=1 rendertrail -- npx -y rendertrail.1,true,yesandonturn them on;0,false,noandoffturn them off, even when config.json says true; any other value leaves them off.DO_NOT_TRACKset to anything except empty,0orfalsealways turns them off.Check:
npx rendertrail --telemetry-statusin a terminal says whether they're on and prints the counts. It sees config.json and your terminal's environment, not the environment Claude gives the server, so an"env"setting in a Claude config won't show there.
Requirements
Node.js 22 or later.
Google Chrome. Rendertrail starts your installed Chrome headless, so there's nothing to download. Without Chrome it uses Playwright's Chromium, which you install once (about 150 MB); the tool's answer tells you the exact command, which looks like
npx playwright-core@1.63.0 install chromium.React 18 or 19, function components. Rendertrail records with its own copy of React 19.
Limits
Not yet supported:
A full inspector view (the card shows the main problem and up to two more).
Claude on the web and on mobile: they need a hosted server, and Rendertrail runs locally.
Checks on pull requests.
Recording a whole app: Claude passes the files needed for one component, and imports it didn't send are replaced with stand-ins (the answer lists them).
Rules for class components (they're still recorded).
Other frameworks than React.
React Compiler mode.
What to expect with real code (from docs/real-code-check.md):
Only
reactandreact-domare available. Other npm packages (state libraries, routers, data fetching, table and form libraries) are replaced with stand-ins, so what they do isn't recorded; code that needs one to render (create(…),connect(…)(…),useReactTable(…)) can't be recorded until it gets a small local version or static data. The answer names the packages.Data the component requests never arrives (the page has no network); the answer lists the blocked requests. Pass static data instead.
The entry file must export the component. A file that mounts itself with
createRootneeds an export too; its owncreateRootcall is skipped.A component that needs a provider from the app (context, router, store) needs a small wrapper that renders the provider, sent as the entry.
A finding needs a cost: a broken
memois reported from 1 ms wasted per step, and state set in an effect when it happens on at least half of the steps that re-render the component, and on at least 2 of them (an interaction of a single click needs only that click).
Command line
npx rendertrail # the MCP server over stdio (what Claude starts)
npx rendertrail --http # the MCP server over HTTP on http://127.0.0.1:3001/mcp (PORT overrides)
npx rendertrail --telemetry-status # are the anonymous counts on, and what they hold
npx rendertrail --version
npx rendertrail --helpDevelopment
Needs Node 22 or later.
npm install
npm run build # card -> dist/card.html, command -> dist/server.js (+ dist/start.js), dist/instrument.js
npm test # unit tests
npm run test:golden # builds, then golden tests: records fixtures/ in your installed Chrome
node dist/server.js # the MCP server over stdio
npm run start:http # the MCP server over HTTP, for the ext-apps basic-host
npm run dev:card # the card in every state, no host needed: http://127.0.0.1:5177/
npm run bundle # builds, then the MCP Bundle: dist/rendertrail.mcpb (dist/rendertrail-win32.mcpb on Windows)
npm run demo:gif # docs/demo.gif from the card harness
npm pack # builds, then the npm tarball
npm run test:pack # builds, packs, installs the tarball in a temp folder, checks --version and stdioEach run is stored in ~/.rendertrail/runs (the last 50 are kept), so a later call can compare
against it with baselineRunId. Set RENDERTRAIL_RUNS_DIR to an absolute path to store them elsewhere.
RT_SAVE_TRACES=1 npm run test:golden rewrites the recorded traces the analyzer's unit tests use.
Build the release bundle on macOS or Linux (CI builds it on every push and keeps it as a workflow
artifact): it carries esbuild's binaries for macOS and Windows, and Windows can't mark the macOS
ones as executable, so on Windows npm run bundle makes a Windows-only bundle.
Connect a checkout to Claude Code with claude mcp add rendertrail -- node <absolute path>/dist/server.js,
or to Claude Desktop with an mcpServers entry that runs node <absolute path>/dist/server.js.
HANDOFF.md has the scope, the decisions and the plan; CLAUDE.md has the rules for coding sessions.
License
MIT
Available Tools
1 toolinspect_renderRendertrail: inspect renderA
Record how a React component renders while someone interacts with it, and explain the main performance problem. Use it when a React UI feels slow or re-renders too often. Pass only the files needed to render the component, the file to mount, and a short interaction, such as typing into an input. Only react and react-dom are available: replace other packages (stores, routers, data fetching) with small local versions or static data, and export the component to mount. Returns the main problem, what it costs and the line to change. To check a fix, call it again with the changed files and baselineRunId.
Inputs: entry (required), files (required), steps (required), props, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With a single tool there is nothing to confuse it with; the purpose (diagnose React render performance) is unambiguous. An agent has exactly one obvious path for 'my React UI feels slow'.
inspect_render follows a clear verb_noun snake_case convention and reads naturally. With only one tool there is no pattern to verify across the set, so it cannot earn a full 5 on consistency evidence.
The server is a single-purpose diagnostic, so one tool is defensible, but a one-tool surface feels thin — common follow-ups (list prior runs, compare multiple components) have no entry point. Borderline rather than well-scoped.
The lifecycle is largely closed: it detects the main problem, reports cost and the line to change, and supports re-running with baselineRunId to verify a fix. Minor gaps exist (no way to enumerate past runs or test more than one short interaction), but agents can work around them.
Maintenance
Related MCP Connectors
Automate cloud Chrome—navigate, click, type, screenshot, run code, record screen video
Save regression flows for your web app, run them in cloud Chromium, read failures with screenshots.
Watches your live app, explains every problem in plain language and writes the fix prompt.
Designs React sites with animated components fitted to your brand, then checks each page.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceBridges unnecessary React re-render data from the browser to coding agents, enabling performance diagnosis and optimization through MCP tools.1MIT
- FlicenseNot gradedqualityDmaintenanceStreams live React profiler data to AI agents, enabling them to analyze performance and suggest specific, actionable fixes for slow components.3-
- AlicenseNot gradedqualityCmaintenanceEnables users to ask about render performance in React and React Native apps via natural language, exposing tools for listing render hotspots and explaining component re-renders.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to profile React applications, detect performance bottlenecks, and automatically apply fixes like memoization and code hoisting.1360 npm2MIT