Chrome Debug MCP Playwright
An MCP server to allow you to debug webpages using LLMs
Overview
Chrome Debug MCP Server is a Model Context Protocol (MCP) server designed to control Chrome with debugging capabilities, allowing users to debug webpages using large language models (LLMs).
To use the server, clone the repository, install dependencies, and configure it in the Roo Code extension. You can then launch Chrome with custom profiles, inject userscripts, and interact with web pages programmatically.
- Launch Chrome with custom configurations and user profiles. - Automate page interactions like clicking, typing, and taking screenshots. - Remote debugging via Chrome DevTools Protocol (CDP). - Userscript injection with Greasemonkey-style API support. - Extension integration and management.
- Debugging web applications using LLMs.
- Automating repetitive tasks in web browsers.
- Testing and monitoring web pages in real-time.
Add to your AI client
Use these steps to connect Chrome Debug MCP Playwright in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"chrome-debug-mcp-robertheadley": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-chrome-debug-mcp-robertheadley"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"chrome-debug-mcp-robertheadley": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-chrome-debug-mcp-robertheadley"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"chrome-debug-mcp-robertheadley": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-chrome-debug-mcp-robertheadley"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"chrome-debug-mcp-robertheadley": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-chrome-debug-mcp-robertheadley"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"chrome-debug-mcp-robertheadley": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-chrome-debug-mcp-robertheadley"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"chrome-debug-mcp-robertheadley": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-chrome-debug-mcp-robertheadley"
]
}
}
}FAQ
Can I use this server with any version of Chrome?
Yes, but ensure you have the compatible version of Node.js and Chrome installed.
Is there support for custom userscripts?
Yes, you can inject userscripts into web pages using the provided API.
How do I report issues or contribute?
You can report issues and contribute by following the guidelines in the repository.