MCP Chrome Bridge
Enables AI agents to control Chrome browser actions like navigation, clicking, form filling, screenshots, and console/network logging via an MCP server and Chrome extension.
README
<p align="center"> <img src="docs/banner.svg" alt="MCP Chrome Bridge" width="700"/> </p>
<p align="center"> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT License"/></a> <img src="https://img.shields.io/badge/MCP-server-blue?style=flat-square&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJ3aGl0ZSI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiLz48L3N2Zz4=" alt="MCP Server"/> <img src="https://img.shields.io/badge/Chrome-Extension_MV3-yellow?style=flat-square&logo=googlechrome&logoColor=white" alt="Chrome MV3"/> <img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen?style=flat-square&logo=node.js&logoColor=white" alt="Node 18+"/> </p>
MCP server that lets any AI agent control Chrome — tabs, navigation, clicks, forms, screenshots, console/network logs, GIF recording, and more. Works with any MCP-compatible client (Claude Code, OpenCode, custom agents).
Architecture
Agent → MCP server (stdio) → WebSocket relay (localhost:9876) → Chrome Extension → chrome.debugger API
- The extension creates a dedicated "Agent" tab group (purple) in your existing Chrome
- Same Chrome session = same cookies/auth (no separate browser needed)
- Native messaging keeps the extension alive
Setup
1. Install dependencies
cd mcp-chrome-bridge
npm install
2. Start the relay
node relay.js
Or set it up as a systemd user service for persistence.
3. Load the Chrome extension
- Open Chrome →
chrome://extensions/ - Enable "Developer mode" (toggle top-right)
- Click "Load unpacked" → select the
extension/folder
4. Install native messaging host
./install.sh <your-extension-id>
The extension ID is shown in chrome://extensions/ after loading.
5. Configure your MCP client
Add to your MCP config:
{
"mcpServers": {
"chrome-bridge": {
"command": "node",
"args": ["/path/to/mcp-chrome-bridge/server.js"]
}
}
}
Tools
Browser (via Chrome extension relay)
| Tool | Description |
|---|---|
tabs_context |
List tabs in the agent window |
tabs_create |
Open a new tab |
tabs_close |
Close a tab |
navigate |
Navigate to a URL |
read_page |
Read visible text content |
get_page_text |
Get full page text |
click |
Click an element (CSS selector) |
form_input |
Fill a form field |
javascript |
Execute JS in a tab |
find |
Find elements by selector or text |
file_upload |
Upload a file to an input[type=file] |
screenshot |
Screenshot a tab |
screenshot_area |
Screenshot a specific region |
console_logs |
Read browser console messages |
network_logs |
Read network requests |
gif_start |
Start GIF recording |
gif_capture |
Capture a GIF frame |
gif_stop |
Stop recording, get frames |
Desktop (local, no relay needed)
| Tool | Description |
|---|---|
computer_mouse_move |
Move mouse cursor |
computer_click |
Click at coordinates |
computer_type |
Type text via keyboard |
computer_key |
Press key combo (e.g. ctrl+a) |
computer_screenshot |
Screenshot entire screen or region |
web_fetch |
Fetch a URL (server-side) |
web_search |
Search the web via DuckDuckGo |
System dependencies
- Node.js 18+
- xdotool — for desktop mouse/keyboard tools
- grim — for Wayland screen capture (optional, X11 fallback via extension)
Environment variables
| Variable | Default | Description |
|---|---|---|
RELAY_URL |
ws://127.0.0.1:9876 |
WebSocket relay address |
Troubleshooting
See TROUBLESHOOTING.md for common issues (relay timeouts, extension disconnects, shadow DOM, file uploads).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。