react-perf-mcp
Click on "Install 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-mcpreview 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: cctx-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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cma0232/react-perf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server