chrome-devtools-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CHROME_DEBUGGING_PORT | No | The port for Chrome DevTools Protocol debugging | 9222 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_tabsA | 列出当前浏览器所有可调试的 Tab(仅显示 page 类型) |
| query_selectorA | 在 DOM 中查找匹配选择器的所有元素,返回元素基本信息(tagName/id/classList) |
| get_dom_treeA | 获取 DOM 子树结构,可按选择器定位根节点,depth 控制层级深度(最大 10) |
| get_ancestorsA | 获取元素的完整祖先链,每个祖先节点包含指定样式属性值。专为 sticky/overflow/z-index 层叠问题根因定位设计。 |
| get_computed_stylesA | 获取元素所有计算样式(浏览器最终计算值),返回完整的 property: value 键值对 |
| get_matched_stylesA | 获取元素匹配的 CSS 规则列表,包含选择器、来源文件、行号和所有属性 |
| get_box_modelC | 获取元素盒模型尺寸(width/height/margin/padding/border/content) |
| get_layout_metricsA | 获取页面视口尺寸和内容尺寸(viewportWidth/viewportHeight/contentWidth/contentHeight) |
| evaluate_jsA | 在页面上下文中执行 JavaScript 表达式,返回执行结果。禁止访问 cookie/localStorage/fetch 等敏感 API。 |
| get_console_logsC | 获取页面控制台日志(MCP 连接后产生的日志) |
| get_network_requestsA | 获取页面网络请求记录(MCP 连接后发生的请求),可按 URL 关键词过滤 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Himangguo/chrome-devtools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server