react-perf-mcp
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., "@react-perf-mcp review performance of src/components/Cart.tsx"
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.
react-perf-mcp
An MCP server that runs parallel AI agents to analyze your React components for performance issues. Works in Claude Code, Cursor, or any MCP-compatible client.
How it works
Most code review tools send your code to a single LLM and ask for a general review. react-perf-mcp runs four specialized agents in parallel, each focused on a specific performance domain:
Agent | Analyzes |
RenderAgent | Unnecessary re-renders, inline objects/functions, missing |
MemoAgent | Incorrect |
BundleAgent | Heavy imports, missing |
ProfilerAgent | Cascading re-renders, missing virtualization, state co-location, |
All agents run in parallel and are aware of your project context (React version, bundler, Redux usage) and your team's custom rules via .react-perf.json.
Related MCP server: react-native-dev-mcp
Setup
npx react-perf-mcp initThe setup wizard will:
Ask for your Anthropic API key
Auto-detect Claude Desktop, Claude Code, and Cursor
Write the MCP server config to the right place
Manual config
Add to your MCP client config (e.g. ~/.claude/settings.json for Claude Code):
{
"mcpServers": {
"react-perf": {
"command": "npx",
"args": ["react-perf-mcp"],
"env": {
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}Usage
Once configured, talk to your MCP client naturally:
review the performance of src/components/Cart.tsxanalyze this component for re-render issues:
[paste code]Available tools
Tool | Description |
| Read a file from disk and analyze it |
| Analyze a code snippet directly |
Team config
Add a .react-perf.json to your project root to customize the agents' standards:
{
"rules": {
"memo": "always for list items and components receiving callbacks",
"bundleLimit": "200kb per chunk",
"lazyLoad": "required for routes and heavy third-party components"
}
}This is similar to .eslintrc — commit it so your whole team gets consistent suggestions.
Requirements
Node.js 18+
Anthropic API key (get one here)
Contributing
Issues and PRs welcome. Each agent lives in src/agents/ — adding a new one is straightforward.
License
MIT
Available Tools
2 toolsreview_codeA
Analyze a React/TypeScript code snippet for performance issues using parallel AI agents (re-renders, memoization, bundle size, profiling patterns)
Inputs: code (required), filePath.
review_fileA
Analyze a React/TypeScript file for performance issues by reading it from disk
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools are clearly differentiated by input: one accepts a code snippet directly, the other reads a file from disk. While they share the same review purpose, the distinct input mechanisms prevent meaningful confusion.
Both tool names follow the consistent verb_noun pattern (review_code, review_file), making the naming predictable and easy to understand.
With only two tools, the server feels minimal for its intended scope. The count is borderline but acceptable for a focused performance-review utility, though it could benefit from additional entry points.
The tool surface covers two common input modes but lacks broader workflow support, such as analyzing a project directory, comparing branches, or generating reports. Agents may need to work around these missing capabilities.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for Mint — AI-powered QA that runs your app in a real browser on every PR.
Related MCP Servers
- AlicenseAqualityDmaintenanceA comprehensive MCP server for frontend analysis. It provides Google Lighthouse audits, code quality checks, SEO metadata verification, accessibility analysis, and bundle optimization for React and Next.js projects.83MIT
- AlicenseAqualityCmaintenanceMCP server that gives AI coding agents hands, eyes and a mechanic's ear for React Native development.914 npm2MIT
- AlicenseAqualityCmaintenanceAn MCP server that captures and analyzes function-level profiling data from NetEase Minecraft Bedrock Edition mods via the native Tracy profiler, enabling AI to identify performance hotspots and verify optimizations.622MIT
- AlicenseAqualityDmaintenanceEnables AI agents to profile React applications, detect performance bottlenecks, and automatically apply fixes like memoization and code hoisting.1371 npm2MIT