NPM Package
@mcp-b/chrome-devtools-mcp
Upstream Repository
Original by Google Chrome team
Key features
- 28 browser automation tools - navigation, input, screenshots, performance, debugging (from upstream)
- WebMCP integration - call tools registered via @mcp-b/global (added in this fork)
- AI-driven development - build and test WebMCP tools in a tight feedback loop
- Works with all MCP clients - Claude Code, Cursor, VS Code, Gemini CLI, Windsurf
Prerequisite: Website polyfill
Forlist_webmcp_tools and call_webmcp_tool to work, your website must have the @mcp-b/global polyfill installed:
AI-driven development workflow
The build-test loop lets AI agents write, deploy, discover, test, and iterate on WebMCP tools in real-time: Example workflow:- Ask AI: “Create a WebMCP tool called search_products”
- AI writes tool using registerTool()
- Dev server hot-reloads
- AI navigates to
http://localhost:3000, discovers and tests the tool - AI iterates until it works
This is TDD for AI - agents build and verify their own tools in real-time.
Installation
Tools
- WebMCP
- Input
- Debugging
- Performance
| Tool | Description |
|---|---|
list_webmcp_tools | Discover tools registered on the current page |
call_webmcp_tool | Call a website’s MCP tool |
Built-in prompts
| Prompt | Use case |
|---|---|
webmcp-dev-workflow | Guide through building WebMCP tools |
test-webmcp-tool | Test tools with edge cases |
debug-webmcp | Diagnose connection issues |
Configuration
| Option | Description |
|---|---|
--browserUrl | Connect to running Chrome (e.g., http://127.0.0.1:9222) |
--headless | Run without UI |
--isolated | Use temporary profile, cleaned up on close |
--channel | Chrome channel: stable, canary, beta, dev |
npx @mcp-b/chrome-devtools-mcp@latest --help for all options.
Troubleshooting
| Issue | Solution |
|---|---|
| WebMCP not detected | Page needs @mcp-b/global loaded |
| Tool call fails | Check input matches schema via list_webmcp_tools |
| Browser won’t start | Disable client sandboxing or use --browserUrl |
Related
@mcp-b/global
Register tools on your website
Tool Registration
How to write WebMCP tools
Chrome DevTools MCP (Upstream)
Original project by Google Chrome team
Quick Start Guide
Step-by-step setup guide
