➡️ 浏览器使用 mcp 服务器
浏览器使用带有 SSE 传输的 MCP 服务器
要求
curl -LsSf https://astral.sh/uv/install.sh | sh
快速入门
uv sync
uv pip install playwright
uv run playwright install --with-deps --no-shell chromium
uv run server --port 8000
OPENAI_API_KEY=[your api key]
CHROME_PATH=[only change this if you have a custom chrome build]
- 我们将增加对其他 LLM 提供商的支持以支持浏览器使用(claude、grok、bedrock 等)
在构建 dockerfile 时,您可以添加自己的 VNC 服务器密码:
docker build --build-arg VNC_PASSWORD=klaatubaradanikto .
工具
- [x] SSE 传输
- [x] browser_use - 使用 URL 和操作启动浏览器任务
- [x] browser_get_result - 检索异步浏览器任务的结果
支持的客户机
- 光标.ai
- 克劳德桌面
- 克劳德代码
- windsurf( windsurf尚不支持 SSE)
用法
运行服务器后,将http://localhost:8000/sse添加到客户端 UI 或 mcp.json 文件中:
{
"mcpServers": {
"browser-use-mcp-server": {
"url": "http://localhost:8000/sse"
}
}
}
光标
风帆冲浪
~/.codeium/windsurf/mcp_config.json
克劳德
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
然后尝试向你的法学硕士询问以下问题:
open https://news.ycombinator.com and return the top ranked article
帮助
如有问题或感兴趣请联系@ https://cobrowser.xyz
星星