
浏览器MCP是一个模型上下文提供者(MCP)服务器,允许AI应用控制你的浏览器
概览
用AI自动化你的浏览器。网站 • 文档 Browser MCP 是一个 MCP 服务器 + Chrome 扩展,允许你使用 VS Code、Claude、Cursor 和 Windsurf 等 AI 应用自动化浏览器。 - ⚡ 快速:自动化在本地完成,性能更好且无网络延迟。- 🔒 私密:由于自动化在本地进行,浏览器活动会留在设备上,不会发送到远程服务器。- 👤 登录:使用您现有的浏览器配置文件,保持您登录所有服务。- 🥷🏼 隐蔽:通过使用真实浏览器指纹,避免基本的机器人检测和验证码。 该仓库包含了浏览器 MCP 的所有核心 MCP 代码,但由于依赖开发地 monorepo 的实用程序和类型,目前还无法单独构建。 浏览器MCP是从Playwright MCP服务器改编而来的,目的是自动化用户的浏览器,而不是创建新的浏览器实例。
概述(AI 翻译)
浏览器MCP
用AI自动化你的浏览器。
网站 • 文档
关于
Browser MCP 是一个 MCP 服务器 + Chrome 扩展,允许你使用 VS Code、Claude、Cursor 和 Windsurf 等 AI 应用自动化浏览器。
特色
- ⚡ 快速:自动化在本地机器上进行,从而在无网络延迟的情况下获得更好的性能。
- 🔒 私密:由于自动化在本地进行,浏览器活动会留在设备上,不会发送到远程服务器。
- 👤 登录:使用您现有的浏览器配置文件,保持您登录所有服务。
- 🥷🏼 隐匿:通过使用真实浏览器指纹,避免基本的机器人检测和验证码。
贡献
该仓库包含了浏览器 MCP 的所有核心 MCP 代码,但由于依赖开发地 monorepo 的实用程序和类型,目前还无法单独构建。
制作人员
浏览器MCP是从Playwright MCP服务器改编而来的,目的是自动化用户的浏览器,而不是创建新的浏览器实例。这使得用户可以利用现有的浏览器配置文件使用已登录的会话,并避免通常阻止自动浏览器使用的机器人检测机制。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Browser MCP
Browser MCP lets AI apps (Claude Code, Cursor, VS Code, Codex, Claude Desktop…) use your own Chrome: your signed-in sites, your profile, in tabs of their own. Everything runs on your computer.
- Website and docs: browsermcp.io, docs
- Extension: Chrome Web Store, or build it yourself
- MCP server:
@browsermcp/mcpon npm
How it works
Each AI app runs the MCP server (npx @browsermcp/mcp@latest), a small process that starts one daemon per user and forwards the app’s browser tool calls to it. The daemon drives the browser’s tabs with Playwright, through the extension: a thin chrome.debugger relay that only talks to the daemon on 127.0.0.1, and only after you click Allow in its popup once per computer, having checked that its six-digit code matches the one your AI app shows. The extension enforces its own rules whatever the daemon asks: no incognito tabs unless you turned on Allow in Incognito for the extension in Chrome, no browser or extension pages, and nothing while you’ve pressed Stop.
| Folder | Package | |
|---|---|---|
packages/mcp |
@browsermcp/mcp |
The MCP server and the daemon (README) |
packages/protocol |
@browsermcp/protocol |
The protocol between the extension and the daemon, including pairing |
packages/extension-core |
@browsermcp/extension-core |
The extension’s browser control: the connection, pairing, the debugger relay, the rules about tabs, tab groups, the badge |
apps/extension |
@browsermcp/extension |
The extension built from this repo: browser control and its popup |
Build it yourself
You need Node.js 24 or later, pnpm (corepack enable) and Chrome or another Chromium browser (Edge, Brave, Arc…). Firefox has no debugger API, so Browser MCP doesn’t work there.
-
Build the extension and the server:
git clone https://github.com/BrowserMCP/mcp.git browsermcp cd browsermcp pnpm install pnpm build
安装
npx @browsermcp/mcp@latest` (the docs' setup) works with this extension too: it's the same server, published from this repo.配置
{
"mcpServers": {
"browsermcp": {
"command": "node",
"args": ["/path/to/browsermcp/packages/mcp/dist/index.js"]
}
}
}