Make your AI tools 10x more aware and capable of interacting with your browser
English | ็ฎไฝไธญๆ
WebAI-MCP is a comprehensive browser automation and monitoring solution that enables AI applications to capture and analyze browser data through a Chrome extension. It provides 20+ tools for screenshots, console logs, network monitoring, storage access, audits, and cross-platform auto-paste functionality.
- ๐ธ Screenshot Capture - High-quality screenshots with auto-paste to any IDE
- ๐ Element Inspection - CSS selector-based inspection with computed styles
- ๐ Console & Network Monitoring - Real-time browser logs and network requests
- ๐ช Storage Access - Cookies, localStorage, and sessionStorage data
- ๐งช Comprehensive Audits - Accessibility, performance, SEO, and best practices
- ๐ฏ Cross-Platform Auto-Paste - Windows, macOS, Linux support for all IDEs
- ๐ Network & Proxy Management - Complete network configuration tools
- ๐ง Automated Diagnostics - System validation and setup workflows
- ๐ก๏ธ Enhanced Error Handling - Robust error recovery and reporting
# 1. Install MCP Server (for your IDE)
npx @cpjet64/webai-mcp@latest
# 2. Install WebAI Server (run in separate terminal)
npx @cpjet64/webai-server@latest
- Chrome Extension: Download from Latest Release
- MCP Server:
npx @cpjet64/webai-mcp@latest - WebAI Server:
npx @cpjet64/webai-server@latest
-
Install Chrome Extension:
- Download the
.zipfile from releases - Extract and load in Chrome โ Extensions โ Developer mode โ Load unpacked
- Download the
-
Configure Your MCP Client:
For Augment:
- Open Augment settings
- Go to MCP Servers configuration
- Add new server:
- Name:
webai - Command:
npx -y @cpjet64/webai-mcp@latest
- Name:
- Save configuration
For Cursor IDE:
{ "mcp": { "servers": { "webai": { "command": "npx", "args": ["@cpjet64/webai-mcp@latest"] } } } }For Claude Desktop:
{ "mcpServers": { "webai": { "command": "npx", "args": ["@cpjet64/webai-mcp@latest"] } } }For Cline/Zed/Other MCP Clients:
- Command:
npx @cpjet64/webai-mcp@latest - Check your client's documentation for specific configuration format
-
Start WebAI Server:
- Open a new terminal and run:
npx @cpjet64/webai-server@latest
- Open a new terminal and run:
-
Open DevTools:
- Open Chrome DevTools โ BrowserToolsMCP panel
- Ensure connection is established
-
Test the Setup:
- Basic test: "Take a screenshot"
- Advanced test: "Run an accessibility audit"
- System test: "Run system diagnostics"
- Network test: "Configure proxy settings"
Want to try the latest features before they're released?
# Install development version (may be unstable)
npx @cpjet64/webai-mcp@dev
npx @cpjet64/webai-server@dev
Note: Development versions include the latest features but may be unstable. Use @latest for production.
Two Servers Required:
@cpjet64/webai-mcpโ MCP server for your IDE@cpjet64/webai-serverโ Local middleware server
Troubleshooting:
- Close ALL Chrome windows and restart if having issues
- Restart the webai-server
- Ensure only ONE DevTools panel is open
After those three steps, open up your chrome dev tools and then the WebAI-MCP panel.
If you're still having issues try these steps:
- Quit / close down your browser. Not just the window but all of Chrome itself.
- Restart the local node server (webai-server)
- Make sure you only have ONE instance of chrome dev tools panel open
After that, it should work but if it doesn't let me know and I can share some more steps to gather logs/info about the issue!
WebAI-MCP provides 20+ MCP tools for comprehensive browser automation:
- Console Logs - Capture and analyze browser console output
- Network Requests - Monitor XHR/fetch requests and responses
- Screenshots - Take high-quality screenshots with auto-paste
- Selected Elements - Inspect currently selected DOM elements
- Cookies - Read and analyze browser cookies
- localStorage - Access localStorage data
- sessionStorage - Access sessionStorage data
- CSS Selector Inspection - Inspect elements using CSS selectors
- Computed Styles - Get computed CSS styles for elements
- Chrome Debugging API - Deep element analysis
- Accessibility Audit - WCAG compliance checking
- Performance Audit - Page speed and optimization analysis
- SEO Audit - Search engine optimization analysis
- Best Practices Audit - Web development best practices
- NextJS Audit - NextJS-specific optimization checks
- Audit Mode - Run all audits in sequence
- Debugger Mode - Run all debugging tools in sequence
- System Diagnostics - Comprehensive system and environment validation
- Automated Setup - Intelligent setup and configuration workflows
- Installation Validation - Verify installation integrity and dependencies
- Platform Detection - Cross-platform compatibility checking
- Proxy Configuration - Complete proxy setup and management
- Network Diagnostics - Network connectivity and performance testing
- Proxy Auto-detection - Automatic system proxy discovery
- Network Recommendations - Environment-specific network optimization
- Intelligent Error Recovery - Automatic error detection and recovery
- Detailed Error Reporting - Comprehensive error context and solutions
- Graceful Degradation - Fallback mechanisms for failed operations
- Windows Auto-paste - PowerShell-based automation for all IDEs
- macOS Auto-paste - AppleScript automation with element detection
- Linux Auto-paste - xdotool automation for window management
- Multi-IDE Support - Cursor, VS Code, Zed, Claude Desktop, Custom apps
- Configurable Target - User-selectable IDE from extension panel
- Windows Optimization - Windows-specific path handling and features
- macOS Integration - Native macOS compatibility and optimization
- Linux Support - Full Linux distribution compatibility
- Cross-platform Validation - Unified experience across all platforms
- Wipe Logs - Clear stored logs and data
- Process Management - Intelligent process monitoring and cleanup
- Configuration Management - Centralized settings and preferences
| Audit Type | Description |
|---|---|
| Accessibility | WCAG-compliant checks for color contrast, missing alt text, keyboard navigation traps, ARIA attributes, and more. |
| Performance | Lighthouse-driven analysis of render-blocking resources, excessive DOM size, unoptimized images, and other factors affecting page speed. |
| SEO | Evaluates on-page SEO factors (like metadata, headings, and link structure) and suggests improvements for better search visibility. |
| Best Practices | Checks for general best practices in web development. |
| NextJS Audit | Injects a prompt used to perform a NextJS audit. |
| Audit Mode | Runs all auditing tools in a sequence. |
| Debugger Mode | Runs all debugging tools in a sequence. |
Ensure you have:
- An active tab in your browser
- The BrowserTools extension enabled
Headless Browser Automation: Puppeteer automates a headless Chrome instance to load the page and collect audit data, ensuring accurate results even for SPAs or content loaded via JavaScript.
The headless browser instance remains active for 60 seconds after the last audit call to efficiently handle consecutive audit requests.
Structured Results: Each audit returns results in a structured JSON format, including overall scores and detailed issue lists. This makes it easy for MCP-compatible clients to interpret the findings and present actionable insights.
The MCP server provides tools to run audits on the current page. Here are example queries you can use to trigger them:
Ensures the page meets accessibility standards like WCAG.
Example Queries:
- "Are there any accessibility issues on this page?"
- "Run an accessibility audit."
- "Check if this page meets WCAG standards."
Identifies performance bottlenecks and loading issues.
Example Queries:
- "Why is this page loading so slowly?"
- "Check the performance of this page."
- "Run a performance audit."
Evaluates how well the page is optimized for search engines.
Example Queries:
- "How can I improve SEO for this page?"
- "Run an SEO audit."
- "Check SEO on this page."
Checks for general best practices in web development.
Example Queries:
- "Run a best practices audit."
- "Check best practices on this page."
- "Are there any best practices issues on this page?"
Runs all audits in a particular sequence. Will run a NextJS audit if the framework is detected.
Example Queries:
- "Run audit mode."
- "Enter audit mode."
Checks for best practices and SEO improvements for NextJS applications
Example Queries:
- "Run a NextJS audit."
- "Run a NextJS audit, I'm using app router."
- "Run a NextJS audit, I'm using page router."
Runs all debugging tools in a particular sequence
Example Queries:
- "Enter debugger mode."
There are three core components all used to capture and analyze browser data:
- Chrome Extension: A browser extension that captures screenshots, console logs, network activity, DOM elements, and browser storage (cookies, localStorage, sessionStorage).
- Node Server: An intermediary server that facilitates communication between the Chrome extension and any instance of an MCP server.
- MCP Server: A Model Context Protocol server that provides standardized tools for AI clients to interact with the browser.
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ MCP Client โ โโโบ โ MCP Server โ โโโบ โ Node Server โ โโโบ โ Chrome โ
โ (e.g. โ โโโ โ (Protocol โ โโโ โ (Middleware) โ โโโ โ Extension โ
โ Cursor) โ โ Handler) โ โ โ โ โ
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
Model Context Protocol (MCP) is a capability supported by Anthropic AI models that allow you to create custom tools for any compatible client. MCP clients like Claude Desktop, Cursor, Cline or Zed can run an MCP server which "teaches" these clients about a new tool that they can use.
These tools can call out to external APIs but in our case, all logs are stored locally on your machine and NEVER sent out to any third-party service or API. WebAI-MCP runs a local instance of a NodeJS API server which communicates with the WebAI-MCP Chrome Extension.
All consumers of the WebAI-MCP Server interface with the same NodeJS API and Chrome extension.
- Monitors XHR requests/responses and console logs
- Tracks selected DOM elements
- Sends all logs and current element to the WebAI Connector
- Connects to Websocket server to capture/send screenshots
- Retrieves cookies, localStorage, and sessionStorage data
- Allows user to configure token/truncation limits + screenshot folder path
- Acts as middleware between the Chrome extension and MCP server
- Receives logs and currently selected element from Chrome extension
- Processes requests from MCP server to capture logs, screenshot or current element
- Retrieves browser storage data (cookies, localStorage, sessionStorage)
- Sends Websocket command to the Chrome extension for capturing a screenshot
- Intelligently truncates strings and # of duplicate objects in logs to avoid token limits
- Removes cookies and sensitive headers to avoid sending to LLMs in MCP clients
- Implements the Model Context Protocol
- Provides standardized tools for AI clients
- Compatible with various MCP clients (Cursor, Cline, Zed, Claude Desktop, etc.)
Once installed, you can use natural language commands with your MCP client:
- "What cookies are set on this page?"
- "Show me the localStorage data"
- "What's in sessionStorage?"
- "Inspect all buttons on this page"
- "Get the computed styles for .header elements"
- "Find all elements with class 'nav-item'"
- "Run an accessibility audit"
- "Check the performance of this page"
- "Analyze SEO issues"
- "Enter audit mode"
- "Take a screenshot"
- "Show me console errors"
- "What network requests were made?"
- "Enter debugger mode"
- "Configure proxy settings"
- "Test network connectivity"
- "Auto-detect system proxy"
- "Optimize network settings for this environment"
- "Run system diagnostics"
- "Validate installation"
- "Check platform compatibility"
- "Setup automated configuration"
- "Take a screenshot and paste it to VS Code" (configure target IDE in extension)
- "Screenshot this page" (auto-pastes to configured IDE)
- Windows: PowerShell automation with process detection
- macOS: AppleScript with element detection and fallbacks
- Linux: xdotool automation (requires
xclipandxdotool)
- โ Augment - Full integration and testing
- โ Cursor IDE - Primary integration
- โ Claude Desktop - Full support
- โ Cline - Compatible
- โ Zed - Compatible
- โ Any MCP-compatible client
- โ Windows - Full support with path conversion
- โ macOS - Native support
- โ Linux - Native support
- โ Node.js 18+ - Recommended
- โ Node.js 20 - Fully tested
- โ Node.js 22 - Latest support
- โ Chrome - Primary support
- โ Chromium - Compatible
- โ Edge - Compatible (Chromium-based)
- Setup Guide: Release Setup Documentation
- Chinese Documentation: ็ฎไฝไธญๆๆๆกฃ
- Original Docs: BrowserTools MCP Docs
If you're currently using the original browser-tools-mcp or AgentDeskAI/browser-tools-mcp, here's how to migrate to WebAI-MCP:
1. Update MCP Server Package:
# Remove old package
npm uninstall @cpjet64/browser-tools-mcp
# OR if using original
npm uninstall @munawwar-forks/browser-tools-mcp
# Install new package
npm install @cpjet64/webai-mcp
2. Update WebAI Server Package:
# Remove old package
npm uninstall @cpjet64/browser-tools-server
# OR if using original
npm uninstall @munawwar-forks/browser-tools-server
# Install new package
npm install @cpjet64/webai-server
Update your MCP client configuration:
Before (Original):
{
"mcpServers": {
"browser-tools": {
"command": "npx",
"args": ["@munawwar-forks/browser-tools-mcp"]
}
}
}
After (WebAI-MCP):
{
"mcpServers": {
"webai": {
"command": "npx",
"args": ["@cpjet64/webai-mcp"]
}
}
}
Option 1: Download from Releases (Recommended)
- Download the latest
.zipfrom Releases - Remove the old extension from Chrome
- Load the new extension using "Load unpacked"
Option 2: Build from Source
git clone https://github.com/cpjet64/webai-mcp.git
cd webai-mcp/chrome-extension
# Load the folder in Chrome Extensions โ Developer mode โ Load unpacked
- ๐ฏ Cross-Platform Auto-Paste - Windows, macOS, Linux support
- ๐ง Automated Diagnostics - System validation and setup workflows
- ๐ Network & Proxy Management - Complete network configuration tools
- ๐ก๏ธ Enhanced Error Handling - Better error recovery and reporting
- ๐ช Storage Access Tools - Cookies, localStorage, sessionStorage
- ๐งช Advanced Audits - Accessibility, performance, SEO analysis
After migration, test that everything works:
# Start the new WebAI server
npx @cpjet64/webai-server
# Test in your MCP client
"Take a screenshot"
"Run system diagnostics"
"Configure proxy settings"
- Backward Compatible - All existing functionality preserved
- Same API - No changes to MCP tool interfaces
- Enhanced Features - Additional tools and capabilities
- Better Stability - Improved error handling and cross-platform support
WebAI-MCP is actively maintained and welcomes contributions.
- Open an issue for bugs or feature requests
- Check existing issues before creating new ones
- Provide detailed reproduction steps and environment information
- Fork the repository and create feature branches
- Follow existing code style and patterns
- Add tests for new functionality
- Update documentation as needed
MIT License - see LICENSE file for details.
- Original Project: AgentDeskAI/browser-tools-mcp
- Community Contributors: All contributors who have helped improve this project
- MCP Protocol: Anthropic's Model Context Protocol
Made with โค๏ธ by cpjet64 | Independent Project | v1.4.1 | Fully Integrated