1. Conduid
  2. Browser
  3. Chrome Devtools Quickstart
MCP server · Browser

Chrome Devtools Quickstart

Quickstart demo for using Chrome DevTools MCP with WebMCP tools - AI-driven browser automation

Unclaimed MIT browser
64Good

Scored 17 hours ago · breakdown

About Chrome Devtools Quickstart

Chrome Devtools Quickstart is an MCP server published by WebMCP-org in the Browser category: quickstart demo for using Chrome DevTools MCP with WebMCP tools - AI-driven browser automation.

The repository has 40 stars and 9 forks, with the last commit 4 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/WebMCP-org/chrome-devtools-quickstart

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (3)

get_counterReturns current counter value

Parameters not published.

get_page_titleReturns `document.title`

Parameters not published.

set_counterSets counter to specified value

Parameters not published.

Ask AI

✦

Ask AI about Chrome Devtools Quickstart

Powered by Claude · Grounded in docs

I know everything about Chrome Devtools Quickstart. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

README

Chrome DevTools MCP Quickstart

Give AI agents direct access to your website's functionality—no screenshots, no DOM scraping, just structured tool calls.

Why This Matters

Up to 89% fewer tokens compared to screenshot-based workflows.

Benchmark Comparison

How It Works

How It Works

flowchart LR
    A[AI Client] --> B[Chrome DevTools MCP]
    B -->|CDP| C[Your Website]
    C -->|mcp-b/global| D[navigator.modelContext]

    B -.->|list_webmcp_tools| E[Discovers tools]
    B -.->|call_webmcp_tool| F[Executes tools]
  1. Your website loads @mcp-b/global which adds navigator.modelContext
  2. You register tools using navigator.modelContext.registerTool()
  3. Chrome DevTools MCP connects to Chrome and exposes list_webmcp_tools + call_webmcp_tool
  4. AI agents discover and call your tools

Quick Start (3 Steps)

1. Clone & Run

git clone https://github.com/WebMCP-org/chrome-devtools-quickstart.git
cd chrome-devtools-quickstart
npm install && npm run dev

2. Add MCP Server to Your AI Client

Claude Code:

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

Optional: Add the WebMCP docs server so your AI knows how to build tools:

claude mcp add --transport http webmcp-docs https://docs.mcp-b.ai/mcp

Cursor - Add to .cursor/mcp.json:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["@mcp-b/chrome-devtools-mcp@latest"]
    },
    "webmcp-docs": {
      "url": "https://docs.mcp-b.ai/mcp"
    }
  }
}

Claude Desktop - Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["@mcp-b/chrome-devtools-mcp@latest"]
    },
    "webmcp-docs": {
      "url": "https://docs.mcp-b.ai/mcp"
    }
  }
}

Windsurf - Add to mcp_config.json:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["@mcp-b/chrome-devtools-mcp@latest"]
    },
    "webmcp-docs": {
      "command": "npx",
      "args": ["mcp-remote", "https://docs.mcp-b.ai/mcp"]
    }
  }
}

3. Test It

Ask your AI:

"Navigate to http://localhost:5173, list available WebMCP tools, and set the counter to 42"

The AI will navigate to your page, discover the tools, and execute them:

webmcp-Chrome-CDP-tutorial


Background

Chrome DevTools MCP is an MCP server that gives AI agents full browser automation capabilities—navigation, clicking, typing, screenshots, console access, network inspection, and performance profiling.

WebMCP takes this further: instead of AI parsing screenshots or scraping DOM, your website exposes JavaScript functions as structured tools that AI can call directly. The result is faster, cheaper, and more reliable agent interactions.

[!NOTE] What is WebMCP?

WebMCP turns your website's JavaScript functions into AI-callable tools. Register a function once, and any MCP-compatible AI client can discover and invoke it—with type-safe parameters and structured responses. The protocol is being standardized through the W3C Web Machine Learning Community Group.

[!NOTE] Try it live: Explore the Playground to see WebMCP in action. Questions? Reach out: MiguelsPizza

Join Our Discord


Example Tools

This quickstart includes 3 example tools in counter.js:

Tool Description
get_page_title Returns document.title
get_counter Returns current counter value
set_counter Sets counter to specified value

Registering a Tool

import '@mcp-b/global';  // Must be first!

navigator.modelContext.registerTool({
  name: "get_counter",
  description: "Returns the current counter value",
  inputSchema: { type: "object", properties: {} },
  async execute() {
    return {
      content: [{ type: "text", text: `Counter is ${counter}` }]
    };
  }
});

