Server facts
stealth-browser-mcp
GitHub stars
3,402
Last commit
Nov 30, 2026
Runtime
python
License
MIT
Project
- Author
- vibheksoni
- License
- MIT
- Category
- Browser Automation
Tech
- Runtime
- python
- Transports
- stdiostreamable-http
- Remote access
- No
- Authentication
- None locally (stdio); optional Bearer token (STEALTH_BROWSER_MCP_AUTH_TOKEN) for HTTP
Activity
- GitHub stars
- 3,402
- Last commit
- Data as of
Tags
- Automation
- Browser Automation
- Web Scraping
- Web Testing
- ai agent
- cdp
- chrome devtools
- cloudflare bypass
- mcp server
- network debugging
- stealth
- undetectable
Overview
Engineers searching for `stealth browser vibheksoni mcp` (hosted at `vibheksoni/stealth-browser-mcp`, MIT license) get a Python 3.10+ browser automation server built on `nodriver`, CDP, and FastMCP that auto-detects Chrome, Chromium, or Microsoft Edge across Windows, macOS, Linux, Docker, and CI. Install the PyPI package under its distinct name—`pipx install browserstealthmcp` or `uvx browserstealthmcp` (the author notes `pipx install stealth-browser-mcp` resolves to an unrelated project)—and register `stealth-browser-mcp` over `stdio` in Claude Code (`claude mcp add`), Claude Desktop, or Cursor. For remote or programmatic FastMCP clients, HTTP mode (`--transport http`, defaulting to port 8000 on loopback) serves `/mcp/` guarded by an optional Bearer token (`STEALTH_BROWSER_MCP_AUTH_TOKEN`).
Compared to standard Playwright wrappers, this server pairs real Chrome-family instances (which have passed Cloudflare and Queue-It style checks in testing, though outcomes depend on site policy, region, and detector version) with deep CDP workflows: pixel-accurate complete or progressive UI cloning, request/response capture and header rewriting, restricted Python dynamic network hooks, pre-document script injection, and inline MCP image screenshots capped at 8000 px (~5 MB). Because exposing all 101 tools across 11 sections can crowd chat context, operators can trim the surface using `--minimal` (21 tools), `--xpool-safe` (84 tools omitting `Runtime.enable` CDP tools), or selective `--disable-*` flags, while idle reaping (`BROWSER_IDLE_TIMEOUT=600`) and `BROWSER_FILE_UPLOAD_ALLOWED_DIRS` keep browser lifetimes and file uploads controlled.
Install & configure
Requirements
- Python 3.10+ with `pipx` (`pipx install browserstealthmcp`), `uv` (`uvx browserstealthmcp`), or a cloned virtualenv
- Local Google Chrome, Chromium, or Microsoft Edge installation (auto-detected or set via `STEALTH_BROWSER_EXECUTABLE`)
- Optional `STEALTH_BROWSER_MCP_AUTH_TOKEN` when serving HTTP transport outside loopback
pipx install browserstealthmcpInstall via `pipx install browserstealthmcp` (do not install `stealth-browser-mcp` from PyPI, which is an unrelated package), then run `claude mcp add stealth-browser-mcp -- stealth-browser-mcp` or launch with `--minimal` for 21 core tools. Use `validate_browser_environment_tool` to diagnose browser detection.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"stealth-browser-mcp": {
"command": "stealth-browser-mcp",
"args": [],
"env": {}
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"stealth-browser-mcp": {
"command": "stealth-browser-mcp",
"args": [],
"env": {}
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"stealth-browser-mcp": {
"type": "stdio",
"command": "stealth-browser-mcp",
"args": [],
"env": {}
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"stealth-browser-mcp": {
"command": "stealth-browser-mcp",
"args": [],
"env": {}
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"stealth-browser-mcp": {
"type": "stdio",
"command": "stealth-browser-mcp",
"args": [],
"env": {}
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| spawn_browser | Launch a new stealth Chrome, Chromium, or Edge browser session with optional per-instance idle timeout. |
| list_instances | List all currently active browser instances managed by the server. |
| close_instance | Shut down an active browser instance cleanly. |
| navigate | Navigate the active browser tab to a target URL. |
| query_elements | Locate DOM elements using CSS selectors or XPath expressions. |
| click_element | Click a target element on the page. |
| type_text | Type text into an element with human-like keystrokes and newline support. |
| paste_text | Insert large text blocks instantaneously through CDP. |
| press_key | Send trusted CDP keyboard events such as Enter, Tab, arrows, and modifier chords. |
| file_upload | Upload local files from directories allowlisted via `BROWSER_FILE_UPLOAD_ALLOWED_DIRS`. |
| get_page_content | Extract current page HTML and readable text. |
| take_screenshot | Capture a screenshot returned as an MCP image with dimensions, byte count, and SHA-256 metadata. |
| list_network_requests | List HTTP network requests captured during the browser session. |
| get_response_content | Read the captured response body of an intercepted network request. |
| modify_headers | Add or override outgoing HTTP request headers. |
| get_cookies | Read cookies stored in the active browser session. |
| clone_element_complete | Extract an element's full computed CSS, DOM structure, event listeners, animations, and assets. |
| clone_element_progressive | Capture an initial lightweight element clone whose styles, events, and children can be expanded on demand. |
| execute_cdp_command | Invoke raw Chrome DevTools Protocol commands directly against the browser session. |
| create_dynamic_hook | Register a restricted Python network hook to inspect, block, redirect, fulfill, or modify traffic. |
Use cases
- Automate web research, login-walled pages, and inventory checks on sites where standard Playwright automation is frequently blocked.
- Clone frontend components with computed CSS, DOM structure, animations, and assets via CDP (`clone_element_complete` or progressive cloning).
- Reverse-engineer web application APIs by capturing requests, inspecting payloads, modifying headers, and attaching dynamic Python hooks.
- Run form automation with allowlisted local `file_upload` paths and inline MCP screenshot verification inside Claude Code or Cursor.
Strengths
- Modular 11-section architecture lets you run the full 101 tools, `--minimal` (21 core tools), `--xpool-safe` (84 tools), or custom `--disable-*` profiles.
- Real Chrome/Chromium/Edge automation via `nodriver` plus direct CDP commands, progressive UI cloning, and dynamic Python network hooks.
- Built-in operational hygiene: automatic idle instance reaping (`BROWSER_IDLE_TIMEOUT=600`), orphan profile cleanup, allowlisted uploads, and `MacAppCodeSignClone` suppression.
- Ships a companion agent skill (`skills/stealth-browser-mcp`) and supports `stdio` plus Bearer-authenticated HTTP transport.
Limitations
- PyPI package name (`browserstealthmcp`) differs from the GitHub repo name (`stealth-browser-mcp`), creating a common installation trap.
- Anti-bot resistance is point-in-time and varies by target site policy, IP reputation, region, browser build, and detector updates.
- Full 101-tool mode grants broad local browser, cookie, JS, and network control and can clutter smaller agent context windows unless trimmed with `--minimal`.
stealth-browser-mcp setup notes
- stealth-browser-mcp's example uses stdio, while its catalog transports are stdio / streamable-http; use the example's connection type.