Chrome Debug MCP Server
by robertheadley
A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support. It allows for browser automation with features like tab management, page interaction, and debugging.
Last updated: N/A
What is Chrome Debug MCP Server?
Chrome Debug MCP Server is an MCP server that provides a suite of tools for automating and debugging Chrome browser instances. It supports features such as launching Chrome with custom configurations, managing tabs, interacting with page elements, injecting userscripts, and integrating extensions.
How to use Chrome Debug MCP Server?
To use the Chrome Debug MCP Server, you need to install Node.js, Chrome, Visual Studio Code, and the Roo Code Extension. After cloning the repository and installing dependencies, configure the server in Roo Code's cline_mcp_settings.json
. Then, use the provided JavaScript code snippets with use_mcp_tool
to execute various commands such as launching Chrome, injecting userscripts, evaluating JavaScript, and interacting with web pages.
Key features of Chrome Debug MCP Server
Chrome Control (launch, profile management, extension support)
Page Automation (click, type, navigate, screenshot)
Tab Management (list, open, close, switch tabs)
Debugging Capabilities (remote debugging, console log capture)
Userscript Support (Greasemonkey API)
Extension Integration (load unpacked extensions)
Use cases of Chrome Debug MCP Server
Automated web testing
Web scraping and data extraction
Userscript injection for custom web enhancements
Extension testing and management
Debugging web applications in a controlled environment
FAQ from Chrome Debug MCP Server
What is the Chrome Debug MCP Server?
What is the Chrome Debug MCP Server?
It's a server that allows you to control and automate Chrome browser instances using the Model Context Protocol (MCP).
What are the prerequisites for using this server?
What are the prerequisites for using this server?
You need Node.js, Chrome browser, Visual Studio Code, and the Roo Code Extension installed.
How do I install the server?
How do I install the server?
Clone the repository, install dependencies using npm install
, build the project with npm run build
, and configure it in Roo Code's cline_mcp_settings.json
.
Can I inject userscripts into web pages?
Can I inject userscripts into web pages?
Yes, the server supports userscript injection with Greasemonkey-style API support.
How do I launch Chrome with a custom profile?
How do I launch Chrome with a custom profile?
Use the launch_chrome
tool with the userDataDir
argument to specify the path to your Chrome profile.