npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-scan-mcp

v1.0.10

Published

AI-powered React performance monitoring with MCP integration

Readme

React Scan MCP CLI 🚀

AI-powered React performance monitoring with zero setup

Transform React performance analysis from complex tooling into natural language conversations with your AI assistant.

What is this?

React Scan MCP CLI is the easiest way to add AI-powered React performance monitoring to your development workflow. It bridges React Scan with AI assistants like Claude, Cursor, and Augment through the Model Context Protocol (MCP).

Before React Scan MCP:

  • Manual performance analysis with complex tools
  • Steep learning curve for React optimization
  • Time-consuming performance debugging

After React Scan MCP:

  • "How's my app's performance?" → Instant AI analysis
  • "Find slow components" → Intelligent bottleneck detection
  • "Optimize my React app" → Step-by-step AI guidance

🚀 Quick Start

1. Try the Demo (No Installation)

npx react-scan-mcp demo --simple

2. Full Setup (One Command)

npx react-scan-mcp install

3. Configure Your AI Client

# For Cursor IDE
npx react-scan-mcp config cursor

# For Claude Desktop  
npx react-scan-mcp config claude

# For Augment
npx react-scan-mcp config augment

4. Start Analyzing

# Start the MCP server
npx react-scan-mcp start

# Or scan directly
npx react-scan-mcp scan http://localhost:3000

🎯 AI Integration Examples

Once configured, ask your AI assistant:

"Analyze my React app's performance"
→ AI scans your app and provides detailed component analysis

"Find components with slow render times"  
→ AI identifies bottlenecks and suggests optimizations

"Generate a performance optimization report"
→ AI creates comprehensive recommendations

"How can I optimize the UserProfile component?"
→ AI provides specific React optimization strategies

📋 Commands

| Command | Description | |---------|-------------| | npx react-scan-mcp install | One-time setup of Python environment and dependencies | | npx react-scan-mcp start | Start the MCP server for AI integration | | npx react-scan-mcp demo | Run interactive demo with sample data | | npx react-scan-mcp config <client> | Generate configuration for AI clients | | npx react-scan-mcp scan <url> | Perform immediate performance analysis | | npx react-scan-mcp status | Check installation and health status | | npx react-scan-mcp --help | Show all available commands |

🔧 Configuration

Cursor IDE

npx react-scan-mcp config cursor

Automatically creates .cursor/mcp.json with proper configuration.

Claude Desktop

npx react-scan-mcp config claude  

Configures Claude Desktop for React performance analysis.

Augment

npx react-scan-mcp config augment

Generates configuration for Augment MCP integration.

🎮 Demo Mode

Try React Scan MCP without any setup:

# Simple demo (no dependencies)
npx react-scan-mcp demo --simple

# Full demo (requires installation)
npx react-scan-mcp demo

Quick Scan

Analyze any React app immediately:

# Scan local development server
npx react-scan-mcp scan http://localhost:3000

# Scan production site
npx react-scan-mcp scan https://react.dev

# Custom duration and output
npx react-scan-mcp scan http://localhost:3000 --duration 60 --output markdown

🛠️ Requirements

  • Node.js 16+ (for npx)
  • Python 3.10+ (auto-detected and configured)
  • React Scan CLI (auto-installed)

The CLI handles all dependency management automatically!

🔍 Troubleshooting

Installation Issues

# Check status
npx react-scan-mcp status

# Force reinstall
npx react-scan-mcp install --force

# Check Python version
python3 --version  # Should be 3.10+

AI Client Not Connecting

# Regenerate configuration
npx react-scan-mcp config cursor --auto-install

# Verify server starts
npx react-scan-mcp start --log-level debug

React Scan CLI Issues

# Install manually if auto-install fails
npm install -g react-scan

# Verify installation
react-scan --version

🎯 What You Get

🤖 AI Tools

  • analyze_component_performance - Deep component analysis
  • detect_performance_bottlenecks - Automatic issue detection
  • scan_website_performance - Full application scanning
  • generate_performance_report - Comprehensive reporting

📊 AI Resources

  • react-scan://performance/current - Real-time metrics
  • react-scan://performance/history - Historical data
  • react-scan://components/problematic - Issue tracking

🔧 Performance Insights

  • Component render frequency and timing
  • Bottleneck identification and severity
  • Optimization recommendations
  • Historical performance tracking

🌟 Why React Scan MCP CLI?

  1. Zero Learning Curve - Natural language performance analysis
  2. One Command Setup - npx react-scan-mcp install and you're done
  3. AI-Native - Built for AI-assisted development workflows
  4. Cross-Platform - Works on Windows, Mac, and Linux
  5. Auto-Configuration - Detects and configures AI clients automatically

📚 Learn More

🤝 Contributing

We welcome contributions! See our Contributing Guide for details.

📄 License

MIT License - see LICENSE for details.


Ready to revolutionize your React performance workflow?

npx react-scan-mcp install

Transform complex performance analysis into simple AI conversations! 🚀