Tool with Parameters

navigator.modelContext.registerTool({
  name: "set_counter",
  description: "Sets the counter to the desired value",
  inputSchema: {
    type: "object",
    properties: {
      newCounterValue: {
        type: "number",
        description: "The number to set the counter to"
      }
    },
    required: ["newCounterValue"]
  },
  async execute(args) {
    setCounter(args.newCounterValue);
    return {
      content: [{ type: "text", text: `Counter is now ${args.newCounterValue}` }]
    };
  }
});

To use in your own project:

npm install @mcp-b/global

Then import it before registering tools.


AI Development Loop

The real power: AI writes code, hot-reloads, tests in the browser, and iterates—all without leaving your editor.

flowchart TD
    A[AI writes tool] --> B[Vite hot-reloads]
    B --> C[AI navigates to page]
    C --> D[AI tests tool]
    D --> E{Works?}
    E -->|No| A
    E -->|Yes| F[Done!]

Try it:

"Create a WebMCP tool called 'toggle_theme' that switches between light and dark mode. Add it to counter.js, then test it."


Available Tools

Chrome DevTools MCP provides 26 browser automation tools across 6 categories:

Category Tools
Navigation navigate_page, go_back, go_forward, refresh
Interaction click, fill, hover, press_key, drag
Inspection take_screenshot, take_snapshot, evaluate_script
Tabs list_pages, select_page, new_page, close_page
WebMCP list_webmcp_tools, call_webmcp_tool

Other Ways to Call WebMCP Tools

Chrome DevTools MCP isn't the only way to invoke WebMCP tools:

Option What it does Link
MCP-B Extension Aggregates tools from all open tabs into a single MCP server—connect Claude Desktop or Cursor to tools across multiple sites Chrome Web Store
Embedded Agent Add an AI chat widget to your site that can call your WebMCP tools directly Docs

Token Usage Benchmarks

Real measurements from Claude API—structured tool calls vs. screenshot-based automation:

Simple Task: Set Counter to 42

Approach Total Tokens Screenshots Cost
Screenshot-based 3,801 2 $0.015
WebMCP tools 433 0 $0.003
Reduction 89% - 83%

Complex Task: Create Calendar Event (Multi-step)

Approach Total Tokens Screenshots WebMCP Calls Cost
Screenshot-based 11,390 4 0 $0.048
WebMCP tools 2,583 0 6 $0.012
Reduction 77% - - 76%

Why WebMCP is More Efficient

  • Screenshots are expensive: Each image costs ~2,000 tokens at 1512x982 viewport (calculated as width × height / 750)
  • Tool responses are compact: JSON responses typically use 20-100 tokens
  • No verification screenshots needed: Tool responses confirm success directly
  • Simple tasks benefit most: Direct tool access eliminates visual parsing overhead

Run the Benchmarks Yourself

# Add your API key to .env
echo "ANTHROPIC_API_KEY=your-key" > .env

# Install dependencies
npm install

# Run simple benchmark (counter app - starts dev server automatically)
npm run benchmark:simple:direct

# Run complex benchmark (calendar app - uses live deployment)
npm run benchmark:complex:direct

Troubleshooting

Problem Solution
navigator.modelContext is undefined Import @mcp-b/global before registering tools
No tools found Wait for page to fully load, check browser console
Can't connect to Chrome Ensure Chrome is running, check firewall settings

Resources

Resource Description
WebMCP Docs Full documentation and guides
Chrome DevTools MCP Browser automation package docs
@mcp-b/global Core library for registering tools
MCP-B Extension Chrome extension for multi-tab tool access
Examples React, Angular, Rails, Phoenix LiveView, Vanilla JS
Live Demo Try WebMCP without installing anything
Discord Community support and discussion
GitHub Source code and issues

Credits

Built on @mcp-b/chrome-devtools-mcp, a fork of Google's chrome-devtools-mcp that adds WebMCP tool discovery and execution.

Source: WebMCP-org/npm-packages


License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Chrome Devtools Quickstart

How do I install Chrome Devtools Quickstart?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Chrome Devtools Quickstart safe to use with an AI agent?

Its trust score is 64 out of 100 (good). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Chrome Devtools Quickstart still maintained?

Yes — the last commit was 4 months ago. The repository has 40 stars and 9 forks.