web-inspector-mcp

leobrival/web-inspector-mcp

3.2

If you are the rightful owner of web-inspector-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Web Inspector MCP is a unified server for web debugging and performance monitoring, integrating seamlessly with Claude Code's background commands.

Tools
8
Resources
0
Prompts
0

šŸ”§ Web Inspector MCP

Unified MCP server for web debugging and performance monitoring with background commands integration

Replace browser-tools-mcp with a single, powerful, and automated web inspection solution that integrates seamlessly with Claude Code's background commands.

✨ Features

  • šŸ”„ Continuous monitoring with Claude Code background commands
  • 🚫 Zero configuration - works out of the box
  • šŸ“Š Real-time dashboard with WebSocket updates
  • šŸŽÆ All browser-tools-mcp features in one package
  • šŸ”§ Auto-installation with interactive CLI
  • ⚔ Performance optimized - single process vs multiple components

šŸš€ Quick Start

One-command installation:

npx web-inspector-mcp --install

This will:

  • āœ… Create and configure Chrome extension
  • āœ… Add MCP server to your Claude Code config
  • āœ… Set up auto-start scripts in your project
  • āœ… Install all dependencies

Manual installation:

# Install globally
npm install -g web-inspector-mcp

# Or use npx (recommended)
npx web-inspector-mcp --help

šŸ“‹ Installation Options

# Full installation (recommended)
npx web-inspector-mcp --install

# Install without MCP configuration
npx web-inspector-mcp --install --no-mcp

# Install without Chrome extension
npx web-inspector-mcp --install --no-extension

# Install with auto-start scripts
npx web-inspector-mcp --install --auto-start

šŸŽÆ Usage

With Claude Code (Recommended)

Start monitoring in background mode:

# In your project directory
pnpm dev:monitored
# Or if auto-start was configured:
pnpm dev

Use Ctrl+b when Claude suggests monitoring commands for continuous background operation.

Standalone Usage

# Start MCP server
npx web-inspector-mcp

# Start background monitoring
npx web-inspector-mcp monitor

# Open dashboard
npx web-inspector-mcp dashboard

# Check status
npx web-inspector-mcp status

šŸ”§ MCP Tools Available

Core Monitoring Tools

  • start_monitoring - Start continuous web monitoring
  • stop_monitoring - Stop monitoring
  • get_console_logs - Retrieve console errors/warnings/logs
  • get_performance_metrics - Get Core Web Vitals and performance data
  • run_accessibility_audit - Run accessibility analysis
  • capture_network_logs - Analyze network requests
  • get_dashboard_url - Get real-time dashboard URL
  • health_check - System status and health

Example with Claude Code:

You: Start monitoring my development site
Claude: I'll start web monitoring for you.
[Uses start_monitoring tool with background mode]
šŸš€ Web monitoring started for: http://localhost:3000
šŸ“Š Dashboard: http://localhost:3002
šŸ’” Tip: This is running in background mode for continuous monitoring

šŸ“Š Dashboard

Access the real-time dashboard at: http://localhost:3002

Features:

  • šŸ“‹ Live console logs
  • ⚔ Performance metrics
  • ♿ Accessibility issues
  • 🌐 Network requests
  • šŸ“ˆ Trending analysis

API Endpoints:

  • /api/status - System status
  • /api/console - Console logs feed
  • /api/performance - Performance metrics
  • /api/accessibility - Accessibility audit results

šŸ”§ Configuration

Environment Variables

WEB_INSPECTOR_URL=http://localhost:3000          # Target URL to monitor
WEB_INSPECTOR_PORT=3001                          # MCP server port  
WEB_INSPECTOR_DASHBOARD_PORT=3002                # Dashboard port

MCP Configuration

After installation, your ~/.claude/mcp.json will include:

{
  "mcpServers": {
    "web-inspector": {
      "command": "npx",
      "args": ["web-inspector-mcp"],
      "env": {
        "WEB_INSPECTOR_PORT": "3001",
        "WEB_INSPECTOR_DASHBOARD_PORT": "3002"
      }
    }
  }
}

šŸ†š vs browser-tools-mcp

Featurebrowser-tools-mcpweb-inspector-mcp
Installation3 separate components1 command
ConfigurationManual setup requiredZero config
PerformanceMultiple processesSingle optimized process
Background ModeNot supportedNative Claude Code integration
DashboardExternal toolsBuilt-in real-time dashboard
Auto-startManualAutomatic with dev server
MaintenanceComplexSelf-healing

šŸ› Troubleshooting

Chrome Extension Not Working

# Reinstall extension
npx web-inspector-mcp --install --no-mcp

# Check extension in Chrome
# chrome://extensions/ → Enable "Developer mode" → Load unpacked extension
# Select: ~/.web-inspector-mcp/chrome-extension/

MCP Server Not Responding

# Check status
npx web-inspector-mcp status

# Restart monitoring
npx web-inspector-mcp monitor

# Check Claude Code MCP config
cat ~/.claude/mcp.json

Port Conflicts

# Use different ports
WEB_INSPECTOR_PORT=3005 WEB_INSPECTOR_DASHBOARD_PORT=3006 npx web-inspector-mcp

Background Process Management

# List running processes
ps aux | grep web-inspector

# Kill specific process
pkill -f web-inspector-mcp

# Or use Claude Code to manage background processes

šŸ”§ Development

Project Structure

web-inspector-mcp/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts              # Main MCP server
│   ā”œā”€ā”€ cli.ts                # Installation CLI
│   ā”œā”€ā”€ monitor.ts            # Web monitoring logic
│   ā”œā”€ā”€ background-monitor.ts # Background monitoring
│   ā”œā”€ā”€ dashboard/
│   │   └── server.ts         # Dashboard server
│   └── types/
│       └── index.ts          # TypeScript types
ā”œā”€ā”€ chrome-extension/         # Auto-generated Chrome extension
ā”œā”€ā”€ package.json
└── README.md

Local Development

# Clone repository
git clone https://github.com/yourusername/web-inspector-mcp.git
cd web-inspector-mcp

# Install dependencies
npm install

# Build
npm run build

# Development mode
npm run dev

# Test installation
npm run cli -- --install

šŸ“ Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

šŸ“„ License

MIT License - see file for details

šŸ™ Acknowledgments

šŸ”— Links


Made with ā¤ļø for the Claude Code community