Clearcote Browser
io.github.clearcotelabs/clearcote-mcp · 275 stars · Python · BSD-3-Clause
MCP server Drive the Clearcote Chromium browser from any MCP client: read pages, click, fill, screenshot.
Install
The repo has no one-line install. Follow its README.
Published as
- PyPI
clearcote-mcpstdio - npm
clearcote-mcpstdio
From the server's entry in the official MCP Registry.
Configuration
| Name | Set as | What it is |
|---|---|---|
CLEARCOTE_FINGERPRINTOptional | Env var | Seed for one stable identity (the same seed is the same device on every run) |
CLEARCOTE_PLATFORMOptional | Env var | Platform persona |
CLEARCOTE_PROXYOptional · Secret | Env var | Proxy for all traffic, http://user:pass@host:port |
CLEARCOTE_GEOIPOptional | Env var | 1: timezone, locale and WebRTC IP follow the proxy's exit IP |
CLEARCOTE_CLOUDOptional | Env var | 1: the browser is a hosted Clearcote session (needs CLEARCOTE_API_KEY) |
CLEARCOTE_API_KEYOptional · Secret | Env var | API key for cloud mode and the run_task tool |
Files
Clearcote MCP server
Drive the open-source Clearcote stealth Chromium from any MCP client — Claude Desktop, Cursor,
Cline, Continue, or your own agent. One shared, coherent stealth browser; ~20 tools to navigate,
read, extract, click, fill, screenshot, and persist sessions — plus get_cdp_endpoint, which hands
the same stealth browser to any Playwright / Puppeteer / browser-use / Crawl4AI client.
The fingerprint is corrected in Chromium's C++, so you do not add puppeteer-stealth /
undetected-chromedriver / any JS patching — those self-reveal and undo it. Driving over CDP adds
no automation flags, so navigator.webdriver stays false and the persona is intact end to end.
Run it
Node (no install):
npx clearcote-mcp
The launcher runs the Python server with uvx if you have uv, else with pipx, else
installs it with pip (a Python whose pip install is refused outside a virtual environment, as on Debian 12+,
Ubuntu 23.04+ and Homebrew, needs uv or pipx; the launcher says so).
Python:
pip install clearcote-mcp clearcote-mcp # stdio server
Both auto-download + SHA-256-verify the right Clearcote binary per OS on first use (native Windows x64 + Linux x64).
Add it to a client
Claude Desktop / Cursor / Cline mcpServers config:
{
"mcpServers": {
"clearcote": {
"command": "npx",
"args": ["-y", "clearcote-mcp"],
"env": {
"CLEARCOTE_FINGERPRINT": "acct-1",
"CLEARCOTE_PLATFORM": "windows",
"CLEARCOTE_PROXY": "http://user:pass@host:port",
"CLEARCOTE_GEOIP": "1"
}
}
}
}
The persona lives in the environment, so the tool surface stays clean:
| env var | meaning |
|---|---|
CLEARCOTE_FINGERPRINT |
seed → one stable, coherent identity (same seed = same machine across runs) |
CLEARCOTE_PLATFORM |
windows | linux | macos | android |
CLEARCOTE_BRAND |
Chrome | Edge | Opera | Vivaldi |
CLEARCOTE_PROXY |
http://user:pass@host:port (routes all traffic) |
CLEARCOTE_GEOIP |
1 → derive timezone/locale/WebRTC IP from the proxy exit IP |
CLEARCOTE_TIMEZONE / CLEARCOTE_ACCEPT_LANGUAGE |
explicit overrides |
CLEARCOTE_HEADLESS |
0 for a visible window (default headless) |
CLEARCOTE_BINARY |
path to a specific Clearcote binary (optional) |
CLEARCOTE_CLOUD |
1 → the shared browser is a hosted Clearcote session instead (needs CLEARCOTE_API_KEY) |
CLEARCOTE_API_KEY |
your cc_live_... key: cloud mode, and the run_task tool |
Hardening knobs: CLEARCOTE_MCP_TOOL_TIMEOUT (s), CLEARCOTE_MCP_RUN_TIMEOUT (s, run_task; default 900), CLEARCOTE_MCP_WRITE_DIR (sandbox for file
writes), CLEARCOTE_MCP_ALLOW_ANY_PATH=1, CLEARCOTE_ALLOW_PRIVATE_EGRESS=1 (allow localhost /
private targets; still http/https only), CLEARCOTE_MCP_PREWARM=0, CLEARCOTE_SERVE_PORT, CLEARCOTE_MCP_INLINE_IMAGE_MAX
(bytes; default 200000: the largest screenshot also returned inline).
Tools
Read · read_page (Markdown by default; format="text" or "both") · get_page_html · page_elements (interactive elements +
selectors) · evaluate_js · wait_for · current_page · get_cookies · list_tabs
Act · navigate · click (selector or visible text) · fill_field (selector/label/placeholder/name)
· press_key · new_tab · close_tab
Capture · screenshot_page (saved under the sandbox dir; up to 200 KB also returned as an image) · save_page_pdf
Session · save_profile / load_profile (cookies + storage)
Stealth / infra · get_egress_info (public IP + active persona) · get_cdp_endpoint (attach any
other CDP client to the same stealth browser)
navigate and read_page also return http_status (the shown document's HTTP status; null when there is none,
as for a local file or about:blank, or the browser has none for it) and page_state: blocked (HTTP 401, 403,
429 or 503), empty (under 20 characters of visible text: still loading, or nothing to read) or ok. Output
formats changed in 0.3.0: see CHANGELOG.md.
Cloud · run_task(task, url?, schema_json?): a whole task run by the hosted agent (Clearcote
Jet) on a cloud browser, returning its JSON result (run_status, result.output, cost_eur). Listed
only when CLEARCOTE_API_KEY is set.
Cloud mode
Set CLEARCOTE_CLOUD=1 and CLEARCOTE_API_KEY and the shared browser runs on Clearcote's servers
instead of this machine: nothing to download, a residential IP included. Every tool works the same,
and the persona variables above still apply (CLEARCOTE_BINARY and CLEARCOTE_SERVE_PORT are
local-only and ignored). The one difference: a cloud session's CDP URL is single-use and the server
holds it, so get_cdp_endpoint has no endpoint to hand out; start your own hosted browser with
clearcote.launch(cloud=True) instead. Needs clearcote 0.34 or newer.
{
"mcpServers": {
"clearcote": {
"command": "npx",
"args": ["-y", "clearcote-mcp"],
"env": { "CLEARCOTE_CLOUD": "1", "CLEARCOTE_API_KEY": "cc_live_..." }
}
}
}
Guardrails (built in)
- Every tool has a wall-clock timeout and returns a structured error instead of crashing the server.
- Private addresses are refused — only
http/httpsurls, read the way the browser reads them (file:,view-source:,chrome:and every other scheme are always refused); this machine, the local network and cloud metadata endpoints are refused, for the url a tool gets and for every request the browser then makes (redirects, images, frames, script requests, popups), unless you opt in. Checking every request turns the browser's HTTP cache off. Not covered: WebSocket connections a page script opens, and a host name whose address changes between the check and the browser's own lookup (DNS rebinding). - File writes are confined to a sandbox dir (no path traversal).
- Oversized text is capped so a response never floods the agent's context, with an explicit
<field>_truncatedflag. - Everything a page controls (text, Markdown, HTML, element lists, script results and errors, titles, cookies, and
the browser's error messages, which can quote the page) is fenced as untrusted data
(
<untrusted_page_content>), and nothing in it can pass for a fence tag. - The shared browser is rebuilt automatically if it dies, and closed whenever the server stops (its input
closed, Ctrl+C, Ctrl+Break, SIGTERM or SIGHUP), with its profile and temporary files. Not after a forced kill of
the server; not a browser whose launch is still under way 20 s after the stop (the server waits no longer); and on
Windows a Ctrl+Break also ends Playwright's driver at once, which leaves its
playwright-artifacts-*folder in the temp directory.
Just want the raw endpoint?
If you don't need the tools, run the browser as a standing CDP endpoint and attach your existing code:
clearcote-serve --port 9222 --fingerprint acct-1 --platform windows
# → prints http://127.0.0.1:9222 ; then: connect_over_cdp / puppeteer.connect({browserURL})
See USAGE.md for per-client examples. Part of clearcote-browser (BSD-3).
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 275
- License
- BSD-3-Clause
- Language
- Python
- Last push
- 2026-11-01
- Forks
- 33
- MCP Registry
- io.github.clearcotelabs/clearcote-mcp
- Homepage
- clearcotelabs.com
- Topics
- anti-detect-browser, anti-fingerprinting, chromium, fingerprint, playwright, ungoogled-chromium, web-scraping, antidetect, antidetect-browser, scraping, webscraping, browser-automation, browser-fingerprinting, puppeteer, stealth-browser, undetected-chromedriver, ai-agents, browser-use, cdp, mcp
Next on this shelf
- 860Gopeakio.github.had0yun/gopeak274
- 861SuperLocalMemoryio.github.qualixar/superlocalmemoryLocal-first memory for AI agents: recall with sources, answer checks, documents, mesh, governance.274
- 862Word to Markdownio.github.benbalter/word-to-markdownConvert Word (.docx) documents to Markdown via CLI, Node.js, or browser274
- 863Open Strategy Partners (OSP) Marketing Tools for LLMsopen-strategy-partners/osp_marketing_toolsA Model Context Protocol (MCP) server that empowers LLMs to use some of Open Srategy Partners' core writing and product marketing techniques.273
- 864Datakeelio.github.chaw1/datakeelLocal-first workbench for auditable AI datasets, traceable SQL metrics, and approved actions.272
- 865Storybook MCP Addonio.github.storybookjs/addon-mcp271