Skip to main content

Chrome DevTools MCP: AI-Powered Browser Automation and Debugging

Discover Chrome DevTools MCP, the AI-driven way to control Chrome with natural language. Automate navigation, debugging, and testing instantly.
Oct 29, 2025  · 10 min read

Chrome DevTools MCP is an official Model Context Protocol server from the Chrome DevTools team that lets AI coding assistants control Chrome through natural language. Instead of writing scripts, you tell your AI assistant what you want (“navigate to this page and check for console errors” or “fill out this form and take a screenshot”), and it handles the technical details. 

The server gives you access to powerful browser automation and debugging tools. It’s built on Puppeteer, so it’s reliable and runs entirely on your machine. You don’t have to write a single line of Puppeteer code.

In this tutorial, you’ll learn how to use this MCP server with AI coding assistants like Claude, Cursor, and Cline. We’ll cover installation and configuration, then move into the core capabilities: browser automation, debugging, and inspection. 

Throughout the article, we’ll use Conduit (demo.realworld.io), a Medium-style blogging platform, to demonstrate real-world examples. If you’re new to Model Context Protocol, I recommend you check out this comprehensive MCP guide for a deep dive into how MCP connects AI models to external tools. You can also check out our Claude for Chrome tutorial and our guide to the best AI browsers

What is Chrome DevTools MCP?

Here’s how the architecture works under the hood.

Chrome DevTools MCP architecture diagram showing AI assistant controlling browser through MCP server with tool categories for automation, debugging, and performance testing

The server exposes 26 tools organized across 6 categories:

  • Input automation (7 tools): click, drag, fill, fill_form, handle_dialog, hover, upload_file
  • Navigation (7 tools): navigate_page, new_page, list_pages, select_page, close_page, navigate_page_history, wait_for
  • Debugging (4 tools): evaluate_script, list_console_messages, take_screenshot, take_snapshot
  • Network (2 tools): list_network_requests, get_network_request
  • Performance (3 tools): performance_start_trace, performance_stop_trace, performance_analyze_insight
  • Emulation (3 tools): emulate_cpu, emulate_network, resize_page

Browser automation becomes conversational. Instead of writing Puppeteer scripts and debugging CSS selectors, you describe what you want in natural language. The AI assistant figures out the technical details.

With these tools, your AI assistant can help you:

  • Build frontends iteratively by letting your agent take screenshots at each step
  • Test user flows end-to-end, such as signing up, navigating through features, and verifying that each step works
  • Debug issues by checking console errors and network requests without needing to open DevTools manually
  • Automate visual documentation by taking screenshots of different pages or app states
  • Extract data from web pages by running JavaScript directly in the page context

All of this is triggered through natural language commands rather than writing Puppeteer scripts.

Chrome DevTools MCP works with Claude Desktop, Cursor, Cline, and VSCode Copilot. Since it’s one MCP server among many, you can combine it with others ,  such as file system access, database tools, and APIs ,  to build workflows that span multiple tools.

Chrome DevTools MCP Installation and Setup

You’ll need a few things:

  • Node.js and npm installed on your machine
  • An MCP-compatible AI coding assistant (we’ll use Claude Code in this tutorial)
  • Chrome browser (Puppeteer handles this automatically, so you don’t need to configure anything)

Basic familiarity with browser DevTools helps, but it’s not required.

Installing Chrome DevTools MCP

Chrome DevTools MCP runs through your AI assistant’s MCP configuration. The setup varies slightly depending on which AI coding assistant you use. We’ll show you how to install it for Claude Code, but other editors like Cursor, Cline, and VSCode Copilot have similar approaches.

For Claude Code, run this command in your terminal:

claude mcp add chrome-devtools npx chrome-devtools-mcp@latest

This command registers the Chrome DevTools MCP server with Claude Code. The server runs via npx, which downloads and executes the package without requiring a permanent installation. The @latest ensures you get the current version.

After running the command, restart Claude Code to load the new server.

If you’re using a different AI coding assistant

Other MCP clients have similar installation methods ;  some use commands, others use configuration files, or one-click install buttons. Check the Chrome DevTools MCP GitHub page for specific instructions for Cursor, Cline, Gemini CLI, and other supported clients.

