Home / MCP / Chrome DevTools MCP Server
Exposes Chrome DevTools via MCP to enable automated debugging, tracing, and performance analysis.
Configuration
View docs{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": [
"-y",
"chrome-devtools-mcp@latest"
]
}
}
}You can control and inspect a live Chrome browser from your MCP client using the Chrome DevTools MCP server. It gives your AI coding assistant direct access to DevTools for reliable automation, debugging, performance tracing, and in-browser analysis while keeping your workflows repeatable and scriptable.
Use the Chrome DevTools MCP server to connect your MCP client to a running or freshly launched Chrome instance. Your agent can automate browser actions, collect performance traces, analyze network activity, take screenshots, and read console messages. Start with a simple prompt that asks for a performance check or a quick UI interaction, and observe the browser window opening (if not running headlessly) and a trace being recorded. If you connect to a running Chrome instance, you can preserve session state between manual and automated testing and avoid signing into websites that would block automated sessions.
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}You can connect to an already-running Chrome instance by enabling remote debugging and providing the browser URL or WebSocket endpoint to the MCP server. This lets you share state between manual testing and agent-driven automation and can be necessary when you are operating inside a sandbox.
Enter a prompt to check the performance of a website and start a trace. For example: Check the performance of https://developers.chrome.com. The MCP client should open the browser and record a performance trace.
The MCP server exposes the contents of the browser and DevTools to MCP clients. Avoid sharing sensitive or personal information you do not want to expose to those clients.
If you encounter issues, review the troubleshooting guide for common problems with connecting to a running Chrome instance, remote debugging setup, and permission prompts. Ensure the browser is started with the correct debugging flags when you rely on manual connections.
Automatic connection (available in newer Chrome channels) lets the MCP server connect to a running Chrome instance, sharing state with manual testing. Manual connection uses a remote debugging port to attach to a browser already started outside the MCP server.
1) Install the Chrome DevTools MCP server in your MCP client. 2) Start Chrome with remote debugging enabled or connect to an existing instance. 3) Run a simple check prompt to confirm the setup and capture a trace.
Click interactions to simulate user input on elements.
Drag actions to move or reveal UI elements.
Fill individual fields with specified values.
Fill out an entire form with provided values.
Handle modal or alert dialogs during automation.
Hover the cursor over elements to trigger hover states.
Press a keyboard key or key combination.
Upload a file to an input element.
Close the current tab or page.
List all open pages in the browser.
Navigate to a specified URL within the page.
Open a new browser tab or window.
Switch focus to a specific page by index or ID.
Wait for a condition or network/request/event to occur.
Emulate device metrics, user agent, or other environment aspects.
Change the viewport size for rendering tests.
Analyze performance data to extract actionable insights.
Start recording a performance trace.
Stop and retrieve the recorded performance trace.
Fetch a specific network request by ID.
List all network requests captured during a session.
Evaluate a JavaScript snippet in the page context.
Retrieve messages from the browser console.
List all console messages captured during a session.
Capture a screenshot of the current page.
Capture a DOM snapshot or page state.