kontext-security/browser-use-mcp-server
A Python MCP server for agent-driven browsing with Playwright
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This Python service exposes browser-use through MCP so a client can delegate a browser task without embedding an agent or browser driver. At the component level, the path is MCP client → server → browser-use → Playwright-controlled browser. The API-backed model path uses langchain-openai and is configured through OPENAI_API_KEY.
The dependency manifest includes mcp, Starlette, and Uvicorn alongside the browser and model libraries. For SSE, clients connect to /sse on a running server. For stdio, the client starts the CLI and the setup requires mcp-proxy; the launch arguments still include both a server port and a proxy port. The integration boundary is MCP, while the server side runs the browser and handles model access.
Key Capabilities & Differentiators
The service suits tasks in which an agent needs to navigate a page and return a result, such as opening Hacker News and identifying the top-ranked article. Browser operations can execute asynchronously. PATIENT=false is the example setting; PATIENT=true makes API calls wait for task completion. This setting controls waiting behavior, not guaranteed task duration or concurrency capacity.
VNC provides a live view of the browser, with noVNC available as a browser-based viewer. Client configuration examples cover Cursor, Windsurf, and Claude Desktop on macOS and Windows. The model configuration exposed here is an OpenAI API key; no specific model ID, local inference backend, or alternate provider is established. Browser setup uses Playwright Chromium or an optional CHROME_PATH.
Trade-offs & Limitations
Compared with direct Playwright, the MCP agent layer accepts higher-level goals without requiring a scripted sequence for each task, but model decisions make execution less predictable than explicit selectors and assertions. Compared with embedding browser-use directly, the server gives multiple MCP clients a common integration surface at the cost of an additional service or proxy to configure and troubleshoot.
Self-hosting the browser does not make the OpenAI API path offline. Budget for external API calls and network latency as well as host CPU and RAM for Chromium; measure with representative pages and concurrency. VNC helps diagnose what the browser is doing but adds another listener and a credential to manage. Before shared deployment, verify how MCP access, browser sessions, and concurrency are isolated; the listed transports and Docker packaging do not establish those guarantees.
Hardware & Deployment Guide
The package requires Python >=3.11,<4.0. For a source deployment, sync dependencies with uv, install Playwright Chromium and its system dependencies using uv run playwright install --with-deps --no-shell chromium, and start SSE with uv run server --port 8000. For stdio, build the wheel with uv build, install it with uv tool install, and install mcp-proxy separately. Supply OPENAI_API_KEY at runtime.
The multi-stage Docker build uses a uv Bookworm builder, Python 3.13, and frozen dependency synchronization, then switches to Debian Bookworm Slim. Port 8000 serves MCP; publish 5900 only if VNC is needed. Replace the default VNC password using the read-only secret mount at /run/secrets/vnc_password, and keep both listeners on trusted interfaces. Releases v1.0.2 and v1.0.3 on April 15, 2025 focus on CI, release workflows, and upload robustness; they do not establish new runtime capabilities.
browser-use handles agent-driven tasks over Playwright; the model integration uses langchain-openai./sse on port 8000 or launch the stdio CLI with mcp-proxy and a separate proxy port.PATIENT=true available to make API calls wait for completion./run/secrets/vnc_password.>=3.11,<4.0, a uv wheel workflow, and a Docker build that uses Python 3.13 and uv sync --frozen.CHROME_PATH.Teams that want an MCP client to delegate exploratory browsing or lightweight page tasks, with a self-hosted browser and optional live viewing.
You need deterministic regression tests, fully offline inference, or verified multi-tenant isolation out of the box.
Quick Start & Installation
# Install prerequisites curl -LsSf https://astral.sh/uv/install.sh | sh uv tool install mcp-proxy uv tool update-shell
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| browser-use-mcp-server ★ | 849 | — | Python | MIT | A Python MCP server for agent-driven browsing with Playwright |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| agent-browser | 55.4k | +1k | Rust | Apache-2.0 | Rust CLI and stdio MCP for agents that read and act on live web pages |
| agents | 43.2k | +212 | Python | MIT | One Markdown plugin catalog adapted to seven AI coding tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/kontext-security/browser-use-mcp-server.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about browser-use-mcp-server
What changes when I switch from SSE to stdio?
http://localhost:8000/sse. With stdio, the client launches the installed CLI using run server --port 8000 --stdio --proxy-port 9000. The stdio setup requires mcp-proxy and still uses local ports, so check for conflicts before running multiple instances.Does self-hosting require a GPU, and what should I size for?
Can I self-host this commercially and keep all processing on-premises?
When should I use this instead of browser-use or Playwright directly?
browser-use directly when your Python application needs to own agent configuration and lifecycle. Use Playwright directly when selectors, assertions, and reproducible steps matter more than adapting to a page at runtime.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy