Repository iconcurepo.dev
Blog
stealth-browser-mcp preview

vibheksoni / stealth-browser-mcp

ai-agent-toolsai-toolsanthropicanti-bot-bypass

The only browser automation that bypasses anti-bot systems. AI writes network hooks, clones UIs pixel-perfect via simple chat.

3.4k Stars
visibility18 Watchers
fork_right415 Forks
Python
historyUpdated recently

description README.md

Stealth Browser MCP logo

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.

MCP PyPI Python Stars License PRs Welcome


Sponsors

NodeMaven

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 Proxies
  • STEALTHMCP40 — 40% off to ISP (Static) Proxies
  • STEALTHMCP2X: 2X traffic for Black Friday

Get started with NodeMaven

Sponsored placement. NodeMaven is a paid sponsor of this project.


Table of Contents


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.

Want the story behind it? Read How I built stealth-browser-mcp on my blog.


Quickstart

1. Install

Requires Python 3.10+ and Chrome, Chromium, or Microsoft Edge.

With pipx (recommended):

pipx install browserstealthmcp

This puts a stealth-browser-mcp command on your PATH. Upgrade with pipx upgrade browserstealthmcp. uvx browserstealthmcp runs it without installing. To run the latest commit instead of a release, use pipx install git+https://github.com/vibheksoni/stealth-browser-mcp.git.

The PyPI package is named browserstealthmcp because stealth-browser-mcp on PyPI belongs to a different, unrelated project. pipx install stealth-browser-mcp installs that project, not this one.

From a clone (for development):

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

Installed with pipx:

claude mcp add stealth-browser-mcp -- stealth-browser-mcp

Or in any client's JSON config:

{
  "mcpServers": {
    "stealth-browser-mcp": {
      "command": "stealth-browser-mcp",
      "args": [],
      "env": {}
    }
  }
}

If your client cannot find the command, use the full path printed by pipx list. With uv you can skip the install and use "command": "uvx", "args": ["browserstealthmcp"].

From a clone with Claude Code CLI:

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.

Manual JSON configuration (Claude Desktop, Cursor, etc.)

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": {}
    }
  }
}
Experimental FastMCP CLI install

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 c