浏览器控制 MCP 服务

Browser Control MCP Server 是一个浏览器控制服务,通过 MCP 协议提供页面导航、元素交互、内容提取和 JavaScript 执行能力,适用于受控浏览器自动化与 AI 上下文获取场景。

  • by SkredX
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 SkredX/Browser-control---MCP-server

使用说明

Browser Control MCP Server

A Playwright-powered Model Context Protocol server for controlled browser navigation, interaction, and Markdown content extraction.

Features

  • Reusable Chromium context managed for the MCP server lifetime
  • Navigation, history controls, clicking, typing, hovering, and drag-and-drop
  • Clean HTML-to-Markdown extraction for efficient LLM context
  • Optional playwright-stealth integration
  • MCP stdio transport for Claude Desktop, Cursor, and MCP Inspector

Install

Requires Python 3.10+.

uv sync
uv run playwright install chromium

Or with pip:

pip install -r requirements.txt
playwright install chromium

Run

uv run main.py

The original launcher remains available:

uv run browser_control.py

For MCP Inspector:

mcp dev main.py

Available tools

navigate, extract_content, click_element, type_text, hover_element, drag_element, go_back, go_forward, and execute_javascript.

Use only with sites and accounts you are authorized to automate. JavaScript evaluation is intentionally powerful; only pass trusted scripts.