BrowserLemon
BrowserLemon 🍋
这是一个让 AI 通过 MCP 控制本地 Chrome 当前登录会话的开源浏览器桥接器。专注于 SNS 草稿撰写和用户批准后发布的流程。
早期 MVP:未经人工审查请勿发布到运营账号。网站 UI 变更可能导致 element ref 失效。
特性
MCP 标准输入输出(stdio)服务器
使用已登录的 Chrome 标签页:不将 Cookie 和密码复制到 MCP 服务器
页面摘要、标签页列表、导航、点击、输入
draft_social_post以及需要显式confirmed=true的publish_social_post仅限本地主机的 WebSocket 及发布域名 allowlist
MIT 许可证
Related MCP server: Tabryn
安装
npm install
npm run build在 Chrome 中打开 chrome://extensions → 开发者模式 → 加载已解压的扩展程序 → 选择此仓库的 extension 文件夹。
MCP 客户端配置示例:
{
"mcpServers": {
"browserlemon": {
"command": "node",
"args": ["/absolute/path/to/browserlemon/dist/index.js"]
}
}
}重启 MCP 客户端后,点击 Chrome 工具栏中的 BrowserLemon 图标。当徽章显示 ON 时,即表示已连接。
推荐工作流
通过
browser_status确认连接通过
list_tabs和read_page确认目标及 composer ref通过
draft_social_post输入内容用户在浏览器中审核内容
仅在用户明确批准时才调用
publish_social_post(confirmed=true)
安全模型
扩展程序以用户的浏览器权限运行,因此功能强大。请仅在受信任的本地 MCP 客户端中运行服务器。桥接器仅绑定到 127.0.0.1,密码输入值会从页面快照中排除。不过,页面正文可能包含个人信息,因此还需确认所连接 AI 服务的数据政策。
支持的发布域名:X/Twitter、LinkedIn、Facebook、Instagram、Threads、Bluesky、Mastodon.social。读取和草稿输入也可在普通 http(s) 页面进行。
贡献
欢迎提交 Bug 报告和 PR。接下来的优先级是 per-site adapter、图片上传、定时发布、审计日志、扩展程序权限细分。
Available Tools
8 toolsbrowser_statusA
Check whether the local Chrome extension is connected.
Inputs: no named parameters.
clickA
Click a visible element identified by the ref returned from read_page.
Inputs: ref (required), tabId.
draft_social_postB
Fill a social-media composer without publishing. Call read_page first and pass its composer ref.
Inputs: text (required), composerRef (required), tabId.
list_tabsA
List normal Chrome tabs. URLs are returned only to the local MCP client.
Inputs: no named parameters.
open_urlA
Open an http(s) URL in the active tab or a new tab.
Inputs: url (required), newTab.
publish_social_postC
Click a publish button on an allowlisted social site. Requires confirmed=true after the user has reviewed the draft.
Inputs: confirmed (required), publishButtonRef (required), tabId.
read_pageA
Read a compact accessibility-oriented snapshot of the active tab. Sensitive input values are omitted.
Inputs: tabId, maxChars.
type_textA
Type into a visible editable element. Existing text is replaced by default.
Inputs: ref (required), text (required), tabId, append.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a generally distinct purpose: status, tab listing, page reading, navigation, typing, clicking, and social composing/publishing. There is mild overlap between type_text and draft_social_post, and click could theoretically be used in place of publish_social_post, but the descriptions clarify the intended specialized use.
Most tools follow a verb_noun snake_case pattern (list_tabs, read_page, open_url, type_text, draft_social_post, publish_social_post), but browser_status is a noun phrase and click is a bare verb. The naming is readable and consistently lowercase, but the pattern is not uniform.
Eight tools is well-scoped for a browser automation assistant. Each tool has a clear role with no obvious filler or redundant duplicates, making the count appropriate for the server's purpose.
The set covers core browsing actions like open, read, type, click, plus a guarded social-posting workflow. However, it lacks standard browser controls such as switching or closing tabs, scrolling, refreshing, and waiting for page conditions, which are notable gaps for browser automation.
Maintenance
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Let AI agents work in your own signed-in Chrome, with approvals and verified results.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to control and interact with the user's real Chrome browser session, leveraging existing logins, cookies, and extensions for AI-driven automation.5MIT
- AlicenseNot gradedqualityCmaintenanceConnects AI agents to your Chrome browser via MCP, enabling real-time control of existing tabs, sessions, and application state for development workflows.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control your existing Chrome browser via MCP, using your logged-in sessions for automation on authenticated sites. Provides high-level browser tools plus raw CDP and Chrome API access.MIT
- AlicenseNot gradedqualityAmaintenanceEnables any MCP-compatible AI agent to drive your own Chrome browser with your existing login state, filling forms, clicking elements, fetching data, and handling captchas without API keys or re-authentication.335 npm610MIT