# 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](https://github.com/ultrafunkamsterdam/nodriver), Chrome DevTools Protocol, and [FastMCP](https://github.com/jlowin/fastmcp).
[](https://modelcontextprotocol.io)
[](pyproject.toml)
[](pyproject.toml)
[](https://github.com/vibheksoni/stealth-browser-mcp/stargazers)
[](LICENSE)
[](CONTRIBUTING.md)
[NodeMaven](https://go.nodemaven.com/stealthbrowsermcpreadmesept) — 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 Proxies
- `STEALTHMCP40` — 40% off to ISP (Static) Proxies
[Get started with NodeMaven](https://go.nodemaven.com/stealthbrowsermcpreadmesept)
> Sponsored placement. NodeMaven is a paid sponsor of this project.
---
## Table of Contents
- [Sponsors](#sponsors)
- [Demo](#demo)
- [Features](#features)
- [Quickstart](#quickstart)
- [Agent Skill](#agent-skill)
- [Trust Model](#trust-model)
- [Modular Architecture](#modular-architecture)
- [Server Configuration](#server-configuration)
- [Toolbox](#toolbox)
- [Stealth vs Playwright MCP](#stealth-vs-playwright-mcp)
- [Troubleshooting](#troubleshooting)
- [Examples](#examples)
- [Showcase](#showcase)
- [Roadmap](#roadmap)
- [Contributing](#contributing)
- [Support](#support)
- [License](#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.
- **101 tools across 11 sections** - From basic navigation to advanced CDP function execution.
- **Modular loading** - Run the full 101-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.
```bash
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:
```powershell
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:
```bash
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.