Skip to main content Switch to mobile version stealth-chrome-devtools-mcp 2.1.73 Undetectable browser automation for AI agents via the Model Context Protocol — one shared backend built for 50+ concurrent Claude Code sessions.
pip install stealth-chrome-devtools-mcp==2.1.73 Copy PIP instructions
Undetectable browser automation for AI agents via the Model Context Protocol — one shared backend built for 50+ concurrent Claude Code sessions.
Onboard your agent to Stealth Chrome DevTools MCP — copy the sentence below into any AI coding agent (Claude Code, Codex, Cursor, Windsurf, OpenCode, …) and it installs the server, registers it in that agent, and verifies the backend:
Fetch and execute the appropriate instructions to set me up for Stealth Chrome DevTools MCP from https://raw.githubusercontent.com/DevinoSolutions/stealth-chrome-devtools-mcp/main/agent-setup/prompt.md The instructions it fetches are agent-setup/prompt.md — readable by humans too. Signing in to websites stays yours: the agent prepares the browser, you prepare the logins.
A self-contained stealth Chrome DevTools MCP server with smart profile management, anti-detection stealth arg filtering, and robust process lifecycle handling. Built on nodriver (CDP-based) for full anti-bot evasion.
Cloudflare Turnstile Bypass
https://github.com/user-attachments/assets/c4de61ae-6878-4fff-9bfd-65cdd4fadc2f
Captcha Checkboxes, Clicked Automatically
Call enable_captcha_auto_click(instance_id) once, and the server handles captcha checkboxes on every tab of that browser. It watches for Cloudflare Turnstile, Google reCAPTCHA v2 and hCaptcha widgets and clicks the checkbox itself, with a trusted mouse click. There is no extension and no solver service. get_captcha_status lists every click it made.
These three screenshots come from a live run through the MCP on 2.1.62, one click on each widget:
It clicks checkboxes only. It never solves image puzzles or sliders, and while a puzzle is showing it does not click. Whether a click passes is up to the captcha provider; hCaptcha, as above, often answers with a puzzle, which is left to you.
Speed is tested on every release, on Linux, Windows and macOS. The release is blocked if any of the three clicks comes more than 1 s after its checkbox is ready, or if a click the widget ignored is not tried again within 1.5 s.
Persistent Login Sessions
Undetectable by anti-bot systems — Cloudflare, DataDome, PerimeterX, etc.
Captcha checkboxes clicked for you — Turnstile, reCAPTCHA v2 and hCaptcha checkboxes are clicked automatically once enable_captcha_auto_click is on; puzzles are never solved. See the screenshots
Named sessions — a session keeps its cookies and logins; new ones are seeded from default
Stealth arg filtering — automatically strips 30+ detectable Chrome flags (Puppeteer/Playwright signatures, automation markers)
Multi-instance support — spawn and manage multiple browsers simultaneously
Built for fleets of Claude Code sessions — a session costs a thin stdio proxy (≈ 60 MB resident), not a browser: every session shares one backend per desktop, and a Chrome exists only where a session spawned one. Measured with 62 sessions attached at once; simultaneous cold start is scale-tested at 50 concurrent sessions, all usable in seconds against one backend — see Built for fleets
A busy session re-attaches, and only then suffixes — spawning with a session a live browser still holds joins THAT browser; github-session becomes github-session-2 only when the re-attach declines
Orphan recovery — safely cleans up leaked browser processes without killing live ones
Session persistence — a new session carries the cookies, logins and Web Data of default
Zero idle timeout — browsers stay alive until explicitly closed
Full CDP access — DOM manipulation, network interception, JavaScript execution, screenshots
The right way — uv tool install (persistent, fleet-safe)
uv tool install stealth-chrome-devtools-mcp==2.1.73 This installs a version-pinned executable at ~/.local/bin/stealth-chrome-devtools-mcp (Windows: %USERPROFILE%\.local\bin\stealth-chrome-devtools-mcp.exe). Point your MCP config (claude_desktop_config.json, ~/.claude.json, etc.) at it:
{ "mcpServers": { "stealth-chrome-devtools-mcp": { "command": "C:\\Users\\
claude mcp add --scope user stealth-chrome-devtools-mcp -- ~/.local/bin/stealth-chrome-devtools-mcp Why not uvx in the config? It works, but uvx re-resolves the package on every client session start. Each Claude Code session launches its own stdio proxy, so a fleet of concurrent sessions (the shared backend is scale-tested at 50) turns startup into a package-resolution storm. A uv tool install gives every proxy an instant, pinned executable — the shared backend, profile handling, and per-session browser isolation behave identically.
To upgrade later: uv tool install stealth-chrome-devtools-mcp==
Zero-install trial (fine for a first look, not for fleets):
Crashes are reported to the maintainers by default, with your username and machine name scrubbed out. See Error Reporting for what a report contains and how to turn it off.
Built for fleets: 50+ Claude Code sessions, one backend
The usual MCP browser server runs one server process and one Chrome per client session. That is fine for one session and ruinous for fifty: every session pays for a whole browser before it has done anything. This server is shaped differently. A Claude Code session runs only a thin stdio proxy. The browsers live in one shared backend per desktop, and a Chrome exists only where a session asked for one.
Measured on a Windows 11 workstation (2026-09-11) with 62 Claude Code sessions attached at once:
What that buys a fleet:
Memory scales with the browsers you use, not the sessions you open. An idle session holds a proxy, not a Chrome. Sixty sessions with five browsers between them pay for five browsers and sixty proxies, not sixty browsers.
One cold start per backend. The first session boots the backend under a file lock; every other session converges on it and is usable in seconds. A session that arrives later joins in about a second.
Nothing is left behind. Orphaned Chrome processes are reaped without killing live ones, and a spawn that fails after Chrome launched cleans up its own browser.
Startup is not a package-resolution storm. With uv tool install every proxy is a pinned executable, so fifty sessions starting together do not re-resolve the package fifty times.
The per-session and per-browser figures above are the ones to plan capacity around. The backend's own footprint depends on what the sessions do with it (captured network bodies, stored element clones, live tabs), so it is not quoted as a constant.
A session is a named, persistent Chrome profile: spawn_browser(session="acme"), or stealthy spawn --session acme. Ask for the same name again and you get the same cookies and the same logins — and if a browser is still open on it, that browser, not a new one.
default is the session you get when you name none. It is where a human logs in, and every new session starts as a copy of it. session="default" opens it explicitly. It is reserved: you cannot create a session of your own by that name (nor by master or master-snapshot, which are the mechanism's own directories).
seed_from / --from copies a NEW session from an existing one instead of from default:
stealthy spawn --session work --headed # log in by hand in this window stealthy spawn --session work2 --from work # a second session, already logged in It applies only when the session is CREATED. Passing it for a session that already exists is an error that names where that session actually came from — never a silent no-op, and never a re-seed over a login you typed by hand.
The source may be open, as long as its browser is one this backend is driving — which it is if you spawned it (the example above leaves the work window up). Its cookies are then read out of the running browser and written into the new session, and the spawn says so:
seeded : seeded from work at 2026-09-21 14:02 cookies : 14 handed over from the running source That hand-off carries cookies and nothing else. Every kind — session, persistent, HttpOnly, Secure, SameSite=None, Partitioned — and it carries every site the source is logged into, not only the one you meant. It does NOT carry localStorage, sessionStorage, IndexedDB, Cache Storage, service workers or saved passwords, so a site that keeps its token in localStorage will not be logged in; for those, close the source first so the file copy can read them. If the hand-off fails the session is still created and still works — the answer then says cookies : NOT carried (…).
A source open in a browser this backend does NOT drive — another backend's, or a Chrome you started yourself — is refused by name, because there is no connection of ours to ask it for its cookies and a file copy of a live profile carries none at all.
--from default — and an unset --from, which means the same thing — has three outcomes, because default is the session you log in to by hand and its window is usually still open:
The seed is a separate, closed, copyable form of default (below) and it is refreshed when that window closes. The one case that IS refused is a machine where no seed exists yet and default is open: there is nothing safe to copy, and copying the live directory would hand you a session missing exactly the logins you wanted. Close the default window once — that writes the seed — and it works from then on, open or not.
C:\stealth-mcp-browser-sessions\ master/ # the `default` session — your logins, cookies, extensions master-snapshot/ # its seed: a safe copy, refreshed while `default` is closed sessions/ # your named sessions, and disposable copies acme/ acme-2/ # auto-suffixed when a browser already holds `acme` The directory names are historical and are what you will see in a path; the words you type and the words the tool answers with are default and the seed.
An unnamed spawn is always a disposable copy of the seed and never opens default, whether or not anything has it open (F-966); only session="default" opens it
Before opening default by name, the server refreshes its seed
When default is busy, a copy is made from the seed with its live jar handed over
Copies carry all cookies, logins, and session data. On a brand-new install there is no seed yet, so an unnamed spawn gets an empty copy and a seed_warning that says how to create default
A stale seed is auto-refreshed when auth files change
--from
Whatever a session was copied from is recorded in it: stealthy profiles and a spawn's own answer both print seeded from
Clones exclude regenerable Chrome caches, so each is a few MB rather than multiple GB. Disposable auto-clones are deleted on close, and a storage cap (STEALTH_MCP_CLONE_STORAGE_CAP_GB, default 10 GB) reclaims the oldest idle clones if any ever leak — so sessions/ stays bounded. Cap eviction is recoverable: an evicted clone is moved into sessions/.trash/ and only purged after a retention window (STEALTH_MCP_CLONE_TRASH_RETENTION_HOURS, default 24 h), so a mistaken eviction can be restored rather than lost.
Named profiles you create explicitly (e.g. github-session) persist and are never deleted. But even a "persistent" profile is ~98% regenerable (caches plus Chrome's multi-GB on-device AI model). So when sessions/ exceeds STEALTH_MCP_BROWSER_SESSION_STORAGE_CAP_GB (default 20 GB), the largest idle named profiles are trimmed of those regenerable dirs while every login is preserved — Chrome rebuilds them on next launch. In-use profiles are never touched.
Shared-machine note: the browser-session root defaults to C:\stealth-mcp-browser-sessions (drive root), which holds your logged-in cookies and session data. On a single-user machine this is fine. On a shared multi-user Windows box, other local users may be able to read it — point STEALTH_MCP_BROWSER_SESSION_ROOT at a location inside your user profile (e.g. %LOCALAPPDATA%\stealth-mcp) so the OS user ACLs protect it.
The shared fleet session and the session lock
One signed-in browser that several agents work from, and that outlives all of them.
spawn_browser(session="fleet") # first call creates it (a copy of the default seed) spawn_browser(session="fleet", seed_from="upup-b9be57135713-84488-27") # or: make a browser that is ALREADY running the fleet fleet is an ordinary named session, so everything named sessions promise holds: close_instance keeps the profile, a backend restart re-attaches the browser under the same instance_id (and restores fleet first), and nothing reaps it except kill-orphans --force. A failed re-attach to fleet leaves its browser running and recorded instead of reaping it, because the login in it cannot be re-created.
Asking for fleet while it is already open in this backend returns that instance with already_running: true and the current session_lock; it is never walked to fleet-2 and never a copy. A spawn that names nothing is still never handed it. Closing it needs the name too: close_instance(instance_id=..., session="fleet") (and session="default" for default); without it the close is refused and the browser is left running, because other chats work in it. If the running browser's headless state differs from the headless you passed (the default False counts), the answer adds headless_mismatch; a running browser cannot change it, so close it and spawn again. A new session whose live cookie hand-off failed returns a top-level seed_warning (it is then probably signed out), in addition to seeded_via: "copy" in spawn_diagnostics.
seed_from accepts any session name in the sessions directory, including the
Make it the default source for every new clone and new named session, instead of master-snapshot: set STEALTH_MCP_SEED_SESSION=fleet. It is off by default. The fleet session itself still bootstraps from the snapshot, and a misnamed value is refused naming the setting. If the seed is held by a browser this backend does not drive, an unnamed clone falls back to the snapshot with a seed_warning; an explicit seed_from or a new named session is refused by name. Only the source rotates Google cookies (F-939); clones, and a new named session seeded from a live browser, stay fenced.
The lock is advisory. Tool calls carry no caller identity, so a lock cannot stop another agent's calls; it is the shared answer to "is somebody using this?".
Leases expire on their own and are held in memory, so a backend restart clears them.
Stealth Arg Filtering
The server automatically strips Chrome flags that would compromise stealth:
Stripped args are reported in spawn_diagnostics.stealth_args_stripped.
On Windows a spawn also launches with --disable-features=CalculateNativeWinOcclusion, so a headed window that other windows cover keeps visibilityState visible at Normal priority instead of being backgrounded (F-1010); the Puppeteer backgrounding switches above stay stripped.
The backend's HTTP port is local-only and token-protected (F-1013, F-1018)
The shared backend listens on 127.0.0.1 and refuses what a web page could send it: a request whose Host is not a loopback name (a DNS-rebound domain, 421) or whose Origin is a foreign web origin (403). It also demands a per-user bearer token on every request: the backend keeps one in ~/.stealth-mcp/backend.token (readable by your OS user only; mode 0600, or a single-user ACL on Windows) and answers 401 without Authorization: Bearer
The DevTools port of each browser it launches is a different matter: it listens on loopback (Chrome's default; the stealth filter strips --remote-debugging-address from browser_args) without a token and Chrome runs with --remote-allow-origins=*, so any local process can drive a browser this tool started. That is by design for a single-user machine, and the tool is not meant for multi-user hosts (RUNBOOK, "Local trust boundary").
Login vault: sign in without the password reaching a model (T-19366)
A person stores logins once; an agent asks the backend to sign one in by label. No password, passphrase, key or decrypted vault content reaches a model: not in a tool argument or result, a log line, an error report, a network record or any CLI output, and there is no "show password" operation.
stealthy login init # new passphrase, typed twice; ties the vault to this OS account # `stealthy vault ...` is the same command under another name stealthy vault add amazon.ca # asks for the passphrase (checked at once), then the username, then the password; typing shows `*` stealthy vault add amazon.ca --label shop # a name of your own (default: the site's name, here `amazon`) stealthy vault add amazon.ca --login-url https://www.amazon.ca/ap/signin # a specific sign-in page (a site with two portals): tried first; the password is then typed only on its host stealthy vault unlock --for 8h # puts the key in EVERY running backend's memory: `unlocked 3 backends (1 login) for 8h`, and one line per backend (release, port, unlocked/refused/unreachable) only when they differ stealthy login add # `login` and `vault` are the same command; with nothing given it asks ONE question (the site or the sign-in page), then the passphrase, username and password stealthy login add work --site example.com --login-url https://accounts.example.com/signin --user me@example.com # the full form still works stealthy vault add shop.example --via amazon # a login that signs in through another login: `--via` is the ONLY way to one (the passphrase is asked first; a login that does not exist is answered with the ones that do) stealthy vault add shop.example # while a backend of this release holds the vault unlocked: no passphrase, only the username and password (a dim line says so); `--ask-passphrase` asks anyway stealthy vault status # a compact block: the vault, vault mode ON/OFF, the second factor, one line per backend stealthy vault status --verbose # the same, plus the list of what vault mode restricts Adding without the passphrase. While a backend of the same release as the CLI holds the vault unlocked (unlock was run and has not expired), stealthy vault add of a new login at a terminal does not ask for the passphrase: the CLI sends the new login to that backend over the authenticated local vault routes, and the backend, which holds the key, writes the file. That route can only add: it refuses a label that exists, a login through another login, any field a plain password login does not have, and a vault that is locked, expired or whose backend ran caller Python, and it never returns an entry or a secret. Everything that could move where an existing password is typed, or show or destroy it, still needs the passphrase: edit, remove, export, bind, destroy, init, and add --via. Without a terminal, with --ask-passphrase, with no unlocked backend of this release, or when the backend declines for any reason, add asks for the passphrase as it always did. The audit log (stealthy vault audit) records the add as made through the unlocked backend.
Output is calm: each verb prints its result in one line and, at most, one line about what to do next; a failure is a red error: line and one line saying what to do. It is coloured (green for a result, yellow for a warning or a refusal that needs an action, dim for detail, bold for a label) only when the stream is a terminal, never when NO_COLOR is set to anything (https://no-color.org) or TERM=dumb, and on Windows only after the console accepts virtual-terminal processing. A pipe or a file gets plain text. There is no FORCE_COLOR.
add's first word is read for what it is: an https:// URL is the sign-in page (its host, without www., is the site), a word with a dot is a site, anything else is a label. The label of a site is the name left of its public suffix, so amazon.ca and www.amazon.ca are amazon, accounts.google.com is google and bbc.co.uk is bbc; a label that is already taken is refused (never suffixed or overwritten) and the message names --label. A site is a bare host: no scheme, path, port or credentials, at least two labels, and not a public suffix or a shared-hosting parent such as co.uk, github.io or herokuapp.com (the Public Suffix List, vendored in embedded/data/; for such a site give --login-url).
Then an agent calls list_logins() (labels, sites, whether one is frozen; a username only if you passed --show-username) and login(instance_id, label), which answers logged_in, already_logged_in, needs_totp, needs_user, rejected or use_provider. The sign-in happens in a tab the backend opens for itself: while it runs, every tool call naming that tab is refused, execute_cdp_command and switch_tab are refused for the whole browser, hooks and network capture never arm it, and the tab is closed afterwards. The session is saved in the profile, so reload your own tab.
Where it is kept. ~/.stealth-mcp/vault.json, scrypt + AES-256-GCM, labels and sites encrypted too. The key is derived on your machine from a passphrase typed at a terminal (unlock and init refuse a pipe or a script) and exists only in the backend's memory until lock, the --for period or the backend exits. Passwords are only ever a hidden prompt or --password-stdin, never an argument or an environment variable.
Two things open it. The key is made from the passphrase and from a secret the OS keeps for your account (Windows DPAPI, the macOS login keychain, a Linux Secret Service keyring), so a copy of vault.json cannot be opened on another machine even with the passphrase. It follows the account, not the hardware. Before a new machine, a new OS account, an OS reinstall or an administrator resetting your password, run stealthy login export FILE for a passphrase-only copy; stealthy login bind ties a copy, or a vault made before 2.1.70, to this account. A machine with no key store gets a passphrase-only vault, and stealthy login status says which you have.
Where it types. For a login with a sign-in page: only on https and a host exactly in the entry's hosts (default: the login URL's host). For a login that names only its site: only on https pages of exactly the hosts recorded in its hosts, which stealthy vault add fills in with the site, www.
Recording the hosts (vault add SITE, login pin LABEL). With the vault unlocked in a backend of this release, stealthy vault add amazon.ca first has the backend open a browser, walk from https://amazon.ca/ to the sign-in form (following a sign-in link to any host of the site) and type nothing, then prints the hosts that sign-in used (sign-in hosts of amazon.ca: amazon.ca, www.amazon.ca, accounts.amazon.ca (its form is on accounts.amazon.ca), a warning for any that is not the site or www., and a note for a form that posts to another domain or a host name an entry cannot hold, which is never recorded; the CLI checks each host again first) before it asks for the username and password. What was shown is what is written; no agent can cause this, since it is a CLI action behind the backend's bearer token and not a tool. Without an unlocked backend, a terminal or a form it can find, the login is stored with the site and www.
A login from before hosts were recorded. An entry that names only its site and has no hosts keeps the gate it always had, the site and www.
How it finds the form. The sign-in page, when there is one, is opened first. A login with only a site opens https://
A form inside an iframe. Many sign-in pages draw their form in an iframe on another host (a seller portal's top page holds no input at all). The login looks at the page and its direct child frames, waits for a frame that is added late or draws its form late (the same wait as for any form), and reaches a frame Chrome serves from another process (any cross-site iframe, and a sandboxed one: --disable-features=site-per-process does not prevent it) through that frame's own DevTools session. It types there only when the frame's host, the page around it AND the host the form submits to are all allowed. When the only form is in a frame whose host is NOT allowed, login answers needs_user and says so, with the one command that allows it, for example the sign-in form is in a frame on secure.newegg.com, which this login does not allow, so nothing was typed; a person can allow it with stealthy login edit newegg --host partner.newegg.com --host secure.newegg.com``. --host replaces the list, so the command names every host; nothing is ever widened for you.
Bot-trap fields are never typed into. Some sign-in pages carry inputs a fraud vendor plants for a bot to fill (a password box off the screen, at opacity 0, clipped to a point, behind another element). Typing the real password into one flags the account and hands the password to the vendor. The login uses an input only when a person could: a real box of at least 8 px, not hidden by itself or any ancestor (display, visibility, opacity, aria-hidden, inert, a zero clip), not tabindex=-1, not scrolled away or clipped out by a parent, and not covered (the point at its centre is the input, a part of it or its label). Of several password fields the one the page calls current-password, then the one whose form has a visible submit button, comes first. When no usable form is found the answer says what each frame held, by host and counts only: no username or password field was found on the page (looked at: the page on partner.example.com: 0 input(s); a frame on secure.example.com: 3 input(s); usable: 1 username; not usable: 2 offscreen).
Every login says what it did. The result carries a trace: the steps the sealed tab took, each with the page (scheme://host/path, never a query string or fragment), the milliseconds since the start and what it saw (kinds and counts of fields, each frame's host and whether this login allows it, the sign-in link it chose and the best three candidates, the gate's decision, the error text the page showed after the submit). It never holds the password, a code, a field's value, a cookie or page HTML, and the username only for a --show-username login. A refusal ends with the same steps on one line, and the audit log keeps them: stealthy login audit --last prints the last attempt step by step, stealthy login audit --label amazon shows one login's attempts. Where a person can fix it, the answer names the command (stealthy login edit LABEL --host ..., --login-url ..., stealthy login list).
home_url: the page that shows you are signed in. After a sign-in is typed the sealed tab asks one question of the site's own page (no form, no "sign in" on it, a settled page). It asks the root of the host, which for some sites never shows the session (the answer is then the safe needs_user, cause not_confirmed, and its detail says which page to name). stealthy vault add ... --home-url URL or stealthy login edit LABEL --home-url URL ("" clears it) names that page instead: https, on the login's own site or a subdomain, no credentials, query or fragment. It is only read, never typed on and never added to the hosts a password may be typed on, so setting it needs no passphrase on the passwordless add route; it shows in stealthy login list.
Every login answer names one cause and one command. login returns cause (a small fixed set such as no_form, host_not_allowed, password_rejected) and next, the command to run. When a login "just says needs_user", run stealthy login why LABEL: no passphrase, it prints the last attempt in plain words with the steps it took and the command to run next.
stealthy login try LABEL --watch signs the login in in a visible window and narrates each step; on a failure the window stays open on the page it stopped at and a debug bundle (trace.json, no secret, safe to hand to an agent; --share adds screenshots of a fresh load of the first and last page) is written under the state dir. The vault must be unlocked first.
After a refusal. One rejected freezes that entry until stealthy login edit clears it, so an agent cannot retry a wrong password into an account lockout. stealthy login audit lists every attempt (no secret, no username).
Defence in depth. Registered passwords, plain and URL-encoded, are also masked in Sentry events, log lines (tracebacks too) and the debug view and export, and a release-gate test searches all of them after a real login.
DevTools. A page cannot reach Chrome's debug port, and no tool can load a DevTools window or chrome://inspect (navigate and new_tab refuse them, whatever the spelling: percent-encoded, upper-case, with a port or userinfo, behind about: or view-source:, with a soft hyphen or an ideographic full stop in the host); one that appears anyway (a headed person's F12, execute_cdp_command) is hidden from every tool, and the login closes it, or refuses to type if it cannot, before it types a field. A login therefore closes every DevTools window open in that browser; the result says how many (closed_devtools_windows, counted for that browser only; a login never closes a window in another browser). If the guard's connection to the browser drops, the windows it knew stay barred and a login in flight stops, clearing what it typed. Marks on chrome:// and file: pages also stay while the browser is alive, and nothing updates them after the guard ends, so a page that later navigates to one of those is not barred by the guard (the URL tools still refuse to load them); the marks of a browser that is gone are dropped, and the bars on DevTools windows of a dead browser are not.
While a login runs. Every browser-internal page (chrome://, chrome-extension://, chrome-untrusted://, devtools:// and the like) is hidden from list_tabs, refused by every tool and cannot be loaded by navigate or new_tab; about:blank and the new-tab page still work, and outside a login chrome:// pages are ordinary. go_back and go_forward are refused for the duration too.
Vault mode. The agent's tools are an unusually large surface: some run code, some write files where code loads, some read any file. So while a vault file exists (locked or unlocked) every raw or unbounded capability is refused in every backend, from one list (embedded/vault_mode.py), with a message that names the vault and stealthy login destroy; with no vault each of them behaves exactly as before. Refused: (1) create_python_binding and create_dynamic_hook, which run the caller's Python inside the backend with its authority; (2) execute_cdp_command (raw CDP can point Chrome's downloads at any folder, read a local file into a page or load code, and no list of methods is safe; list_cdp_commands still works); (3) spawn_browser(browser_args=...) switches other than --window-size, --window-position, --start-maximized, --lang, --accept-lang, --user-agent and the one value --disable-blink-features=AutomationControlled (and http(s) start pages; the other feature-list switches --disable-features, --enable-features and --enable-blink-features, and any other value of --disable-blink-features, are refused, because the feature names are an open list that includes site isolation and private-network protections), because Chrome has switches that write a file you name (--log-file) or start a program (--renderer-cmd-prefix, --gpu-launcher), and user_data_dir as a path (a session NAME still works); (4) file: URLs in navigate, new_tab and create_simple_dynamic_hook, and any tab that reaches one, which is hidden and blanked like an inspector (a page there could read vault.json); (5) a pickle export (export_debug_logs writes JSON in the mode); (6) a download folder of the page's choosing: every browser a backend drives is pinned to ~/Downloads/stealth-mcp-downloads under generated names, re-asserted every five seconds (the same pass hides a chrome:// page that was already open when the vault appeared; until the pass reaches that page, a tool called with no tab_id can still act on it, and a pass takes more than its five seconds' interval to arrive when the machine is slow: seconds on a cold one, 11 s measured for a first pass), so a page cannot save evil.pth anywhere. Two limits, stated plainly: a browser that was already running when the vault appeared can still hold its old download folder for up to five seconds (no tool can change it in that window; page script could still start a download), and it keeps whatever launch switches it was started with (a proxy, --remote-allow-origins=*, an old --user-data-dir path): the mode pins its downloads and bars file: pages, it does not rewrite the browser; (7) chrome://, chrome-untrusted:// and devtools:// pages: hidden from the tools and refused by every URL tool, always, and a call that names no tab_id is refused when the tab it would act on is one a person left current (call new_tab, or pass the tab_id of a tab you opened); the new-tab page and about:blank work. A tab the backend cannot identify is refused the same way, so in vault mode a call with no tab_id can fail until you call new_tab. Such a page can send commands to the browser itself. JavaScript-only tools (execute_script, inject_and_execute_script, create_persistent_function, execute_python_in_browser, which compiles to JavaScript) and create_simple_dynamic_hook stay available. stealthy login init lists all seven before it asks for a passphrase and refuses while any backend this machine knows has already run caller Python, or cannot say (an older release, a process that does not answer, an unreadable server.json: restart it, then run init again); unlock and status run the same check, status prints vault mode: ON and each restriction, and stealthy login destroy locks every backend and deletes the vault, which turns the mode off. Older releases: a backend of a release before vault mode has no gate at all, so restart every backend on this release before you create a vault and after you upgrade with one; until then that backend still has the Python tools. What this does not cover: The guarantee is against an agent that has only this MCP's tools. If caller Python ever ran on this machine before the vault was created, or the agent has any other way to run code as the same OS user (a shell tool, for example), nothing here can protect the vault from what that code left behind.
A site that shows its form again. A site that keeps showing its login form after a sign-in that worked reads needs_user; only a form that comes back in a new page, or a new error message, counts as a refused password (and freezes the login).
Files the tools read and write. export_debug_logs, export_network_data and take_screenshot never write a file the machine would run: not into any Python sys.path or site directory (the working directory excepted), the Python and virtual-environment trees, this package, OS startup folders or shell and PowerShell profiles, and never a file named like code (.pth .py .pyc .pyd .so .cmd .bat .ps1 .sh .lnk .exe .dll .vbs .js .desktop .plist and the like, in any case, with Windows' trailing dots and stream names folded); upload_file and import_network_data read nothing in a credential store, a browser profile or this server's state. These rules apply with or without a vault. The check resolves dozens of paths, so it runs on a worker thread and never stalls the backend.
Not covered. The signed-in session itself (an agent in a logged-in browser can act as you); any process running as your OS user, which can read the backend's memory or open Chrome's debugging port directly on the loopback interface (the guard keeps agent tabs out of it, not local processes); extensions installed in the profile and the operating system's own proxy and certificate store; your username, which Chrome's autofill may keep in the profile's Web Data (the password is never written to the profile); the profile the sign-in happens in, which is the shared one: a site's own code that trusts what it finds in its localStorage or IndexedDB could be steered by an agent that can run page script on that site (the vault cannot stop page JavaScript the agent runs on a site from rewriting that site's own storage or leaving it a service worker in the profile; the sealed tab only guarantees that no interception or hook is armed on it and that it ignores service workers); login flows that are not username-then-password (they return needs_user); two-factor completion and the "sign in with Google" account chooser (a later phase: use_provider only makes sure the provider account is signed in). --disable-logins removes the two tools.
On server restart, the process cleanup system:
Reaps only browsers whose owner backend is dead — every tracked browser records which backend started it, so two backends running side by side never reap each other's browsers
Keeps create_time tracking as a second net: never kills a process that started after the current server session began
Safely handles psutil.AccessDenied on Windows elevated processes
Headed Browsing and Where the Window Opens
A headed browser appears on the desktop of whichever process launched it, not of whichever session asked. Because sessions share a backend, a backend that was first started from an SSH login or a Windows service session cannot show a window to anyone — including the sessions running on the physical desktop.
So the backend is keyed by display context: one per desktop, plus one for a headless context. Discovery prefers a backend that can show a window, which means an SSH-driven spawn_browser(headless=False) automatically uses the desktop backend and its window opens on the real screen. Where no such backend exists, the spawn raises instead of handing back an invisible browser; run stealth-chrome-devtools doctor to see which contexts have a backend. Headless spawns work from anywhere.
# A disposable copy of the shared default session (what you get when you name none) spawn_browser() # A named session, with login persistence spawn_browser(session="github-session") # Same name while a browser still holds it → re-attached to THAT browser spawn_browser(session="github-session") # Headless with stealth (bad args auto-stripped) spawn_browser(headless=True, browser_args=["--enable-automation"]) # → stealth_args_stripped: ["--enable-automation stripped: sets navigator.webdriver=true"] MCP Tools
102 tools across 14 sections — the count is derived from the live tool registry, never hand-maintained. See the full navigation map →.
That is what the server serves, which is not the same as what the release gate proves. At the release SHA in the evidence ledger, 3 of those 102 are release-qualified: asserted end-to-end over the real stdio transport a client actually speaks. The rest are driven against real Chrome by the E2E suite but through an in-process seam, so they are served-unqualified at the wire — tested, not proved there. RELEASE_CONTRACT.md lists the state of each tool and is the only source for those numbers.
# Unit tests only (no Chrome needed) uv run pytest -m "not integration" # All tests (needs Chrome installed) uv run pytest # Verbose with short tracebacks uv run pytest -v --tb=short If your checkout path contains spaces or an &, uv run pytest fails with Failed to canonicalize script path — use the venv Python directly: .venv\Scripts\python.exe -m pytest -m "not integration". See CONTRIBUTING.md for the full test/gate workflow.
A comprehensive suite covers stealth arg filtering, profile resolution, orphan recovery, storage-cap sweeps, the ops CLI, and full browser integration.
Environment Variables
All optional. Defaults work for normal use. Set them in your shell, or in ~/.stealth-mcp/.env — every key is documented in .env.example.
A .env in your project directory is deliberately ignored. The backend is a shared process launched with whatever folder your MCP client had open, so reading the project's .env meant reading someone else's application config — which crashed the server outright on an ordinary DATABASE_URL and silently adopted that app's PORT, DEBUG, and SENTRY_DSN as the server's own.
Installs a stealthy command. It both operates the backend and drives its tools, so a shell can do anything an AI client can. (stealth-chrome-devtools is the same command under its older name — one CLI, two names, not two tools.)
Drive the browser from a shell
Every one of these talks to the backend your shell would be served by — the same one status reports — and starts one if none is running (--no-start makes that an error instead: a live backend is always used as-is, whatever build it is, but starting one can evict a wedged backend of another build). Output is a table on a terminal and JSON in a pipe:
stealthy ls # browser instances stealthy spawn --session seller-central --headed # recover a stranded login stealthy spawn --session staging --from seller-central # a new session, already logged in stealthy spawn --headed # a disposable copy of `default` stealthy spawn --headless --url https://example.com # no window; navigate once it is up stealthy nav e364 https://example.com --wait load # ids resolve by prefix stealthy call get_cookies --arg instance_id=e364c31b --arg domain=example.com stealthy tools --section browser-management stealthy spawn takes --headed (show a window) or --headless (no window) -- mutually exclusive -- and --url to navigate after spawning.
The server entry point (stealth-chrome-devtools-mcp) also accepts --standalone (run the stdio server in this process instead of bridging to the shared backend), --singleton-port PORT (the backend port to find or start; defaults to the standard backend port, and tests pass a free one to get a private backend) and --exit-if-unadopted (internal; HTTP only; the backend exits if no client reaches it within five minutes and it hosts no browser -- passed by the cold start that spawns a backend for a proxy, never by an operator running serve).
call reaches any tool the backend serves — there is no per-tool mirror here, so a newly added tool is callable the day it ships. --arg key=value values are JSON when they parse (headless=false, viewport_width=1200, browser_args=["--x"]) and plain strings when they do not; --json '
spawn --session
Exit codes are a closed set
Every failure there is becomes one of these, and errors are one line on stderr — a script never gets a raw traceback paired with Python's own exit 1:
--traceback adds the full stack after that one line; it never replaces it and never changes the code.
These four only read and preview — they change nothing, and the test suite runs them on every commit, so they are known to work:
stealthy status stealthy profiles stealthy cleanup stealthy cleanup --browser-session-cap-gb 12 status reports whether the backend is up plus the browser-session root and both caps; profiles lists profiles with size / role / in-use; cleanup previews the reclaimable disk (dry run), and --browser-session-cap-gb previews it at a tighter cap.
These are not auto-executed — --apply deletes, serve does not return, and doctor needs Chrome installed:
stealthy cleanup --apply # actually reclaim stealthy doctor # check Chrome / environment stealthy serve --http --port 19222 # start the server cleanup deletes idle auto-clones over the clone cap and trims idle named profiles down to their session state — logins kept — over the browser-session cap. It is a dry run unless you pass --apply, never touches in-use profiles, and uses the same selectors as the automatic sweep, so the preview matches --apply.
Preparing the default session
Start the MCP server
Call spawn_browser(session="default") — or, from a shell, stealthy spawn --session default --headed
Sign in to your accounts in the browser that opens
Close it with its session name — close_instance(instance_id=..., session="default"), or stealthy close
A spawn with no session never reaches default (F-966): it is always a disposable copy of its seed, whether or not default is open, so closing your own browser cannot close the shared one. close_instance refuses the default and fleet browsers unless it is given that session's name. The profile_selection in the answer (profile_role + the directory) says which you got — default, or clone.
Chrome, Chromium, or Microsoft Edge
uv (recommended) or pip
A desktop session for headed browsing (headless works from SSH, CI, and services)
Crashes and errors are reported to Sentry by default, so that a failure you hit is a failure we can see and fix. There is nothing to install and nothing to configure: the SDK ships with the package and the destination is built in.
What a report contains. The exception type and message, the stack trace, the package version, whether the package is an editable (development) install, and the platform. Three things are kept out of it:
your machine name (Sentry's server_name) is dropped entirely;
your username is removed from every path, so a stack frame reads C:\Users\~\..., /home/~/... or /Users/~/... instead of your home directory;
local variables are not captured at all. The Sentry SDK sends them by default; we turn that off, because a local in this tool can hold a proxy password, an Authorization or Cookie header, or a script you asked it to run — secrets that no path rule could rescue.
That is universal — it runs on every install, ours included, and there is no way to opt back into sending those fields. What it deliberately leaves alone is the part that makes a report useful: the error type, the module path after the home segment, the source line that failed, and the release it came from.
An error message still quotes whatever the failing call was working with — a URL you navigated to, a file you asked for. If that is not a trade you want to make, turn reporting off.
To turn it off, set one variable in your shell or in ~/.stealth-mcp/.env:
STEALTH_MCP_NO_ERROR_REPORTING=true Earlier releases read SENTRY_DSN from the environment. They no longer do — that variable belongs to your application, and a shared backend launched from your project folder was picking it up. See Environment Variables for why this tool ignores your project's .env entirely.
git clone https://github.com/DevinoSolutions/stealth-chrome-devtools-mcp cd stealth-chrome-devtools-mcp uv sync --extra dev --extra test # install linters + test deps npm install # arm husky pre-commit/pre-push hooks The six quality gates run automatically on every commit: ruff format, ruff check, ty check, vulture, suppression-owner check, file-budget check. Unit tests run on pre-push.
CLAUDE.md — conventions + glossary; the navigation map of the source tree is NAVMAP.md
DESIGN.md — architecture invariants and the why behind them
RUNBOOK.md — operating the backend: verbs, logs, recovery, MCP smoke path
CONTRIBUTING.md — clone → install → test, the quality gate, conventions
Built by Devino Solutions
Released: Dec 5, 2026
Author: Devino Solutions
Both files in this release have provenance metadata.
View provenance details
AGPL-3.0-only View SPDX License List
dev sentry test transpiler
anti-bot browser-automation cdp chrome-devtools mcp nodriver stealth
Development Status 5 - Production/Stable
Intended Audience Developers
License OSI Approved :: GNU Affero General Public License v3
Programming Language Python :: 3
Topic Internet :: WWW/HTTP :: Browsers
Software Development :: Testing
Release files for stealth-chrome-devtools-mcp 2.1.73
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 5.4 MB
Release files / stealth_chrome_devtools_mcp-2.1.73.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Security for stealth-chrome-devtools-mcp 2.1.73
Both files in this release have been uploaded with provenance metadata.
With provenance stealth_chrome_devtools_mcp-2.1.73.tar.gz Dec 5, 2026
Attestation for stealth_chrome_devtools_mcp-2.1.73.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 5, 2026 2 release files Full provenance
Dec 4, 2026 2 release files Full provenance
Dec 3, 2026 2 release files Full provenance
Nov 26, 2026 2 release files Full provenance
Nov 21, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance
Nov 15, 2026 2 release files Full provenance
Nov 6, 2026 2 release files Full provenance
Oct 31, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 29, 2026 2 release files Full provenance
Oct 27, 2026 2 release files Full provenance
Oct 26, 2026 2 release files Full provenance
Oct 25, 2026 2 release files Full provenance
Oct 24, 2026 2 release files Full provenance
Oct 22, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Oct 17, 2026 2 release files Full provenance
Oct 14, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 11, 2026 2 release files Full provenance
Oct 10, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 8, 2026 2 release files Full provenance
Oct 7, 2026 2 release files Full provenance
Oct 6, 2026 2 release files Full provenance
Oct 5, 2026 2 release files Full provenance
Oct 1, 2026 2 release files Full provenance
Sep 30, 2026 2 release files Full provenance
Sep 27, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 21, 2026 2 release files Full provenance
Sep 19, 2026 2 release files Full provenance
Sep 18, 2026 2 release files Full provenance
Sep 16, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 11, 2026 2 release files Full provenance
Sep 2, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 30, 2026 2 release files Full provenance
Aug 3, 2026 2 release files Full provenance
Aug 2, 2026 2 release files Full provenance
Aug 1, 2026 2 release files Full provenance
Jul 31, 2026 2 release files Full provenance
Jul 30, 2026 2 release files Full provenance
Jun 26, 2026 2 release files Full provenance
Jun 23, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











