@mcp-b/chrome-devtools-mcp is a fork of Google’s official Chrome DevTools MCP server that adds WebMCP integration. It connects MCP clients (Claude Code, Cursor, etc.) directly to Chrome using the Chrome DevTools Protocol.
Fork of Official Chrome DevTools MCPThis package extends the official Chrome DevTools MCP by Google with two additional tools:
list_webmcp_tools and call_webmcp_tool. All 28 browser automation tools from the original are included.Prerequisite: Add the WebMCP Polyfill
For AI agents to call your WebMCP tools, your website must have the@mcp-b/global polyfill installed. This adds navigator.modelContext to your page.
- Script Tag (Easiest)
- ESM Import
- NPM
Add to your HTML That’s it! The polyfill auto-initializes and is ready immediately.
<head>:Quick Setup
1
Add polyfill to your website
Add to your HTML
<head>:2
Register a tool
3
Add MCP server to your AI client
4
Test the connection
Ask your AI:
WebMCP Integration
The server provides two key tools for WebMCP:| Tool | Description |
|---|---|
list_webmcp_tools | Discover all tools registered on the current page |
call_webmcp_tool | Execute a WebMCP tool with arguments |
Example Workflow
This creates a tight feedback loop for AI-driven development:- AI writes tool code
- Your dev server hot-reloads
- AI navigates to the page
- AI discovers tools with
list_webmcp_tools - AI tests with
call_webmcp_tool - AI iterates until working
This is TDD for AI - agents build and verify their own tools in real-time.
Browser Automation Tools
Beyond WebMCP, you get 28 browser automation tools:Development Workflow
Use Chrome DevTools MCP during development to let your AI:- Build tools - Write WebMCP tool code
- Test immediately - Navigate and call tools
- Debug issues - Inspect results, check console
- Iterate quickly - Fix and re-test in seconds
Best For
- AI-driven tool development
- Automated testing of WebMCP tools
- Browser automation scripts
- Development and debugging
Not Ideal For
- Production tool consumption (use Embedded Agent)
- End-user interactions (use MCP-B Extension)
Chrome DevTools MCP Package
Complete API reference and configuration options
