
notoriouslab/browser-mcp-lite 是从 https://github.com/notoriouslab/browser-mcp-lite. 导入的 MCP 服务器候选
概览
notoriouslab/browser-mcp-lite 是从 https://github.com/notoriouslab/browser-mcp-lite. 导入的 MCP 服务器候选
概述(AI 翻译)
繁體中文 |英语
让你的AI助手看到真实浏览器——用~500行代码。
一个简约的、认证安全的MCP服务器,允许AI助手在你实际的Chrome浏览器中阅读页面、截图并运行脚本——同时保持你现有的登录会话。
为什么要自己建?
现有的浏览器MCP解决方案包括:
- 太重 — mcp-chrome需要
debugger、history、权限,无法审计的压缩代码 - 仅无头模式 — Playwright MCP启动新浏览器,无法看到你已登录的会话
- 依赖云端 — 浏览器基础等会通过第三方服务器路由你的页面
Browser-MCP-Lite 采取了不同的方法:
| MCP-Chrome | 剧作家 MCP | 浏览器-MCP-lite | |
|---|---|---|---|
| 读取你的真实浏览器 | 是的 | 不(无头) | 是的 |
| MCP端点的认证 | 否 | 否 | 令牌认证 |
| 扩展权限 | 8+ | 不适用 | 5(最小) |
| 你可以审计的代码 | 精简 | 是的 | ~500行 |
| 登录会话 | 是的 | 不是 | 是的 |
它的作用
四种工具,通过标准MCP协议展示:
| 工具 | 说明 | 退货 |
|---|
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
browser-mcp-lite
繁體中文 | English
Give your AI assistant eyes into your real browser — in ~500 lines of code.
A minimal, auth-secured MCP server that lets AI assistants read pages, take screenshots, and run scripts in your actual Chrome browser — with your existing login sessions intact.
AI Assistant ──HTTP POST──▶ MCP Server (:12307) ──WebSocket──▶ Chrome Extension ──▶ DOM
(token auth) (ws://) (minimal permissions)
Why build your own?
Existing browser MCP solutions are either:
- Too heavy — mcp-chrome requires
debugger,history, `` permissions, ships minified code you can’t audit - Headless only — Playwright MCP launches a new browser, can’t see your logged-in sessions
- Cloud-dependent — Browserbase, etc. route your pages through third-party servers
browser-mcp-lite takes a different approach:
| mcp-chrome | Playwright MCP | browser-mcp-lite | |
|---|---|---|---|
| Reads your real browser | Yes | No (headless) | Yes |
| Auth on MCP endpoint | No | No | Token auth |
| Extension permissions | 8+ | N/A | 5 (minimal) |
| Code you can audit | Minified | Yes | ~500 lines |
| Login sessions | Yes | No | Yes |
What it does
Four tools, exposed via standard MCP protocol:
| Tool | Description | Returns |
|---|---|---|
list_tabs |
List all open tabs | [{id, url, title, active}] |
read_page |
Read page as accessibility tree | Structured text (token-efficient) |
screenshot |
Capture visible area | Base64 PNG image |
inject_script |
Run custom JS in a tab | Script return value |
Quick start
1. Install and start the server
Option A — npx (no clone needed):
npx browser-mcp-lite
Option B — clone:
安装
npx browser-mcp-lite配置
{
"mcpServers": {
"browser": {
"type": "http",
"url": "http://127.0.0.1:12307/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}