M

MCP浏览器服务

@williamvd4/browser-use-mcp-server
0 Stars 487 次浏览 williamvd4 更新于 2026-08-23

MCP服务器通过SSE传输方式使大型语言模型能够执行浏览器任务,允许像Cursor.ai和Claude这样的客户端通过自然语言命令打开网站并与网页内容互动。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "browser-use-mcp-server": {
      "url": "http://localhost:8000/sse"
    }
  }
}

该服务需要配置环境变量:CHROME_PATH、OPENAI_API_KEY

服务介绍

➡️ browser-use mcp server

browser-use MCP Server with SSE 传输

要求

  • uv
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
  • .env 文件需要以下内容:
OPENAI_API_KEY=[your api key]
CHROME_PATH=[only change this if you have a custom chrome build]
  • 我们将添加对其他 LLM 提供商的支持,以支持 browser-use(例如 claude, grok, bedrock 等)

在构建 Dockerfile 时,您可以添加自己的 VNC 服务器密码:

docker build --build-arg VNC_PASSWORD=klaatubaradanikto .

工具

  • SSE 传输
  • browser_use - 使用 URL 和操作启动浏览器任务
  • browser_get_result - 检索异步浏览器任务的结果

支持的客户端

  • cursor.ai
  • claude desktop
  • claude code
  • windsurf (windsurf 尚不支持 SSE)

使用方法

运行服务器后,将 http://localhost:8000/sse 添加到您的客户端 UI 或 mcp.json 文件中:

{
  "mcpServers": {
    "browser-use-mcp-server": {
      "url": "http://localhost:8000/sse"
    }
  }
}

cursor

  • ./.cursor/mcp.json

windsurf

  • ~/.codeium/windsurf/mcp_config.json

claude

  • ~/Library/Application Support/Claude/claude_desktop_config.json
  • %APPDATA%\Claude\claude_desktop_config.json

然后尝试向您的 LLM 提出以下请求:

打开 https://news.ycombinator.com 并返回排名最高的文章

帮助

对于问题或兴趣,请联系 https://cobrowser.xyz

星标

相关 MCP 服务