Testing your setup

Let’s verify everything works with a simple command:

Navigate to demo.realworld.io and take a screenshot

You should see:

  • Chrome launches (you’ll see the browser window unless you configured headless mode)
  • The Conduit homepage loads
  • Your AI assistant captures and displays a screenshot

If something goes wrong, check these common issues:

  • Node.js version: Chrome DevTools MCP requires Node.js v20.19 or newer
  • npm permissions: Make sure npm can install packages
  • Restart required: Your AI assistant needs to restart after configuration changes
  • Config file location: Verify you edited the correct MCP settings file for your assistant

Browser Automation Basics

Chrome DevTools MCP gives you six core tools for interacting with web pages. Use navigate_page to load URLs, click to interact with elements, fill and fill_form to enter text, hover to trigger hover effects, and take_screenshot to capture what you see. These tools cover the majority of browser automation tasks you'll encounter.

Let’s load a page. Tell your AI assistant:

Navigate to demo.realworld.io

The AI uses the navigate_page tool, Chrome opens, and the Conduit homepage loads. You'll see the browser window unless you configured headless mode.

Conduit homepage loaded in Chrome browser showing navigation bar with Home, Sign in, and Sign up links, banner with 'conduit' heading and tagline, and main content area with article tabs and popular tags sidebar

To document what you see, just ask:

Take a screenshot of the homepage

The AI captures the current page with take_screenshot and shows you the result. This is useful for visual documentation or verifying that a page looks correct.

Element interaction

You can interact with any element on the page without writing CSS selectors or inspecting element IDs. Just describe what you want:

Click the Sign in link

The AI figures out which element you’re talking about and clicks it using the click tool. The sign-in page loads.

Conduit sign-in page displaying centered form with 'Sign in' heading, link to sign up page, email input field, password input field, and green 'Sign in' button

You can hover over elements, too:

Hover over the Sign up link

The AI uses the hover tool. If there's a tooltip or dropdown, it appears.

Form filling

Forms are where browser automation gets tedious if you’re writing scripts. With Chrome DevTools MCP, you just describe what you want filled in.

Fill one field at a time:
Fill in the email field with test@example.com
Fill in the password field with testpass123
Or fill multiple fields at once:
Fill out the sign-in form with email test@example.com and password testpass123

The AI uses fill_form to handle all the fields in one go. Here's what the filled form looks like:

Conduit sign-in form with email field populated with 'test@example.com', password field showing obscured characters, and green 'Sign in' button ready for submission

The AI identifies the right input fields based on your description. You don’t touch the HTML.

Debugging and inspection

Chrome DevTools MCP gives you three core tools for debugging: list_console_messages to view console output, list_network_requests to see network activity, and evaluate_script to run JavaScript and extract data from pages.

When you use these tools through your AI assistant, you’re having a conversation. You ask questions in natural language, and the AI translates them into MCP tool calls behind the scenes. 

Here’s what that looks like:

The AI assistant understands your intent and executes the appropriate Chrome DevTools tools, then presents the results in a readable format. Let’s see how these work in practice.

Console inspection

Console errors are usually the first place to look when something breaks. Instead of opening DevTools manually, just ask your AI assistant:

Navigate to demo.realworld.io and check the console for any errors

The AI loads the page and checks the console using list_console_messages. Here's what it finds:

Error> Access to XMLHttpRequest at 'https://api.realworld.io/api/articles'
from origin 'https://demo.realworld.io' has been blocked by CORS policy
Error> Access to XMLHttpRequest at 'https://api.realworld.io/api/tags'
from origin 'https://demo.realworld.io' has been blocked by CORS policy

These CORS errors (Cross-Origin Resource Sharing ),  are a browser security feature that restricts web pages from making requests to different domains) and explain why the page shows “Loading articles…” and “Loading tags…” instead of actual content:

Conduit homepage displaying 'Loading articles...' message in main content area and 'Loading tags...' in sidebar due to blocked API requests from CORS policy violations

You can dig deeper by asking the AI to filter and interpret these messages:

