byob
byob
Bring Your Own Browser (自带浏览器) — 让你的 AI 助手使用你已经打开的 Chrome。
English · 中文
我可以用它做什么?
你可以让 Claude(或 Cursor / Cline)在网页上执行操作。byob 会在你真实的 Chrome 中实现这些操作——也就是你已经登录了 Twitter、GitHub、Gmail、工作工具等所有内容的那个浏览器。
人们经常提出的需求:
“阅读我的 Twitter 时间线并告诉我前 5 条推文”
byob 会打开一个标签页,滚动浏览,并将文本返回给你。因为它就是你真实的浏览器,所以你的推文会显示出来——没有虚假账号,无需复制粘贴 Cookie,也没有验证码。
“谷歌搜索 'mcp protocol spec',点击第一个结果,并阅读该页面”
byob 会跳转到 google.com,输入你的搜索内容,按下回车,等待结果,点击第一个链接,然后阅读它。所有操作都在一个提示词中完成。
“给我我的 GitHub 会话 Cookie,这样我就可以在脚本中使用 curl”
byob 会把 Cookie 交给你。现在 curl https://github.com/... 的运行效果就像你已经登录了一样。
“给 example.com 截个图”
byob 会将 PNG 保存到磁盘并告诉 Claude 它在哪里。(不会将 base64 转储到 Claude 的上下文中——那会消耗掉你的 Token。)
“打开我的 Gmail 标签页并告诉我还有多少未读邮件”
云端无头浏览器无法查看你的 Gmail,因为它们没有登录。而 byob 可以——因为它就是你的浏览器。
Related MCP server: agent-browser-mcp
为什么不直接使用 WebFetch 或 Puppeteer?
WebFetch | 无头 Puppeteer | byob | |
查看需要登录的页面 | ❌ | ⚠️ 必须手动复制 Cookie | ✅ 已登录 |
绕过“你是机器人吗?”检查 | ❌ | ❌ | ✅ 它确实是人类的浏览器 |
设置时间 | 0 | 数小时 | 5 分钟 |
云端费用 | 无 | 有 | 无 |
5 分钟安装
git clone https://github.com/<you>/byob ~/code/byob
cd ~/code/byob && bun install
# one command does everything: makes a key, builds the extension,
# tells Chrome about it
( cd packages/bridge && bun run dev:cli install --dev )
# load the extension in Chrome:
# chrome://extensions → Developer mode → Load unpacked
# pick: packages/extension/.output/chrome-mv3
# then fully quit Chrome (⌘Q) and open it again
# check it works
( cd packages/bridge && bun run dev:cli doctor )
# four green ✓ means you're good
# tell Claude Code about byob
claude mcp add byob -s user -- /Users/$USER/code/byob/packages/mcp-server/node_modules/.bin/tsx /Users/$USER/code/byob/packages/mcp-server/bin/byob-mcp.ts打开一个新的 Claude Code 会话并说 “use byob to ...”。
byob 可以做的 10 件事
工具 | 功能 |
📖 | 打开页面,滚动浏览,阅读所有内容 |
📸 | 截屏并保存到磁盘 |
🖱️ | 点击按钮或链接 |
⌨️ | 在文本框中输入(如果需要,还可以按下回车) |
🍪 | 获取网站的 Cookie,以便稍后可以使用 |
🚀 | 在新标签页或现有标签页中跳转到 URL |
⏳ | 等待页面上出现特定内容 |
🗂️ | 显示我所有打开的标签页 |
🎯 | 切换到特定标签页 |
⚡ | 在页面上运行任何 JavaScript(默认关闭——请参阅安全性) |
完整的输入/输出结构:shared/src/schemas.ts。
它实际上是如何工作的
Claude Code ─→ byob-mcp ─→ byob-bridge ─→ Chrome extension ─→ your Chrome tab四个跳转,全部在你的笔记本电脑上完成。没有任何东西离开你的机器。关闭 Chrome,一切都会退出——没有后台进程残留。
关于安全性的须知
🔒
browser_eval(运行 JS)默认关闭 — 即使 Claude 也看不到它的存在。通过在注册 MCP 时设置BYOB_ALLOW_EVAL=1来开启它。开启后,每次调用都会被记录并弹出 Chrome 通知。🚫 某些网站默认被阻止 —
chrome://、file://、你的 Google/Microsoft/Apple 登录页面。因此 Claude 不会意外读取你的密码管理器或/etc/passwd。🔑 你拥有自己的扩展密钥 — 安装时,byob 会为你生成一个专属密钥。两个运行 byob 的人会得到两个不同的扩展 ID,互不冲突。
📁 文件是私有的 — 套接字权限为
0600,文件夹权限为0700。你电脑上的其他用户无法读取它们。📡 byob 从不向外发送数据 — 没有分析,没有自动更新 ping,没有崩溃报告。零出站流量。
⚠️ Chrome 会在页面顶部显示“byob 正在调试此标签页”。无法隐藏它 — 这是 Chrome 的安全机制,不是 byob 的 bug。每个使用 Chrome 调试器的工具都有相同的横幅。
日常命令
byob install # set everything up (or fix it after Chrome breaks)
byob doctor # check what's working and what's not
byob bridges # show me the running bridges
byob logs [-f] # tail the log
byob uninstall # nuke the launcher and manifests想了解更多?
你看到的错误 | 可能的原因 |
| Chrome 未打开,或者 byob 扩展已禁用。检查 |
| 该标签页已打开开发者工具 (F12)。请关闭它。 |
普通 URL 出现 | 该 URL 在默认黑名单中(请参阅安全性)。请使用其他标签页。 |
| 在 |
刚安装但无法使用 | 完全退出 Chrome (⌘Q) 并重新打开。Chrome 仅在启动时检查 byob 桥接。 |
仍然卡住?运行 byob doctor — 它会告诉你具体哪一步出了问题。
MIT 许可。byob 对你的浏览器拥有很高的访问权限——请仅在你拥有的机器和账户上运行它。
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
AI-powered web automation. Navigate websites using AI agents for one page or a thousand
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to control and automate your Chrome browser directly, leveraging existing login states and configurations for tasks like content analysis, semantic search across tabs, screenshots, network monitoring, and interactive operations.12MIT
- AlicenseBqualityFmaintenanceEnables AI agents to directly control your real Chrome browser with full context including login sessions, cookies, and open tabs. It provides tools for page scanning, JavaScript execution, CDP control, screenshots, and physical mouse/keyboard input for authentic browser automation.20245MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control a Chrome browser through natural language, supporting navigation, interaction, tab management, and data extraction.MIT

Wbrowserofficial
AlicenseNot gradedqualityAmaintenanceEnables AI assistants and terminals to control a user's already logged-in Chrome session, allowing them to navigate pages, read content, click and type, run JavaScript, and inspect console or network activity.30MIT