Chrome Devtool MCP Server

Chrome DevTools MCP Server for AI-assisted frontend development

Local serverstdioPython

What is the Chrome Devtool MCP Server?

Chrome DevTools MCP Server for AI-assisted frontend development

What the server does

一个基于 Model Context Protocol (MCP) 的 Chrome DevTools 控制服务器,为 AI 辅助前端开发提供强大的浏览器调试能力。

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
launch_chrome参数: - headless (bool): 是否无头模式运行,默认 false - port (int): 远程调试端口,默认 9222
connect_remote_chrome参数: - host (str): 远程主机地址,默认 localhost - port (int): 远程调试端口,默认 9222
connect_websocket_url参数: - ws_url (str): WebSocket 调试器 URL,如 'ws://localhost:9222/devtools/page/ABC123'
list_available_targets参数: - host (str): Chrome 主机地址,默认 localhost - port (int): Chrome 调试端口,默认 9222
navigate_to
get_dom_tree
query_elements
get_network_logs
get_console_logs参数: - level (str, optional): 日志级别过滤(error, warning, log, info)
execute_javascript
take_screenshot
get_page_info
close_chrome
set_breakpoint参数: - breakpoint_type (str): 断点类型 - 'dom', 'event', 'function', 'xhr', 'line', 'logpoint' - target (str): 断点目标(如 DOM 选择器、函数名、URL:行号) - options (dict, optional): 额外选项 - condition: 条件表达式,只在条件为真时触发 - logMessage: 日志消息(用于日志断点

How to install the Chrome Devtool MCP Server

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "python",
      "args": [
        "/path/to/chrome-devtool-mcp/mcp_server.py"
      ],
      "env": {}
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Chrome Devtool MCP to launch chrome.”
  • “Use Chrome Devtool MCP to connect remote chrome.”
  • “Use Chrome Devtool MCP to connect websocket url.”

Frequently asked questions

Chrome DevTools MCP Server for AI-assisted frontend development Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.