
一个基于Chrome DevTools协议的Chrome开发工具MCP服务器。可与Claude桌面和Claude代码集成。
概览
一台模型上下文协议(MCP)服务器,通过MCP提供Chrome开发工具协议集成。这允许你通过连接Chrome的开发者工具来调试网页应用。 该 MCP 服务器作为 Claude 与 Chrome 调试能力之间的桥梁。安装到 Claude Desktop 后,您可以: - 将 Claude 连接到运行于 Chrome 的任何网页应用 - 调试网络请求、控制台错误和性能问题 - 检查 JavaScript 对象并在浏览器环境中执行代码 - 通过与 Claude 的自然对话实时监控您的应用 :这是一个运行在Claude Desktop中的MCP服务器——你不需要运行任何单独的服务器或进程。
概述(AI 翻译)
一台模型上下文协议(MCP)服务器,通过MCP提供Chrome开发工具协议集成。这允许你通过连接Chrome的开发者工具来调试网页应用。
** 作为 Claude 桌面扩展(.dxt)** 提供,方便一键安装!
这会带来什么
该 MCP 服务器作为 Claude 与 Chrome 调试能力之间的桥梁。安装到 Claude Desktop 后,您可以:
- 将 Claude 连接到运行在 Chrome 中的任意网页应用
- 调试网络请求、控制台错误和性能问题
- 检查JavaScript对象并在浏览器环境中执行代码
- 通过与Claude的自然对话实时监控您的申请
注意:这是一个运行在Claude Desktop中的MCP服务器——你不需要运行任何独立的服务器或进程。
特色
- 网络监控:捕捉和分析带有过滤选项的HTTP请求/响应
- 控制台集成:读取浏览器控制台日志,分析错误,并执行JavaScript
- 性能指标:时序数据、资源加载和内存利用率
- 页面检查:DOM信息、页面指标和多帧支持
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Chrome DevTools MCP
A Model Context Protocol (MCP) server that provides Chrome DevTools Protocol integration through MCP. This allows you to debug web applications by connecting to Chrome’s developer tools.
Available as a Claude Desktop Extension (.dxt) for easy one-click installation!
What This Does
This MCP server acts as a bridge between Claude and Chrome’s debugging capabilities. Once installed in Claude Desktop, you can:
- Connect Claude to any web application running in Chrome
- Debug network requests, console errors, and performance issues
- Inspect JavaScript objects and execute code in the browser context
- Monitor your application in real-time through natural conversation with Claude
Note: This is an MCP server that runs within Claude Desktop - you don’t need to run any separate servers or processes.
Features
- Network Monitoring: Capture and analyse HTTP requests/responses with filtering options
- Console Integration: Read browser console logs, analyse errors, and execute JavaScript
- Performance Metrics: Timing data, resource loading, and memory utilisation
- Page Inspection: DOM information, page metrics, and multi-frame support
- Storage Access: Read cookies, localStorage, and sessionStorage
- Real-time Monitoring: Live console output tracking
- Object Inspection: Inspect JavaScript objects and variables
Installation
Option 1: Claude Desktop Extension (Easiest)
Download the pre-built extension:
- Download the latest
.dxtfile from Releases - Open Claude Desktop
- Go to Extensions and install the downloaded
.dxtfile - Configure Chrome path if needed in extension settings
The extension includes all dependencies and is ready to use immediately!
Option 2: MCP CLI (Advanced)
Quick Install (most common):
git clone https://github.com/benjaminr/chrome-devtools-mcp.git
cd chrome-devtools-mcp
mcp install server.py -n "Chrome DevTools MCP" --with-editable .
Note: The
mcpcommand is part of the Python MCP SDK. Install it withpip install mcpif not already available.
All Installation Options:
# Clone the repository
git clone https://github.com/benjaminr/chrome-devtools-mcp.git
cd chrome-devtools-mcp
# The --with-editable flag uses pyproject.toml to install dependencies
# Basic installation with local dependencies
mcp install server.py --with-editable .
# Install with custom name
mcp install server.py -n "Chrome DevTools MCP" --with-editable .
# Install with environment variables
mcp install server.py -n "Chrome DevTools MCP" --with-editable . -v CHROME_DEBUG_PORT=9222
# Install with additional packages if needed
mcp install server.py -n "Chrome DevTools MCP" --with-editable . --with websockets --with aiohttp
# Install with environment file (copy .env.example to .env first)
cp .env.example .env
安装
npx @anthropic-ai/dxt pack配置
{
"mcpServers": {
"chrome-devtools": {
"command": "python",
"args": ["/absolute/path/to/chrome-devtools-mcp/server.py"],
"env": {
"CHROME_DEBUG_PORT": "9222"
}
}
}
}