浏览器控制 MCP
MCP 服务器与浏览器扩展配对,使 LLM 客户端(例如 Claude Desktop)能够控制用户的本地浏览器(Firefox)。
特征
MCP 服务器支持以下工具:
- 打开或关闭标签页
- 获取已打开的标签页列表
- 重新排序打开的标签页
- 阅读和搜索浏览器的历史记录
- 阅读网页文本内容和链接
- 在浏览器选项卡中查找并突出显示文本
此外,浏览器中打开的每个选项卡的内容都可以作为 MCP 资源使用,从而允许用户在 MCP 客户端本身(例如 Claude)中选择浏览器选项卡并将其内容加载到上下文中。
用例示例:
标签管理
- “关闭浏览器中所有与工作无关的标签。”
- “按照合理的顺序重新排列浏览器中的标签页。”
- “关闭浏览器中过去 24 小时内未访问过的所有标签页”
浏览器历史记录搜索
- “帮我在浏览器历史记录中查找一篇关于新西兰米尔福德步道的文章。”
- “打开我上周访问过的所有关于AI的文章,最多10篇,避免重复。”
浏览和研究
- “在我的浏览器中打开 hackernews,然后打开头条新闻,阅读它,也阅读评论。评论是否同意该报道?”
- “在我的浏览器中,使用谷歌学术搜索过去三年内关于L-茶氨酸的论文。打开引用次数最多的三篇论文。阅读它们并总结一下。”
- “在我的浏览器中使用谷歌搜索查找花店。打开 10 个最相关的结果。向我显示每家花店的表格,其中包含位置和营业时间。”
安装
克隆此存储库,然后在主存储库目录中运行以下命令来构建 MCP 服务器和浏览器扩展。
最后的npm run build
命令还将在 MCP 服务器和扩展之间生成共享密钥。
与 Claude Desktop 一起使用:
将以下配置添加到claude_desktop_config.json
(使用 Claude Desktop Developer 设置中的编辑配置按钮):
将<path to repo>
替换为正确的路径。
确保重新启动 Claude Desktop。
与 Firefox 一起使用
browser-control-mcp 扩展是为 Firefox 开发的。
要安装扩展:
- 在 Firefox URL 栏中输入
about:debugging
- 点击“此 Firefox”
- 点击“加载临时附加组件...”
- 选择本项目中
firefox-extension
文件夹下的manifest.json
文件
如果您不想在个人 Firefox 浏览器上运行扩展程序,另一种方法是下载单独的 Firefox 实例(例如 Firefox 开发者版,可从https://www.mozilla.org/en-US/firefox/developer/获得)。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
MCP 服务器与 Firefox 扩展配对,使 LLM 客户端能够控制用户的浏览器,支持标签管理、历史记录搜索和内容阅读。
Related MCP Servers
- -securityAlicense-qualityAn MCP server that connects any MCP client (like Claude or Cursor) with the browser using browser-use, allowing clients to utilize existing LLMs without requiring additional API keys.Last updated -32PythonApache 2.0
- -securityAlicense-qualityA MCP server that provides browser automation tools, allowing users to navigate websites, take screenshots, click elements, fill forms, and execute JavaScript through Playwright.Last updated -PythonApache 2.0
- -securityFlicense-qualityMCP server enabling LLMs to perform browser tasks via SSE transport, allowing clients like Cursor.ai and Claude to open websites and interact with web content through natural language commands.Last updated -
- -securityFlicense-qualityAn MCP server that enables LLMs to search YouTube, retrieve video information, and access video transcripts through standardized tools.Last updated -TypeScript