leobrival/web-inspector-mcp
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.
š§ 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 monitoringstop_monitoring
- Stop monitoringget_console_logs
- Retrieve console errors/warnings/logsget_performance_metrics
- Get Core Web Vitals and performance datarun_accessibility_audit
- Run accessibility analysiscapture_network_logs
- Analyze network requestsget_dashboard_url
- Get real-time dashboard URLhealth_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
Feature | browser-tools-mcp | web-inspector-mcp |
---|---|---|
Installation | 3 separate components | 1 command |
Configuration | Manual setup required | Zero config |
Performance | Multiple processes | Single optimized process |
Background Mode | Not supported | Native Claude Code integration |
Dashboard | External tools | Built-in real-time dashboard |
Auto-start | Manual | Automatic with dev server |
Maintenance | Complex | Self-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
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
š License
MIT License - see file for details
š Acknowledgments
- Inspired by browser-tools-mcp
- Built for Claude Code integration
- Powered by Model Context Protocol
š Links
Made with ā¤ļø for the Claude Code community