browser-mcp-server
Full browser control for any LLM agent via the Model Context Protocol (MCP).
Powered by browser-use — a persistent, Playwright-backed browser session that your agent controls step-by-step.
✨ Key Feature: Zero State Calls
Every action that changes the page (open, click, input, type, keys, scroll, back) automatically returns the updated page state in the same response. Your agent never wastes a round-trip calling state after an action — it's already there.
Installation
pip install browser-mcp-server
Chromium is installed automatically on first run. The server detects whether the browser binary is present and downloads it if not (~170 MB, one-time). You never need to run
playwright install chromiummanually.
Quick Start
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"browser-use": {
"command": "browser-mcp-server"
}
}
}
Cursor / Zed / Windsurf
Add to your MCP settings:
{
"mcpServers": {
"browser-use": {
"command": "browser-mcp-server"
}
}
}
nixagent (mcp.json)
{
"mcpServers": {
"browser-use": {
"command": "browser-mcp-server",
"active": true
}
}
}
from nixagent import Agent
agent = Agent(
name="BrowserAgent",
system_prompt="You are a web browsing assistant.",
mcp_config_path="mcp.json"
)
agent.run("Go to stripe.com and tell me the pricing for the Starter plan.")
HTTP / Remote Agents
# Modern streaming (recommended)
browser-mcp-server --transport streamable-http --port 8080
# Legacy SSE
browser-mcp-server --transport sse --port 8080
Available Tools
| Tool | Description |
|---|---|
browser_use_tool |
Generic dispatcher — any browser-use command |
browser_open_tool |
Open URL →state auto-returned |
browser_click_tool |
Click by index →state auto-returned |
browser_input_tool |
Click + type (preferred) →state auto-returned |
browser_type_tool |
Type into focused element →state auto-returned |
browser_keys_tool |
Send keyboard key →state auto-returned |
browser_scroll_tool |
Scroll up/down →state auto-returned |
browser_back_tool |
Navigate back →state auto-returned |
browser_state_tool |
Explicit state fetch*(rarely needed)* |
browser_get_text_tool |
Extract element text |
browser_get_html_tool |
Full/scoped page HTML |
browser_get_title_tool |
Page title |
browser_close_tool |
Close all sessions*(call when done)* |
How the Auto-State Works
Traditional browser agents need two calls to interact:
1. agent calls: state → get element indexes
2. agent calls: click 3 → click
3. agent calls: state → get updated indexes ← wasted call
4. agent calls: input 7 "..." → type
With browser-mcp-server, every mutating action returns fresh state in its own response:
1. agent calls: open https://... → navigated + state returned ✓
2. agent calls: click 3 → clicked + updated state returned ✓
3. agent calls: input 7 "..." → typed + updated state returned ✓
CLI Reference
usage: browser-mcp-server [-h] [--transport {stdio,sse,streamable-http}]
[--host HOST] [--port PORT]
options:
--transport stdio | sse | streamable-http (default: stdio)
--host host for HTTP transports (default: 127.0.0.1)
--port port for HTTP transports (default: 8080)
Requirements
- Python 3.10+
browser-use >= 0.12.0mcp >= 1.0.0- Chromium (installed via
playwright install chromium)
License
MIT
Metadata
Release files for browser-mcp-server 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| browser_mcp_server-0.2.0.tar.gz | 7.6 kB | Without provenance | Details for browser_mcp_server-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browser_mcp_server-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for browser_mcp_server-0.2.0-py3-none-any.whl |
Total release size: 17.1 kB
Release files / browser_mcp_server-0.2.0.tar.gz
| Download URL | browser_mcp_server-0.2.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ea005c6c9b25538fc90ef326f958229ec67b298ff95230217a32acf2cf9cae1
|
|
BLAKE2b-256 checksum How to use checksums |
4eff940899d2e8241081c5b5db7db3eac3a21ae8faaaffee6c253350b70e240c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.14.0 HTTPX/0.28.1
|
Release files / browser_mcp_server-0.2.0-py3-none-any.whl
| Download URL | browser_mcp_server-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca9dbe63b68ee73154116a2adebf067aacc578d158b04b1b6a79b0ae7fc58c97
|
|
BLAKE2b-256 checksum How to use checksums |
e482f46a0cbdceb3bde0a9cfca3044cf788b228c4bcc19bf62e56fca912799a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.14.0 HTTPX/0.28.1
|
Security for browser-mcp-server 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.