Stealth Browser
vibheksoni/stealth-browser-mcp · 643 stars · Python · MIT
MCP server Stealth browser automation for AI agents over MCP and the Chrome DevTools Protocol: navigation, network hooks, DOM extraction, and pixel-accurate UI cloning.
Install
claude mcp add-json stealth-browser-mcp "{\"type\":\"stdio\",\"command\":\"C:\\path\\to\\stealth-browser-mcp\\venv\\Scripts\\python.exe\",\"args\":[\"C:\\path\\to\\stealth-browser-mcp\\src\\server.py\"]}"These repos do not share one command. When an entry shows a command, it was copied as published. Check the repo's README before you run it.
Files
Stealth Browser MCP
Stealth browser automation for MCP-compatible AI agents.
Navigate Cloudflare challenges, anti-bot checks, and login walls with real Chrome-family browser instances powered by nodriver, Chrome DevTools Protocol, and FastMCP.
Sponsors
NodeMaven — The most efficient proxy provider for Web Scraping and Automation with the Highest Quality IP on the market.
Why NodeMaven?
- ZIP targeting
- 99.9% uptime
- IP filtering: all proxies have fraud score <97%
- No KYC required
- Unique free tools: Proxy Bandwidth Checker, Meta Tag Checker, IP Lookup and others!
Special codes for Stealth-browser-mcp users
STEALTHMCP35— 35% off to Mobile and Residential ProxiesSTEALTHMCP40— 40% off to ISP (Static) Proxies
RapidProxy powers scraping and automation with 90M+ residential IPs across 200+ countries, supporting rotation, geo-targeting, and high concurrency to improve success rates and reduce bans.
Get 500MB of free trial traffic, non-expiring bandwidth, and pricing as low as $0.55/GB.
Why RapidProxy?
- 90M+ clean residential IPs
- Sticky sessions for up to 180 minutes
- Geo-targeting by country and city
- Unlimited concurrent sessions
- Never-expiring traffic
Special offer
Use promo code RAPID10 for 10% off.
Sponsored placement. NodeMaven and RapidProxy are paid sponsors of this project.
Table of Contents
- Sponsors
- Demo
- Features
- Quickstart
- Agent Skill
- Trust Model
- Modular Architecture
- Server Configuration
- Toolbox
- Stealth vs Playwright MCP
- Troubleshooting
- Examples
- Showcase
- Roadmap
- Contributing
- Support
- License
Demo
Stealth Browser MCP passing a Cloudflare challenge, cloning UI elements, and inspecting network traffic through AI chat commands.
Features
- Anti-bot resistance - Has passed Cloudflare and Queue-It style challenges in testing; results vary by site, region, browser version, and detector version.
- 98 tools across 11 sections - From basic navigation to advanced CDP function execution.
- Modular loading - Run the full 98-tool surface or a minimal 21-tool core; disable sections you do not need.
- Pixel-accurate element cloning - Extract complete elements with CSS, DOM structure, events, animations, and assets via CDP.
- Network inspection - Inspect requests, responses, headers, payloads, and captured bodies through your AI agent.
- Dynamic hook system - Restricted Python hooks can intercept, block, redirect, fulfill, or modify request/response flows.
- CDP execution - Run JavaScript, direct CDP commands, and pre-document scripts through trusted local MCP clients.
- Instant text input - Paste large content via CDP, type with human-like keystrokes, or press real keys with trusted CDP key events.
- Cross-platform - Windows, macOS, Linux, Docker, and CI environments with automatic browser/platform detection.
- Browser support - Chrome, Chromium, and Microsoft Edge with automatic executable discovery.
- Clean MCP integration - Works through standard MCP clients without custom brokers.
Quickstart
1. Clone and install
Requires Python 3.10+ and Chrome, Chromium, or Microsoft Edge.
git clone https://github.com/vibheksoni/stealth-browser-mcp.git
cd stealth-browser-mcp
python -m venv venv
# Windows
venv\Scripts\activate
# macOS / Linux
source venv/bin/activate
pip install -r requirements.txt
2. Add to your MCP client
Claude Code CLI (recommended):
Windows:
claude mcp add-json stealth-browser-mcp "{\"type\":\"stdio\",\"command\":\"C:\\path\\to\\stealth-browser-mcp\\venv\\Scripts\\python.exe\",\"args\":[\"C:\\path\\to\\stealth-browser-mcp\\src\\server.py\"]}"
macOS / Linux:
claude mcp add-json stealth-browser-mcp '{
"type": "stdio",
"command": "/path/to/stealth-browser-mcp/venv/bin/python",
"args": ["/path/to/stealth-browser-mcp/src/server.py"]
}'
Replace the example path with your real clone path.
Windows (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"stealth-browser-mcp": {
"command": "C:\\path\\to\\stealth-browser-mcp\\venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\stealth-browser-mcp\\src\\server.py"],
"env": {}
}
}
}
macOS / Linux (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"stealth-browser-mcp": {
"command": "/path/to/stealth-browser-mcp/venv/bin/python",
"args": ["/path/to/stealth-browser-mcp/src/server.py"],
"env": {}
}
}
}
These commands are provided for users who prefer FastMCP's installer. The stdio JSON setup above is the recommended path.
pip install fastmcp
fastmcp install claude-desktop src/server.py --with-requirements requirements.txt
fastmcp install claude-code src/server.py --with-requirements requirements.txt
fastmcp install cursor src/server.py --with-requirements requirements.txt
3. Test it
Restart your MCP client and ask your agent:
Use stealth-browser to navigate to https://example.com and take a screenshot.
Agent Skill
This repo includes an agent skill at skills/stealth-browser-mcp for clients that support Codex-style skills. It teaches agents the recommended tool order, state checks, pre-document CDP script usage, network debugging flow, and browser cleanup rules.
Use the skill when an LLM struggles to choose the right MCP tool or forgets to verify browser state after actions. If your client does not load repo-local skills automatically, add or symlink skills/stealth-browser-mcp into your client skills directory.
Trust Model
This server exposes powerful local browser-control primitives: CDP execution, page JavaScript execution, cookie/storage access, network interception, dynamic hooks, header mutation, navigation, and file uploads from allowlisted local paths.
Treat the MCP client or agent as the security principal. The recommended deployment is local stdio transport with a trusted desktop MCP client. If you use HTTP transport, set STEALTH_BROWSER_MCP_AUTH_TOKEN and do not expose unauthenticated HTTP outside trusted local or private networks.
Modular Architecture
Choose exactly what functionality you need. Run the full 98-tool suite or strip it down to the 21-tool core.
python src/server.py --minimal
python src/server.py --disable-cdp-functions --disable-dynamic-hooks
python src/server.py --list-sections
python src/server.py --debug
python src/server.py --transport http --host 127.0.0.1 --port 8000
Use --debug or set STEALTH_BROWSER_DEBUG=1 to enable verbose server diagnostics on stderr. Normal MCP stdio runs stay quiet by default to avoid corrupting JSON-RPC transport output.
Available sections:
Facts
- Kind
- MCP server
- Repo
- vibheksoni/stealth-browser-mcp
- Group
- Uncategorized
- Stars
- 643
- License
- MIT
- Language
- Python
- Last push
- 2026-10-08
- Forks
- 302
- Topics
- ai-agent-tools, ai-tools, anthropic, anti-bot-bypass, automation-tools, browser-automation, chrome-devtools, claude-mcp, cloudflare-bypass, developer-tools, fastmcp, mcp-server, model-context-protocol, network-interception, nodriver, python
- 1Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 2Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
- 3Gitmodelcontextprotocol/serversA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.85.8k
- 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
- 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
- 6Timemodelcontextprotocol/serversA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.85.8k