Stealth Browser MCP
Enables AI agents to perform undetectable browser automation that bypasses Cloudflare, antibots, and social media blocks. Provides 105 tools for element extraction, network debugging, and real-world web scraping with a 98.7% success rate on protected
What is Stealth Browser MCP?
Stealth Browser MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai agents to perform undetectable browser automation that bypasses cloudflare, antibots, and social media blocks. provides 105 tools for element extraction, network debugging, and real-world w...
Enables AI agents to perform undetectable browser automation that bypasses Cloudflare, antibots, and social media blocks. Provides 105 tools for element extraction, network debugging, and real-world web scraping with a 98.7% success rate on protected
This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables AI agents to perform undetectable browser automation
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx stealth-browser-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Stealth Browser MCP
Stealth Browser MCP is a Python-based MCP server that gives AI agents a full anti-detection browser environment capable of bypassing Cloudflare, anti-bot systems, and social media access controls with a 98.7% reported success rate on protected sites. It exposes between 20 and 97 tools depending on configuration, covering browser lifecycle management, element interaction, full CSS and event extraction via Chrome DevTools Protocol (CDP), network request interception, and dynamic Python hook injection. Security researchers and developers use it for web scraping, competitive intelligence, and automating complex authenticated workflows.
Prerequisites
- Python 3.10 or higher
- Google Chrome or Chromium installed (the server controls a real browser instance)
- pip for installing Python dependencies
- Claude Desktop, Claude Code, or another MCP-compatible client
- Git to clone the repository
Clone the repository
Clone the stealth-browser-mcp repository to your local machine. The server runs from source and is not distributed as a published package.
git clone https://github.com/vibheksoni/stealth-browser-mcp.git
cd stealth-browser-mcpCreate a virtual environment and install dependencies
Set up a Python virtual environment and install the required packages from requirements.txt. This isolates the server's dependencies from your system Python.
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtConfigure environment variables (optional)
Set optional environment variables to control browser idle timeout, debug logging, and authentication token for HTTP transport mode. These can be set in your shell or in the MCP client env block.
export BROWSER_IDLE_TIMEOUT=600 # Auto-close idle browsers after 600 seconds
export STEALTH_BROWSER_DEBUG=0 # Set to 1 for verbose logging
export STEALTH_BROWSER_MCP_AUTH_TOKEN= # Bearer token for HTTP transport (optional)Test the server locally
Run the server directly to verify it starts correctly. Use --minimal for just the 20 core tools, or no flag for the full 97-tool set.
python src/server.py --minimalRegister the server with your MCP client
Add the stealth browser server to your MCP client configuration using the full path to the virtual environment Python binary and the server script. Replace /path/to/ with the actual absolute paths on your system.
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"],
"env": {
"BROWSER_IDLE_TIMEOUT": "600",
"STEALTH_BROWSER_DEBUG": "0"
}
}'Stealth Browser MCP Examples
Client configuration
Claude Desktop configuration for stealth-browser-mcp using stdio transport. Update the command and args paths to match your actual installation location.
{
"mcpServers": {
"stealth-browser-mcp": {
"type": "stdio",
"command": "/path/to/stealth-browser-mcp/venv/bin/python",
"args": ["/path/to/stealth-browser-mcp/src/server.py"],
"env": {
"BROWSER_IDLE_TIMEOUT": "600",
"STEALTH_BROWSER_DEBUG": "0"
}
}
}
}Prompts to try
Example prompts for using the stealth browser MCP server to automate browser tasks and extract web content.
- "Navigate to https://example.com and take a screenshot of the page"
- "Clone the hero section HTML with all styles and animations from https://example.com"
- "Intercept all network requests to api.example.com and log the API calls being made"
- "Extract competitor pricing data from the pricing page and create a comparison table"
- "Click the login button, fill in the username and password fields, and submit the form"Troubleshooting Stealth Browser MCP
Chrome or Chromium not found when spawning a browser instance
Install Google Chrome or Chromium if not already present. On macOS run `brew install --cask google-chrome`. On Ubuntu/Debian run `sudo apt install chromium-browser`. The server uses the system's installed browser, not a bundled one.
Server starts but tools are missing in the MCP client
By default the server runs with all 97 tools. If you started with --minimal only 20 core tools are exposed. Check which mode was used. Also verify the client connected successfully by looking for any error messages in the server output (set STEALTH_BROWSER_DEBUG=1 for verbose logs).
Anti-bot detection still triggered on some sites
Ensure you are not using headless mode if the target site specifically checks for it. Try increasing BROWSER_IDLE_TIMEOUT to keep the same browser instance alive between requests, as fresh browser spawns can look more bot-like. Use the add_script_to_evaluate_on_new_document tool to inject stealth patches before page load.
Frequently Asked Questions about Stealth Browser MCP
What is Stealth Browser MCP?
Stealth Browser MCP is a Model Context Protocol (MCP) server that enables ai agents to perform undetectable browser automation that bypasses cloudflare, antibots, and social media blocks. provides 105 tools for element extraction, network debugging, and real-world web scraping with a 98.7% success rate on protected It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Stealth Browser MCP?
Follow the installation instructions on the Stealth Browser MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Stealth Browser MCP?
Stealth Browser MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Stealth Browser MCP free to use?
Yes, Stealth Browser MCP is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Stealth Browser MCP Alternatives — Similar Browser Automation Servers
Looking for alternatives to Stealth Browser MCP? Here are other popular browser automation servers you can use with Claude, Cursor, and VS Code.
Chrome DevTools MCP
★ 40.6kAI-powered Chrome automation server with natural language element detection. Control Chrome browser through MCP protocol for testing, debugging, and performance analysis. Features 91% accuracy in element location, works with free AI models, and suppo
UI TARS Desktop
★ 34.9k📇 🏠 - Browser automation capabilities using Puppeteer, both support local and remote browser connection.
Playwright
★ 32.8kA production-ready browser automation server that enables AI assistants to interact with web pages using tools for navigation, element interaction, and data extraction. It features a built-in Inspector UI and robust crash recovery for reliable automa
Page Agent
★ 18.0kJavaScript in-page GUI agent. Control web interfaces with natural language.
Chrome
★ 11.7kAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation,
LAMDA
★ 7.8kThe most powerful Android RPA agent framework, next generation mobile automation.
Browse More Browser Automation MCP Servers
Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Stealth Browser MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Stealth Browser MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.