
MCP服务器+Chrome扩展,允许AI代理控制你真实的浏览器,并拥有现有会话和登录
概览
代理浏览器为代理提供一个新的浏览器。编码代理需要你的浏览器。 你已经打开的Chrome的MCP+Chrome扩展:Cookies、SSO、预设会话,以及你已经重现的那个bug。 每个人都在构建“代理浏览器”。大多数浏览器都给代理一个浏览器:无头Chromium、云虚拟机、干净且无Cookie的配置文件。 那不是编码循环的正确工具。 你发了修复。代理说“完成,请验证。”你已经在测试阶段打开了Chrome,超过SSO,出现在出问题的那个页面。代理写了代码。它可以在那里验证。只是它看不到那个浏览器。 是桥接器:本地MCP服务器加上基于localhost WebSocket的Chrome扩展。你的代理与MCP对话。你的真实Chrome会执行。会话会留在你的机器上。 这不是用新配置文件的Playwright。也不是托管代理浏览器。也不是绑定在默认Chrome配置文件上的CDP远程调试(Chrome 136+出于安全原因阻挡了该路径)。
概述(AI 翻译)
real-browser-mcp
代理浏览器为代理提供一个新的浏览器。编码代理需要你的浏览器。
你已经打开的Chrome的MCP + Chrome扩展: Cookie、单点登录、预设会话,还有你已经重现的那个bug。
每个人都在构建“代理浏览器”。大多数人给代理一个新浏览器:无头Chromium、云虚拟机、干净的配置文件且无Cookie。
那不是编码循环的正确工具。
你发一个修复。客服说“完成,请核实”。 你已经在那个出问题的页面上,Chrome已经在预设阶段、SSO之后打开了。 是代理写的代码。它可以在那里验证。只是它看不到那个浏览器。
real-browser-mcp 是桥接器:本地 MCP 服务器加上 localhost WebSocket 上的 Chrome 扩展。你的代理与 MCP 对话。你的真实 Chrome 执行。会话保持在你的机器上。
这不是用新配置文件的Playwright。也不是托管代理浏览器。也不是绑定在默认Chrome配置文件上的CDP远程调试(Chrome 136+出于安全原因阻挡了该路径)。
快速启动
分为两部分:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
real-browser-mcp
Agentic browsers give agents a new browser. Coding agents need yours.
MCP + Chrome extension for the Chrome you already have open: cookies, SSO, staging sessions, the bug you already reproduced.
Everyone is building “agentic browsers.” Most of them hand the agent a new browser: headless Chromium, a cloud VM, a clean profile with no cookies.
That is the wrong tool for the coding loop.
You ship a fix. The agent says “done, please verify.” You already have Chrome open on staging, past SSO, on the exact page that breaks. The agent wrote the code. It could verify it there. It just cannot see that browser.
安装
npx -y real-browser-mcp配置
{
"mcpServers": {
"real-browser": {
"command": "npx",
"args": ["-y", "real-browser-mcp"]
}
}
}