Are there any errors or warnings on this page?

The AI analyzes the console output and tells you: “Yes, there are two CORS errors blocking API requests for articles and tags.”

This gives you immediate visibility into what’s breaking without manually opening the DevTools console.

Network request overview

Console errors often point to network problems. To understand what’s actually happening with your requests, check the network activity:

Show me what network requests are made on the homepage

The AI uses list_network_requests and returns a list of all requests. You'll see successful requests (CSS, fonts, JavaScript files) and failed ones:

https://demo.realworld.io/ GET [success - 200]
https://demo.realworld.io/main.css GET [success - 200]
https://demo.realworld.io/main.js GET [success - 200]
https://conduit.productionready.io/api/tags GET [failed - 307]
https://conduit.productionready.io/api/articles?limit=10&offset=0 GET [failed - 307]
https://api.realworld.io/api/tags GET [failed - net::ERR_FAILED]
https://api.realworld.io/api/articles?limit=10&offset=0 GET [failed - net::ERR_FAILED]

Ask follow-up questions to dig deeper:

Are there any failed requests?

The AI filters the list and identifies the problem: “Yes, four API requests failed. Two returned 307 redirects, and two failed completely with ERR_FAILED errors.”

This helps you spot issues quickly without manually inspecting the Network tab.

JavaScript Evaluation and Data Extraction

Beyond viewing console and network data, you can run code directly on the page to check its state or extract information. Use evaluate_script for this:

Check if any articles are displayed on the homepage

The AI runs JavaScript to count article elements:

const articles = document.querySelectorAll('.article-preview');
return articles.length;

Result: “There are 0 articles displayed. The page shows ‘Loading articles…’ which suggests the API errors are preventing content from loading.”

You can extract more complex data, too:

Get the page title and main heading text

The AI evaluates:

return {
 pageTitle: document.title,
 mainHeading: document.querySelector('h1')?.textContent
};

Result: {pageTitle: "Home — Conduit", mainHeading: "conduit"}

This lets you verify page content, extract structured data, or check that dynamic elements are loaded correctly. The take_screenshot and take_snapshot tools complement this by capturing visual and structural documentation when you need it.

These three debugging capabilities work together naturally. Start with console messages to spot errors, check network requests to understand what failed, then use JavaScript evaluation to verify how those failures affect the page,  all through conversation with your AI assistant ,  no switching between tools or writing inspection scripts.

Building Website Frontends Using Chrome DevTools MCP

AI assistants can build web interfaces, but they can’t see what they create. You end up manually taking screenshots and asking for adjustments.

Chrome DevTools MCP changes this. The AI takes its own screenshots, verifies layouts, and iterates until everything looks right.

Let’s build a ChatGPT clone using Streamlit. You’ll need an OpenAI API key for this . Provide it to your AI assistant when running the prompt so it can verify the app works correctly. Here’s the prompt:

Build a ChatGPT clone using Streamlit. Create a clean chat interface
with message history, text input, and OpenAI API integration. Include
a sidebar for API key management and chat management features (Clear
Chat, New Chat, message counter). Use Chrome DevTools MCP to verify
the UI at each step.

The AI creates the app with a sidebar and takes a screenshot to verify the initial layout:

Streamlit ChatGPT clone initial state with empty chat interface, sidebar displaying API key input field, Clear Chat and New Chat buttons, and message counter showing 0 messages

The sidebar includes API key input, Clear Chat and New Chat buttons, and a message counter at 0. With the interface ready, let’s see if the chat functionality works.

Testing with a simple question:

Chat interface showing first user question 'What is the capital of France?' with AI response 'The capital of France is Paris' and message counter updated to 2 messages

The chat responds correctly, and the counter shows two messages (in the next screenshot). But can it handle multi-turn conversations?

Testing conversation context:

Multi-turn conversation displaying user request to 'write a haiku about it' with AI generating haiku about Paris, demonstrating context awareness from previous message, counter showing 4 messages

The AI remembers the previous exchange. Next, we need to verify the Clear Chat feature.

Clicking the Clear Chat button:

