CloakMCP
An MCP server that provides LLMs with stealth browser automation capabilities via CloakBrowser to bypass bot detection services like Cloudflare and reCAPTCHA. It supports full page interaction, content extraction, and human-like behavior through 30 specialized tools.
README
CloakBrowserMCP
MCP server for CloakBrowser — giving AI models full access to a stealth Chromium that passes every bot detection test.
What is this?
CloakBrowserMCP exposes CloakBrowser's stealth browser automation as an MCP (Model Context Protocol) server. Any AI model that speaks MCP can launch a source-level patched Chromium, navigate pages, interact with elements, take screenshots, and extract content — all while passing Cloudflare Turnstile, reCAPTCHA v3, FingerprintJS, and 30+ other detection services.
CloakBrowser is not a JS injection or config hack — it's a real Chromium binary with 33 C++ source-level patches. This MCP server wraps its full Python API into 21 tools that models can call directly.
Install
One-line setup (clones, installs, downloads the stealth binary, runs tests):
curl -fsSL https://raw.githubusercontent.com/overtimepog/CloakMCP/main/setup.sh | bash
pip install:
pip install cloakbrowsermcp
From source:
git clone https://github.com/overtimepog/CloakMCP.git
cd CloakMCP
pip install -e ".[dev]"
Quick Start
Claude Desktop / Claude Code
Add to your MCP config:
{
"mcpServers": {
"cloakbrowser": {
"command": "cloakbrowsermcp"
}
}
}
Run standalone
cloakbrowsermcp
Tools
Browser Lifecycle
| Tool | Description |
|---|---|
launch_browser |
Launch stealth Chromium with anti-detection. Supports proxy, humanize, persistent profiles, fingerprint seeds, timezone/locale, and custom viewport. |
close_browser |
Close the browser and all pages. |
Page Management
| Tool | Description |
|---|---|
new_page |
Open a new tab, optionally navigating to a URL. |
close_page |
Close a specific page by ID. |
list_pages |
List all open pages with IDs and URLs. |
Navigation
| Tool | Description |
|---|---|
navigate |
Go to a URL with configurable wait strategy and timeout. |
Interaction
| Tool | Description |
|---|---|
click |
Click an element. With humanize=True, uses Bézier mouse curves. |
type_text |
Type with per-key events — better for reCAPTCHA than fill. |
fill_form |
Set a form field value directly. |
hover |
Hover over an element with realistic mouse movement. |
select_option |
Select from a <select> dropdown by value, label, or index. |
press_key |
Press keyboard keys (Enter, Tab, Escape, etc). |
scroll |
Scroll with realistic acceleration curves when humanized. |
Content & Data
| Tool | Description |
|---|---|
screenshot |
Capture full page, viewport, or element screenshots (base64 PNG). |
get_content |
Extract HTML, visible text, or outer HTML from a selector. |
evaluate |
Run JavaScript in the page context and return results. |
wait_for_selector |
Wait for elements to appear, disappear, attach, or detach. |
get_cookies |
Get all cookies from the browser context. |
set_cookies |
Set cookies in the browser context. |
get_page_info |
Get current URL and title. |
pdf |
Generate a PDF of the page. |
Key Features
Anti-Detection Stealth
Every browser session uses CloakBrowser's source-level patches:
- 33 C++ patches — canvas, WebGL, audio, fonts, GPU, screen, automation signals
- 0.9 reCAPTCHA v3 score — human-level, server-verified
- Passes Cloudflare Turnstile, FingerprintJS, BrowserScan, and 30+ detection services
navigator.webdriver = falseat the source level
Human-Like Behavior
launch_browser(humanize=True)
One flag makes all interactions behave like a real user:
- Mouse: Bézier curves with easing and slight overshoot
- Keyboard: per-character timing, thinking pauses, occasional typos
- Scroll: accelerate → cruise → decelerate micro-steps
Persistent Profiles
launch_browser(user_data_dir="./my-profile")
Cookies, localStorage, and cache persist across sessions. Bypasses incognito detection.
Fingerprint Pinning
launch_browser(fingerprint_seed="42069")
Same seed = same fingerprint across launches. Look like a returning visitor instead of a new device each time.
Proxy Support
launch_browser(proxy="http://user:pass@proxy:8080", geoip=True)
Auto-detects timezone and locale from the proxy IP.
Architecture
┌─────────────┐ MCP Protocol ┌──────────────────┐
│ AI Model │ ◄──────────────────► │ CloakBrowserMCP │
│ (Claude, │ stdio / HTTP │ │
│ GPT, etc) │ │ 21 tools │
└─────────────┘ │ session mgmt │
│ page tracking │
└────────┬─────────┘
│
┌────────▼─────────┐
│ CloakBrowser │
│ │
│ Patched Chromium │
│ 33 C++ patches │
│ Playwright API │
└──────────────────┘
cloakbrowsermcp/server.py— MCP server with all tool registrationscloakbrowsermcp/session.py— Browser lifecycle & page managementcloakbrowsermcp/tools.py— Core tool handlers (navigate, click, type, screenshot, etc.)cloakbrowsermcp/tools_advanced.py— Stealth config, network interception, viewport, media emulation
Development
git clone https://github.com/overtimepog/CloakMCP.git
cd CloakMCP
pip install -e ".[dev]"
# Run tests (80 tests, all mocked — no browser needed)
pytest
# Run tests with verbose output
pytest -v
License
MIT — see LICENSE.
Credits
Built on CloakBrowser by CloakHQ and the Model Context Protocol Python SDK.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.