HubLensAutomationChromeDevTools/chrome-devtools-mcp
ChromeDevTools

chrome-devtools-mcp

AIMCPChrome DevToolsPuppeteerAutomationBrowser Debugging
View on GitHub
83

// summary

Chrome DevTools for Agents is an MCP server that enables AI coding assistants to control and inspect live Chrome browser instances. It provides a comprehensive suite of tools for browser automation, performance analysis, and in-depth debugging. The project supports seamless integration with various AI coding platforms to enhance developer workflows through reliable browser interaction.

// technical analysis

Chrome DevTools for Agents (chrome-devtools-mcp) is a Model-Context-Protocol server designed to bridge the gap between AI coding assistants and the Chrome browser. By leveraging Puppeteer and the Chrome DevTools protocol, it enables agents to perform complex browser automation, performance analysis, and debugging tasks directly within their workflow. This architecture allows developers to treat the browser as an interactive tool, providing AI models with the capability to inspect network traffic, capture screenshots, and execute scripts to solve real-world web development challenges.

// key highlights

01
Provides comprehensive performance insights by recording traces and extracting actionable data using Chrome DevTools.
02
Enables advanced browser debugging, including network request analysis and console message inspection with source-mapped stack traces.
03
Facilitates reliable browser automation via Puppeteer, which includes automatic waiting for action results.
04
Supports a wide range of input and navigation tools, allowing agents to interact with web elements like forms, buttons, and drag-and-drop interfaces.
05
Offers flexible configuration options, such as headless mode and the ability to connect to existing browser instances for specialized workflows.
06
Integrates seamlessly with various AI coding assistants and IDEs through the standardized Model Context Protocol.

// use cases

01
Automate browser actions and navigation using Puppeteer
02
Perform in-depth debugging by analyzing network requests and console messages
03
Generate performance insights and traces for web applications

// getting started

To begin, ensure you have Node.js v20.19 or newer and a current version of Chrome installed. Add the server to your MCP client configuration by specifying the command 'npx' with the argument 'chrome-devtools-mcp@latest'. Once configured, you can test the integration by prompting your AI assistant to perform a task, such as checking the performance of a specific website.