MCP server
by rainmen-xia
Automate Chrome for web scraping, testing, and content retrieval using browser automation studio, with session persisten
Connects to Chrome's debugging protocol to automate browsers for web scraping, testing, and automation tasks. Maintains persistent sessions and login states across operations.
Chrome Debug Protocol is a community-built MCP server published by rainmen-xia that provides AI assistants with tools and capabilities via the Model Context Protocol. Automate Chrome for web scraping, testing, and content retrieval using browser automation studio, with session persisten It is categorized under browser automation, search web. This server exposes 10 tools that AI clients can invoke during conversations and coding sessions.
You can install Chrome Debug Protocol in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Chrome Debug Protocol is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Fetch and extract information from websites automatically
Example
Research competitor pricing, scrape product reviews, monitor news mentions
Automate 5-10 hours/week of manual web research
Track website changes, new content, price updates
Example
Monitor competitor blog for new posts, track stock availability, watch for pricing changes
Stay informed without manual checking, never miss important updates
Extract structured data from multiple websites
Example
Compile product listings from 10 e-commerce sites, aggregate job postings, collect real estate data
Build datasets 100x faster than manual copying
Share your MCP server with the developer community
Chrome Debug Protocol reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
According to our notes, Chrome Debug Protocol benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Chrome Debug Protocol reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Chrome Debug Protocol is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
We wired Chrome Debug Protocol into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
We evaluated Chrome Debug Protocol against two servers with overlapping tools; this profile had the clearer scope statement.
I recommend Chrome Debug Protocol for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
I recommend Chrome Debug Protocol for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Chrome Debug Protocol is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Strong directory entry: Chrome Debug Protocol surfaces stars and publisher context so we could sanity-check maintenance before adopting.
showing 1-10 of 51
A Model Context Protocol (MCP) server for Chrome browser automation via debugging protocol, specifically designed to connect to Chrome debugging ports and enable browser automation with persistent login sessions.
🔧 Zero-Dependency Deployment
📦 Container-Friendly
⚡ Two-Step Launch
# Launch with just two commands
# 1. Start Chrome in debug mode
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
# 2. Run MCP server
npx chrome-debug-mcp
🛡️ Enterprise-Grade Security
Launch with npx - no installation required:
# 1. Start Chrome in debug mode
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
# 2. Run MCP server directly
npx chrome-debug-mcp
git clone https://github.com/rainmenxia/chrome-debug-mcp.git
cd chrome-debug-mcp
npm install
npm run build
npm start
npx chrome-debug-mcp, no complex installation requiredThe server needs to connect to a Chrome instance with debugging port enabled:
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
# Windows
chrome.exe --remote-debugging-port=9222 --user-data-dir=c: emp\chrome-debug
# Linux
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
Important Notes:
--user-data-dir parameter points to a temporary directory, ensuring Chrome starts in debug modeAdd the following configuration to your MCP client:
{
"mcpServers": {
"browser-automation": {
"command": "npx",
"args": ["chrome-debug-mcp"]
}
}
}
That's it! No installation, no downloads, no complex path configuration needed.
💡 Alternative Installation Methods:
Global Installation:
npm install -g chrome-debug-mcp{ "mcpServers": { "browser-automation": { "command": "chrome-debug-mcp" } } }Local Project Installation:
npm install chrome-debug-mcp{ "mcpServers": { "browser-automation": { "command": "npx", "args": ["chrome-debug-mcp"] } } }
Connect to Chrome debug port and initialize browser session.
{
"name": "launch_browser",
"arguments": {
"remote_host": "http://localhost:9222" // optional
}
}
Navigate to specified URL with intelligent tab management.
{
"name": "navigate_to",
"arguments": {
"url": "https://example.com"
}
}
Click at specified coordinates.
{
"name": "click",
"arguments": {
"coordinate": "100,200"
}
}
Input text content.
{
"name": "type_text",
"arguments": {
"text": "Hello World"
}
}
Scroll the page.
{
"name": "scroll_down",
"arguments": {}
}
Hover mouse at specified position.
{
"name": "hover",
"arguments": {
"coordinate": "100,200"
}
}
Resize browser window.
{
"name": "resize_browser",
"arguments": {
"size": "1200,800"
}
}
Get current page HTML content.
{
"name": "get_page_content",
"arguments": {}
}
Close browser connection.
{
"name": "close_browser",
"arguments": {}
}
# Manually log into Twitter/Weibo in Chrome first
# Then use MCP tools for automation
launch_browser -> navigate_to -> click -> type_text
# Keep logged-in state for Taobao/JD
# Automate product search, price monitoring, etc.
launch_browser -> navigate_to -> type_text -> click
# Scrape data from login-required websites
# Bypass login verification, direct operations
launch_browser -> navigate_to -> get_page_content
example.com) reuse existing tabsIf Chrome runs in a Docker container:
# Start Chrome in Docker
docker run -d --name chrome-debug \
-p 9222:9222 \
--shm-size=2gb \
zenika/alpine-chrome \
--no-sandbox \
--disable-dev-shm-usage \
--remote-debugging-address=0.0.0.0 \
--remote-debugging-port=9222
The server will automatically discover Chrome instances in Docker environments.
--remote-debugging-port=9222lsof -i :9222MCP Client ←→ stdio ←→ MCP Server ←→ Chrome Debug Port ←→ Chrome Browser
# Watch mode compilation
npm run dev
# View MCP communication logs
DEBUG=mcp* npm start
# Build project
npm run build
# Publish to npm
npm publish
This project's design philosophy and core concepts were inspired by the RooCode project. RooCode is an excellent browser automation MCP server implementation that provided valuable technical references and design insights.
Special thanks to the RooCode team for their contributions in the following areas:
Building upon RooCode's foundation, this project further focuses on browser automation with persistent login sessions, achieving more practical automation capabilities by connecting to existing Chrome debug ports to maintain user sessions.
MIT License
Core Advantage: The biggest feature of this MCP server is its ability to connect to existing Chrome instances and maintain login sessions, making it ideal for automation scenarios requiring user authentication. Through Chrome debug ports, it can take over user-logged browser sessions, achieving true "session-persistent" browser automation.
Interact with services that don't offer APIs
Example
Check form submissions, validate website functionality, test user flows
Automate interactions with any website, even without API
Prerequisites
Time Estimate
20-40 minutes including configuration and testing
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
MCP server handles HTTP requests, HTML parsing, JavaScript rendering (if headless browser), and returns structured data to Claude.
Protocols
Compatibility
✓ Use when
Use for research automation, content monitoring, data aggregation from multiple sources, and when official APIs don't exist. Best for read-only information gathering.
✗ Avoid when
Avoid for sites with APIs (use API instead), sites that explicitly forbid scraping, when data is copyrighted, or for login-required content without proper authorization.