Skip to main content
This guide shows you how to use the upstream chrome-devtools-mcp package to connect desktop AI agents to a live Chrome browser. The server gives your agent browser automation tools plus the ability to discover and call WebMCP tools registered on a page. Use chrome-devtools-mcp@latest directly; the WebMCP changes from the former fork have all landed upstream.

Install the MCP server

Add the server to your MCP client configuration and enable its experimental WebMCP category:
MCP client configuration
The upstream WebMCP category currently requires Chrome 150 or newer with the WebMCP feature enabled. The configuration above passes the required browser flag. The server launches Chrome when the agent first uses a browser tool; connecting to the MCP server alone does not start it.

Test the connection

Enter this prompt in your MCP client:
Prompt
Your agent should open Chrome, navigate to the page, and return a screenshot. This confirms the browser connection works before you start discovering tools.

Discover WebMCP tools on a page

The server detects Chrome’s native WebMCP registry through the Chrome DevTools Protocol. MCP-B tools appear when @mcp-b/global adopts and mirrors that native context; a standalone JavaScript polyfill is not a DevTools discovery source. The upstream server exposes two WebMCP tools:
  • list_webmcp_tools lists the tools exposed by the current page.
  • execute_webmcp_tool executes one listed tool with JSON-stringified input.
Ask your agent:
Prompt
webmcp.sh landing page showing registered WebMCP tools organized by category

webmcp.sh registers tools for navigation, data management, SQL queries, and more

Then ask it to execute a listed tool:
Prompt
The agent passes the selected tool name and JSON-stringified input to execute_webmcp_tool, then returns the result from the page.
SQL REPL showing query results returned by the agent via the sql_query WebMCP tool

The agent executed the sql_query WebMCP tool against the in-browser PostgreSQL database

Call list_webmcp_tools again after a navigation or hot reload. The upstream tool returns the current page’s list and takes no parameters.

Use the AI-driven development workflow

The most powerful use case is building WebMCP tools with your AI agent in a tight feedback loop. Clone the Chrome DevTools Quickstart for a minimal project with @mcp-b/global pre-installed, or use your own app.
1

Ask your agent to create a tool

Prompt
2

Let the dev server reload the change

Wait for the app’s normal hot reload to finish.
3

The agent discovers the new tool

Prompt
4

The agent tests the tool

Prompt
5

The agent iterates if something fails

The agent sees the actual response, fixes bugs, and repeats until the tool works.

Connect to an existing Chrome instance

By default, the server launches its own Chrome with a dedicated profile. This is the simplest way to use the experimental WebMCP category because the server supplies the required feature flags. If you attach to an existing Chrome session, launch that browser with --enable-features=WebMCP first.

Auto-connect (Chrome 144+)

1

Enable remote debugging in Chrome

Navigate to chrome://inspect/#remote-debugging and follow the dialog to allow debugging connections.
2

Use the autoConnect flag

MCP client configuration

Manual connection via remote debugging port

1

Configure the MCP server with a browser URL

MCP client configuration
2

Start Chrome with remote debugging enabled

The remote debugging port is accessible to any process on your machine. Do not browse sensitive websites while it is open.

Common configuration options

Pass options through the args array in your MCP client config:
MCP client configuration
For the full list of options, see the upstream Chrome DevTools MCP repository.

Troubleshoot common issues