Empty chat interface after clearing conversation history, message counter reset to 0, sidebar controls ready for new conversation

The chat clears successfully, and the counter resets to 0. 

Starting a new chat:

Fresh conversation started with new user question and AI response, demonstrating clean state after clearing previous chat history, polished interface ready for production use

Perfect. The AI built a working ChatGPT clone, verified the appearance at each step, and tested all features without human intervention.

This works for any framework. React, Vue, Svelte, vanilla HTML. The AI verifies layouts, tests interactions, and catches bugs before you see the code.

Conclusion and Next Steps

Chrome DevTools MCP gives you browser automation through conversation. You describe what you want, and your AI assistant handles the technical details. No scripts to write, no selectors to debug.

Throughout this article, we covered the basics: installing the server, navigating pages, filling forms, clicking elements, and taking screenshots. Then we moved into debugging with console inspection, network monitoring, and JavaScript evaluation. Finally, we saw how these tools work together to build frontends where the AI can see what it creates.

What to try next

Start by navigating to a site you’re working on and ask your AI to check for console errors or inspect network requests. Take screenshots of different states. Test form submissions.

Then combine multiple tools: navigate to a page, fill out a form, submit it, and capture the result. Check console messages, list failed network requests, and run JavaScript to verify page state.

Once you’re comfortable with the basics, create a small UI component with your AI and let it verify the layout at each step. Watch how it catches visual issues before you manually check.

For performance work, use the performance tools (performance_start_trace, performance_stop_trace, performance_analyze_insight) to profile page load times and identify bottlenecks. Use emulation tools (emulate_cpu, emulate_network, resize_page) to test under different conditions.

Chrome DevTools MCP is one server among many. Combine it with file system servers, database tools, or API integrations to build workflows that span multiple systems.

If you want to build your own MCP servers, check out Building an MCP Server and Client with FastMCP 2.0.


Bex Tuychiev's photo
Author
Bex Tuychiev
LinkedIn

I am a data science content creator with over 2 years of experience and one of the largest followings on Medium. I like to write detailed articles on AI and ML with a bit of a sarcastıc style because you've got to do something to make them a bit less dull. I have produced over 130 articles and a DataCamp course to boot, with another one in the makıng. My content has been seen by over 5 million pairs of eyes, 20k of whom became followers on both Medium and LinkedIn. 

Topics

Top DataCamp Courses

Course

Understanding Prompt Engineering

1 hr
105.3K
Learn how to write effective prompts with ChatGPT to apply in your workflow today.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related

blog

Top 10 MCP Servers & Clients for AI Workflow Automation in 2025

Discover the most popular MCP servers and clients to automate your workflow using natural language.
Abid Ali Awan's photo

Abid Ali Awan

6 min

blog

11 Best AI Browsers for Smarter, Faster Web Use

Discover the best AI-powered browsers designed to assist in your research, boost productivity, and automate your work across the web.
Adejumo Ridwan Suleiman's photo

Adejumo Ridwan Suleiman

14 min

blog

11 Top Tips to Use AI Chatbots to Test Your Design

Discover how to leverage AI chatbots to enhance your design process. Learn how to optimize designs, streamline business processes, and improve user engagement.

Tarif Kahn

10 min

Tutorial

Claude for Chrome: AI-Powered Browser Assistance and Automation

Learn how to install and use Claude for Chrome, Anthropic’s AI-powered browser assistant. Discover how it automates form filling, email cleanup, and web tasks, plus key safety tips and current limitations.
Bex Tuychiev's photo

Bex Tuychiev

Tutorial

ChatGPT Atlas: A Hands-On Guide With 9 Practical Browser Automations

Discover ChatGPT Atlas, the new AI-powered browser. Try 9 hands-on automations for search, research, shopping, and more, all inside ChatGPT.
Aashi Dutt's photo

Aashi Dutt

Tutorial

Perplexity Search API Tutorial: Build a Real-Time Claim Checker in Your Browser

Learn how to use the Perplexity Search API to build a Chrome extension that verifies factual claims in real time. Includes Node.js backend setup and API integration guide.
Aashi Dutt's photo

Aashi Dutt

See MoreSee More