How to Use Chrome DevTools MCP for SEO and Core Web Vitals

Web performance specialist testing a site on a laptop and a phone

Chrome DevTools MCP is Google's official MCP server that lets an AI assistant such as Claude control and inspect a live Chrome browser. Claude opens your pages in that browser and reads the same performance traces and network data you would check in DevTools. For SEO that covers Core Web Vitals diagnosis and rendered HTML checks without leaving the chat.

This guide covers the setup for Claude Desktop and Claude Code as of December 2026. Then it walks through the SEO and performance checks worth running on your key templates. It belongs to our MCP series with the Google Analytics MCP, DataForSEO MCP and WordPress MCP guides.

What is Chrome DevTools MCP?

Google's Chrome team publishes the server in the ChromeDevTools/chrome-devtools-mcp repository and on npm as chrome-devtools-mcp. The first release, version 0.1.0, shipped on GitHub on September 16, 2025. Version 1.15.0 shipped on December 2, 2026. The README now calls the project Chrome DevTools for agents. The same package installs a chrome-devtools command-line tool too.

Under the hood it drives Chrome through Puppeteer and records traces with Chrome DevTools itself. The README lists Google Chrome and Chrome for Testing as the only officially supported browsers. Other Chromium browsers may work without any guarantee.

MCP stands for Model Context Protocol, the open standard AI clients use to call outside tools (spec at modelcontextprotocol.io). It runs locally. Claude starts the server as a process on your computer. The server then launches its own Chrome window the first time a tool needs one.

Which Chrome DevTools MCP tools matter for SEO?

The tool reference for version 1.15.0 lists 63 tools in 13 categories. Six categories stay off until you pass a flag, among them extensions and network mocks. The ones below carry almost all SEO and performance work.

ToolWhat it doesSEO use
navigate_page, new_pageLoads a URL in the current tab or a new oneOpen each template you want to test
performance_start_trace, performance_stop_traceRecords a performance trace, optionally with a reloadLCP, CLS and INP diagnosis
performance_analyze_insightExpands one insight from the trace, such as LCPBreakdown or DocumentLatencyFind what delays the largest element
list_network_requests, get_network_requestLists requests since the last navigation and returns headers and bodiesStatus codes, redirects, blocked resources, raw HTML
list_console_messages, get_console_messageReturns console output with source-mapped stack tracesJavaScript errors that can break rendering
evaluate_scriptRuns JavaScript in the page and returns JSONRead the rendered title, canonical, headings and links
take_snapshot, take_screenshotCaptures the accessibility tree or an image of the pageCheck headings and visible content
emulateSets viewport, CPU and network throttling, user agent and moreMobile testing under slower conditions
lighthouse_auditRuns Lighthouse for accessibility, SEO and best practicesQuick on-page checks (performance excluded)
click, wait_forClicks an element and waits for text to appearTest INP and content that loads after interaction

What you need before you start

  • Node.js. The npm package declares Node 20.19 or later on the 20 line, 22.12 or later on the 22 line, or version 23 and up. Check yours with node --version.
  • Current stable Chrome. The README asks for the current stable version or newer.
  • Claude Desktop or Claude Code. Both can start local MCP servers.
  • A staging URL if you have one. The server can click, type and run scripts. Test write-like actions away from production.

Step 1. Add Chrome DevTools MCP to Claude Desktop

Claude Desktop reads local servers from claude_desktop_config.json. The file sits at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and at %APPDATA%\Claude\claude_desktop_config.json on Windows. Add this block under mcpServers.

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest", "--isolated"]
    }
  }
}

The first two arguments come straight from the README. The @latest tag pulls the newest release each time the server starts. We added --isolated, which the configuration guide describes as a temporary user data directory that is deleted when the browser closes. Without it the server keeps a persistent profile under $HOME/.cache/chrome-devtools-mcp/.

Quit Claude Desktop completely and reopen it. If the server never appears, the app probably can't see your shell's PATH. Run which npx in a terminal and paste the full path into "command".

Step 2. Add Chrome DevTools MCP to Claude Code

The project's client configuration guide registers the server with one command. We add the double dash that the Claude Code MCP docs recommend for local servers. Everything after it goes to the server untouched, including the -y flag.

claude mcp add chrome-devtools --scope user -- npx -y chrome-devtools-mcp@latest --isolated

The --scope user flag makes the server available in every project on your machine. Run claude mcp list to confirm it registered. The /mcp command shows its status inside a session.

There is also a plugin route that installs the server together with the project's agent skills. Run /plugin marketplace add ChromeDevTools/chrome-devtools-mcp followed by /plugin install chrome-devtools-mcp@chrome-devtools-plugins. Then restart Claude Code. One of the bundled skills is debug-optimize-lcp. The guide asks you to remove any earlier CLI install first.

Step 3. Run your first trace

The README's test prompt is "Check the performance of https://developers.chrome.com". Swap in one of your own URLs. Claude should open a Chrome window, reload the page with tracing on and report back. Connecting the server alone starts no browser. Chrome only launches when Claude calls a tool that needs it.

Privacy settings to decide on first

Two defaults send data to Google. The README says usage statistics such as tool success rates and latency are collected by default. Turn that off with --no-usage-statistics in the args.

Performance tools may also send the traced URLs to the CrUX API to fetch real-user data. That field data is useful on a public page. Add --no-performance-crux when you test staging hosts or unreleased URLs.

The README also warns that the server exposes browser content to the MCP client. Keep the isolated profile. Don't sign in to admin panels or client accounts inside the automated browser.

