浏览器-mcp
浏览器扩展和 MCP 服务器允许您与正在使用的浏览器进行交互。
用法
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@djyde/mcp-browser@latest"
]
}
}
}
工具
所有可用的工具都列在server/src/tools.ts
中。
get_current_page_markdown
从当前浏览器浏览页面获取markdown。
例子:
Summarize the current page.
append_style
为当前浏览器浏览页面附加一个css样式。
例子:
Change the current page to dark mode.
history_search
搜索浏览器历史记录。
例子:
Search the browser history for "github".
路线图
[ ] 将扩展发布到扩展商店。
[ ] 编写文档。
[ ] 添加更多工具。
建造
pnpm i
扩大
cd extension
# chrome
npm run build
# edge
npm run build:edge
# firefox
npm run build:firefox
构建后,扩展将位于extension/.output
目录中。
服务器
cd server
# dev
npm run dev
# build
npm run build
server/dist/cli.js
是 MCP 服务器入口。
贡献
添加新工具
将工具模式添加到
server/src/tools.ts
中的tools
数组中。在
extension/calls.ts
中添加扩展可调用处理程序。在
server/src/tools.ts
中添加一个工具处理程序。使用call
函数调用扩展处理程序。
执照
AGPL-3.0-或更高版本
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 服务器,允许 AI 助手与浏览器交互,包括获取页面内容为 markdown、修改页面样式和搜索浏览器历史记录。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.Last updated -252Apache 2.0
- -securityFlicense-qualityMCP server that enables AI assistants to perform SEO automation tasks including keyword research, SERP analysis, and competitor analysis through Google Ads API integration.Last updated -1
- -securityAlicense-qualityAn MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.Last updated -749MIT License
- AsecurityFlicenseAqualityAn MCP server that provides AI assistants with powerful tools to interact with YouTube, including video searching, transcript extraction, comment retrieval, and more.Last updated -820