browser-bridge
Browser Bridge
AI ↔ 浏览器控制桥:把浏览器变成 MCP 工具集。任何 MCP 客户端(AI 程序)通过标准 MCP 协议调用 browser_snapshot / browser_click / browser_type 等工具,在真实浏览器里操作网页。
支持任意 MCP 客户端:Claude、codex、自定义 agent、curl
默认跟随模式:AI 自动控制你当前激活的标签页,零配置
真实浏览器,非 headless:登录态、验证码(提示你手动)、反爬特征自然
快速开始
1. 下载
从 Releases 下载一个压缩包:
browser-bridge-<platform>-<arch>.zip— 按你机器的平台选
解压到任意目录(下文用 <DIR> 表示),目录内含 browser-bridge/(扩展)、browser-bridge-host、install-host.sh(Windows 为 install-host.ps1)。
2. 加载扩展
打开
chrome://extensions右上角打开开发者模式
点「加载已解压的扩展程序」,选择解压后的
browser-bridge/目录
3. 安装 host
macOS / Linux:
cd <DIR>
./install-host.sh # Windows(PowerShell): .\install-host.ps1运行后会列出检测到的浏览器,回车安装到全部,或输入序号选特定浏览器;也支持参数直接指定:
./install-host.sh --all # 安装到全部浏览器
./install-host.sh --chrome # 只装 Chrome(--chromium / --edge 同理)扩展 ID 已内置固定,无需手动填写;若你的扩展 ID 不同,可追加传参:./install-host.sh <你的扩展ID>。
若浏览器已打开,安装后请完全退出并重启浏览器。
4. 使用
任意 MCP 客户端连接:
MCP server: http://127.0.0.1:1234/mcp端口被占时自动 +1,实际端口看扩展 popup(已连接 · MCP端口 xxxx)或 ~/.browser-bridge/port。
codex 配置示例(~/.codex/config.toml):
[mcp_servers.browser]
url = "http://127.0.0.1:1234/mcp"之后告诉 AI「帮我看看这个页面…」即可。
Related MCP server: BrowserPilot
MCP 工具
工具 | 参数 | 说明 |
| — | 查询控制目标与连接状态 |
| — | 列出所有标签页 |
|
| 固定/切换控制目标 |
|
| 新建标签页并立即跳转(缺省空白页) |
|
| 关闭标签页(缺省关受控页,自动回跟随) |
|
| 激活标签页给用户看,不改控制目标 |
|
| 复制标签页(缺省复制受控页) |
|
| 固定/取消固定标签页 |
| — | 可交互元素快照(ref 编号+坐标) |
| — | 可视区截图(dataUrl,视觉理解复杂布局) |
| — | 查询当前控制页 URL 与标题(轻量) |
|
| 点击 |
|
| 双击 |
|
| 输入(兼容 React 受控输入) |
|
| 批量填写多个字段 |
|
| 按键(支持 ctrl/shift/alt/meta) |
|
| 下拉框 |
|
| 滚动 |
|
| 悬停 |
|
| 高亮元素 1s(用户可见 AI 操作位置) |
|
| HTML5 拖拽 |
|
| 导航 |
|
| 等待页面稳定 |
AI 自行编排:snapshot → 决策 → 操作 → 再 snapshot,直到任务完成。
控制模式
跟随模式(默认):控制你当前激活的标签页,切 tab 即切目标
固定模式:锁定某个标签页(切换不跟随);popup 一键固定/取消,或 AI 调
browser_use_tab
工具栏图标徽标:无 = 跟随中;AI 琥珀 = 已固定;! 红 = 连接异常。
架构
任意 MCP 客户端
│ MCP (Streamable HTTP, 127.0.0.1:1234/mcp)
browser-bridge host(单进程 = MCP ↔ 帧协议翻译器)
│ native messaging(stdin/stdout 帧)
Chrome 扩展
├─ background:转发、目标解析、保活、状态徽标
└─ content script:快照 / 执行MV3 扩展无法监听端口,native host 是唯一通道(Chrome 官方 DevTools MCP 同构)。
从源码构建(开发者)
需要 bun:
bun install
bun run build # 当前平台 host + 扩展
./scripts/install-host.sh # 注册 host(默认内置扩展 ID)
bun run scripts/build.ts --all # 交叉编译全部平台 + 发布包(发布用)
bun test # 单元 + MCP API 集成测试(无需浏览器)配置
BROWSER_BRIDGE_PORT:MCP 初始端口(默认 1234,被占自动 +1)BROWSER_BRIDGE_MOCK=1:模拟扩展应答(开发测试用)
故障排查
现象 | 原因 | 解决 |
popup 显示「host 未连接」 | 未安装 host / 浏览器未重启 | 运行 install-host,完全退出浏览器重开 |
| host 名含连字符(旧版本) | 更新到新版(host 名 |
扩展 ID 不匹配 | 用旧版 manifest 加载 | 重新下载扩展,或 install-host 传参 |
MCP 连不上 | host 未运行 | 先打开浏览器+扩展(host 由 Chrome 拉起) |
目标标签页不可达 | 页面未就绪/不是 http(s) | 等页面加载,或用 |
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables controlling a real Chrome browser from MCP hosts like Claude, with extension-based or CDP fallback, supporting tabs, navigation, interaction, and page reading tools.332655MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI to control browsers via natural language for web automation, testing, and data scraping. Supports Chrome-based browsers and integrates with any MCP-compatible AI tool.2
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser for web automation tasks such as navigation, typing, clicking, and taking screenshots.
- FlicenseNot gradedqualityCmaintenanceEnables browser automation through the MCP protocol, allowing AI agents to control a real browser using accessibility snapshots and natural language commands.
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Stealth web browser for agents: search, fetch, click and type through persistent sessions over MCP.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
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/weaming/mcp-browser-bridge-extension'
If you have feedback or need assistance with the MCP directory API, please join our Discord server