How to check Core Web Vitals with Chrome DevTools MCP

Google's Web Vitals guidance sets the good thresholds at 2.5 seconds for LCP, 200 milliseconds for INP and 0.1 for CLS, measured at the 75th percentile of page loads. A trace from this server is lab data from one load on your machine. Search Console's Core Web Vitals report uses field data from real Chrome users. Use the trace to find causes and the field data to judge whether a fix worked.

LCP and CLS from a page load

Ask Claude to navigate to the URL first and then start a trace with reload and auto-stop. The tool reference says to navigate before tracing when either option is on. Then ask for the LCP breakdown insight. It splits the time into phases and names the element.

Illustrative prompt. "Emulate a mobile viewport with Slow 4G network and 4x CPU throttling. Open https://staging.example.com/category/shoes, record a cold-load trace with the cache bypassed, then explain the LCPBreakdown and any layout shift insights. List the three slowest requests that block the LCP element."

INP needs an interaction

A reload trace has no user input. Google's INP guide says some lab tools report no INP because they only observe the page load. Start a trace without reload, ask Claude to click the element you care about, such as a filter or an add-to-cart button, and then stop the trace. Repeat it a few times. One slow click on your laptop proves little by itself.

Our post on headless rendering, INP and AI visibility covers why heavy client-side frameworks tend to hurt INP. Pair it with these traces when you argue for a rendering change.

Rendered HTML vs source with Chrome DevTools MCP

Google's JavaScript SEO basics say Google Search runs JavaScript with an evergreen version of Chromium and uses the rendered HTML to index the page. Rendering can lag behind crawling, as our explainer on the Googlebot render queue describes. Anything that only exists after rendering depends on that second step.

The server can show both versions. get_network_request on the document request returns the raw response body your server sent. evaluate_script reads the DOM after scripts ran. Ask Claude to compare the two for the fields that matter.

Illustrative prompt. "On https://staging.example.com/blog/sample-post, save the raw HTML of the document response. Then read the rendered DOM. Compare title, meta description, canonical, meta robots, H1, the first 300 words of body copy and the count of internal links. Flag anything that is missing from the raw HTML."

Treat the result as a lead to verify. This is your Chrome on your network. Run the URL Inspection live test in Search Console for Google's own view and read the rendered HTML there. Google recommends that tool for this check.

Network requests and console errors on key templates

Pick one URL per template, such as the home page, a category, a product or article and a search page. Then ask Claude for the same four checks on each.

  • Every request with a 4xx or 5xx status, filtered to documents, scripts, stylesheets and fetch calls.
  • Redirect hops on the main document. The configuration guide says headers and status codes are kept for earlier navigations, which makes the hops traceable.
  • Console errors with their stack traces. A thrown error in a bundle can stop content from rendering.
  • Third-party scripts that load before the LCP element.

Templates matter more than single URLs. A fix on one product template reaches every product page that uses it.

Checking JavaScript-dependent content

Google's lazy-loading guidance states that Google Search does not interact with your page. Content behind a "load more" button or a tab click may never reach the index.

Test it directly. Ask Claude to read the rendered DOM before any interaction and record whether a given text or product appears. Then have it click the control and use wait_for on the same text. Anything that appears only after the click needs a crawlable alternative, such as a paginated URL. Our post on JavaScript fallbacks for AI crawlers covers the options.

lighthouse_audit adds a quick on-page pass. It returns failing SEO and accessibility audits with the DOM nodes they flag. It skips performance, which belongs to the trace tools.

Limits and safety

Lab numbers depend on your hardware and connection. Throttle with emulate and compare runs on the same machine. Changing the user agent string to Googlebot changes one header. Google's crawler, its IP ranges and its render timing stay out of reach.

The server can click, fill forms and execute JavaScript on any page it opens. The configuration guide lists two guardrails worth using on client work. --allowedUrlPattern limits the browser to the URL patterns you list and needs Chrome 149 or later. --blockedUrlPattern blocks specific patterns. Tools that read or write files stay limited to the OS temp directory when the client sets no roots.

Troubleshooting Chrome DevTools MCP

Most rows come from the project's troubleshooting guide. Its first tip is to run npx chrome-devtools-mcp@latest --help in a terminal to see whether the server starts at all.

SymptomLikely causeFix
Error [ERR_MODULE_NOT_FOUND]Unsupported Node version or a corrupted npx cacheUpdate Node. Clear the cache with npm cache clean --force and reinstall.
Target closedChrome could not startClose other Chrome instances and install the latest stable Chrome
MCP error -32000: Connection closed on Windows 10npx fails when launched from another processSet "command": "cmd" with "args": ["/c", "npx", "-y", "chrome-devtools-mcp@latest"]
spawn npx ENOENTThe desktop app can't see your shell's PATHUse the full path from which npx
Chrome fails to start in a container or CIChrome won't run as rootRun the server as a non-root user
Chrome fails inside a sandboxed clientThe client's OS sandbox blocks Chrome's own sandboxDisable sandboxing for this server. The other route is to start Chrome yourself and connect with --browser-url.
No browser launches in WSLA known WSL issue with launching Windows ChromeInstall Chrome inside the Linux environment
Plugin install fails with Failed to clone repositoryHTTPS to GitHub blocked, often by a corporate firewallUse the claude mcp add method

Run Chrome DevTools MCP next to the Search Console MCP in one conversation. Most technical audits get shorter. Our guide to using Claude for SEO covers the guardrails. Our technical SEO team can run these checks on your templates.

Want this for your brand

See where your brand stands in AI answers today, benchmarked against your competitors, no pitch required.