
MCP服务器配合浏览器扩展,使AI代理能够控制用户的浏览器。
概览
一个MCP服务器配合Firefox浏览器扩展,为AI助手提供标签管理、浏览历史和网页文本内容的访问权限。 MCP 服务器支持以下工具:- 打开或关闭标签页 - 获取已打开标签列表 - 创建带有名称和颜色的标签组 - 重新排序已打开标签页 - 阅读和搜索浏览器历史 - 阅读网页文本内容和链接(需用户同意) - 在浏览器标签页中查找并高亮文本(需用户同意) - “关闭浏览器中所有非工作相关的标签页。”- “将浏览器中所有与开发相关的标签页归为一个名为'开发'的新组。”- “按合理的顺序重新排列浏览器中的标签页。” - “关闭过去24小时内未访问的所有浏览器标签页” - “帮我在浏览历史中找到关于新西兰米尔福德赛道的条目。”- “打开我上周访问过的所有关于人工智能的条目,最多10篇,避免重复。
概述(AI 翻译)
一个MCP服务器配合Firefox浏览器扩展,为AI助手提供标签管理、浏览历史和网页文本内容的访问权限。
特色
MCP 服务器支持以下工具:
- 开启或关闭标签页
- 获取已打开标签列表
- 创建带有名称和颜色的标签组
- 重新排序已打开标签页
- 阅读并搜索浏览器历史
- 阅读网页的文本内容和链接(需用户同意)
- 在浏览器标签页中查找并高亮文本(需用户同意)
- 截取标签页可见区域的截图(每个标签页需用户同意)
用例示例:
标签管理
- “关闭浏览器中所有非工作相关的标签页。”
- “浏览器中所有与开发相关的标签页都归入一个名为’开发’的新组。”
- “在浏览器中按合理的顺序重新排列标签页。”
- “关闭浏览器中过去24小时内未访问的所有标签页”
浏览器历史搜索
- “帮我在浏览历史中找到关于新西兰米尔福德赛道的文章。”
- “打开我上周访问过的所有关于人工智能的条目,最多10篇,避免重复。”
浏览与研究
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Browser Control MCP
An MCP server paired with a Firefox browser extension that provides AI assistants with access to tab management, browsing history, and webpage text content.
Features
The MCP server supports the following tools:
- Open or close tabs
- Get the list of opened tabs
- Create tab groups with name and color
- Reorder opened tabs
- Read and search the browser’s history
- Read a webpage’s text content and links (requires user consent)
- Find and highlight text in a browser tab (requires user consent)
- Capture a screenshot of a tab’s visible area (requires user consent per tab)
Example use-cases:
Tab management
- “Close all non-work-related tabs in my browser.”
- “Group all development related tabs in my browser into a new group called ‘Development’.”
- “Rearrange tabs in my browser in an order that makes sense.”
- “Close all tabs in my browser that haven’t been accessed within the past 24 hours”
Browser history search
- “Help me find an article in my browser history about the Milford track in NZ.”
- “Open all the articles about AI that I visited during the last week, up to 10 articles, avoid duplications.”
Browsing and research
- “Open hackernews in my browser, then open the top story, read it, also read the comments. Do the comments agree with the story?”
- “In my browser, use Google Scholar to search for papers about L-theanine in the last 3 years. Open the 3 most cited papers. Read them and summarize them for me.”
- “Use Google search in my browser to look for flower shops. Open the 10 most relevant results. Show me a table of each flower shop with location and opening hours.”
Comparison to web automation MCP servers
The MCP server and Firefox extension combo is designed to be more secure than web automation MCP servers, enabling safer use with the user’s personal browser.
- It does not support web page modification, page interactions, or arbitrary scripting.
- Reading webpage content requires the user’s explicit consent in the browser for each domain. This is enforced at the extension’s manifest level.
- Screenshots require the user to authorize each individual tab by clicking the extension’s toolbar button. The extension relies on the
activeTabpermission for this, so the authorization is enforced by Firefox itself and expires when the tab navigates or closes. The extension never requests broad host permissions for screenshots. - It uses a local-only connection with a shared secret between the MCP server and extension.
- No remote data collection or tracking.
- It provides an extension-side audit log for tool calls and tool enable/disable configuration.
- The extension includes no runtime third-party dependencies.
安装
docker run --rm -i -p 127.0.0.1:8089:8089 -e EXTENSION_SECRET=<secret_from_extension> -e CONTAINERIZED=true browser-control-mcp配置
{
"mcpServers": {
"browser-control": {
"command": "node",
"args": [
"/path/to/repo/mcp-server/dist/server.js"
],
"env": {
"EXTENSION_SECRET": "<secret_on_firefox_extension_options_page>",
"EXTENSION_PORT": "8089"
}
}
}
}