wraith-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wraith-mcp Log into my dashboard and download the monthly report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wraith-mcp
AI-native stealth browser MCP server. Tell it what to do — it figures out how.
Browser Use (AI vision navigation) + Patchright (bot detection bypass).
Why This One?
wraith-mcp | playwright-mcp | stealth-browser-mcp | browser-use-mcp-server | |
Navigation | AI vision (self-healing) | CSS selectors | CSS selectors | AI vision |
Bot detection bypass | Patchright (binary-level) | None | nodriver | None |
Tools | 17 — keyless | 20+ | 90+ | via Agent |
Keyless (no API key) | Yes — client AI drives low-level tools directly | Yes | Yes | No |
Site layout changes | Adapts automatically | Breaks | Breaks | Adapts |
LLM providers | 6 (Anthropic, OpenAI, OpenRouter, Google, Ollama, +compatible) | N/A | 1 | 1 |
One command does it all — no selectors, no step-by-step scripting:
"Log into my dashboard and download the monthly report"Related MCP server: MCP Playwright Server
Quick Start
Add wraith-mcp as MCP server
Install
pip install wraith-mcpSetup
Add to your MCP config (.mcp.json, .cursor/mcp.json, .windsurf/mcp.json, etc.):
{
"mcpServers": {
"wraith": {
"command": "wraith-mcp"
}
}
}Works with any MCP client: Cursor, Windsurf, VS Code, Cline, Roo Code, OpenCode, Codex, and more.
The browser window is visible by default. Set "HEADLESS": "true" in env
to run it headless — recommended for servers, CI, and Docker (the Docker image
already sets it).
These clients call Wraith over MCP. The low-level tools work with no API key —
your client's AI drives them directly. The autonomous browse/extract tools
use MCP sampling when supported, otherwise a fallback key (see below).
Do I Need an API Key?
No — for the low-level tools. navigate, snapshot, click, type_text,
scroll, press_key, get_content, screenshot, pdf, and tabs need no
API key: your MCP client's model (Claude Code, Codex, OpenCode, …) calls them
directly and is the brain, exactly like playwright-mcp.
Only the autonomous Agent tools — browse and extract, which plan the
steps themselves — need a model. They use MCP sampling when the client supports
it, otherwise a fallback provider key. Note that many clients, including Claude
Code today, do not implement MCP sampling, so browse/extract need a
fallback key there (ANTHROPIC_API_KEY, OPENROUTER_API_KEY, OPENAI_API_KEY,
GOOGLE_API_KEY, or Ollama via OLLAMA_MODEL). The low-level tools work either way.
Tools
Keyless — your client's AI drives the browser directly, no API key:
Tool | Description |
| Open a URL; returns the page's interactive elements |
| List interactive elements as |
| Click an element by index (from |
| Type text into an element by index |
| Scroll the page |
| Press a key or chord (e.g. |
| Current page as clean markdown |
| Capture a page as base64 PNG |
| Render a page to base64 PDF (headless only) |
| List, open, or close tabs |
| List files downloaded this session (saved to |
| Save cookies + localStorage to a file (restore via |
| Manage persistent sessions |
Autonomous AI Agent — needs MCP sampling or a fallback key:
Tool | Description |
| Execute any browser task in natural language |
| Pull structured data from a page |
The low-level tools share a persistent browser via session_id (default
"default"): call navigate once, then snapshot/click/type_text/… reuse
the same page. browse/extract also accept session_id.
Fallback LLM Providers
Use these only when your MCP client does not support sampling, or when you want to force Wraith to use an explicit provider.
Provider | Key |
Anthropic (default) |
|
OpenRouter |
|
OpenAI |
|
DeepSeek / Groq / Together |
|
Google Gemini |
|
Ollama (local) |
|
Set BROWSER_USE_MODEL to override the default model or provide a sampling model
hint to the MCP client.
Browser Options
Wraith keeps its default browser profile unless optional env vars are set. It can
forward Browser Use profile knobs for domain policy (BROWSER_ALLOWED_DOMAINS,
BROWSER_PROHIBITED_DOMAINS, BROWSER_BLOCK_IP_ADDRESSES=true for Browser
Use's direct-IP navigation block), session/artifacts (BROWSER_STORAGE_STATE,
BROWSER_USER_DATA_DIR, BROWSER_DOWNLOADS_PATH, BROWSER_RECORD_HAR_PATH,
BROWSER_RECORD_VIDEO_DIR, BROWSER_TRACES_DIR), and permissions, viewport, or
wait timing (BROWSER_PERMISSIONS, BROWSER_VIEWPORT,
BROWSER_MINIMUM_WAIT_PAGE_LOAD_TIME,
BROWSER_WAIT_FOR_NETWORK_IDLE_PAGE_LOAD_TIME, BROWSER_WAIT_BETWEEN_ACTIONS)
when the installed Browser Use BrowserProfile supports those fields. Domain/IP
policy env vars fail closed on unsupported Browser Use versions.
Locale & timezone (stealth): by default Wraith pins neither — it inherits the
host locale and timezone so they stay consistent with your exit IP. Forcing
en-US on a non-US IP is itself a bot signal, so set these only when routing
through a proxy: point BROWSER_LOCALE and BROWSER_TIMEZONE at the proxy's
region (e.g. en-US + America/New_York) so locale, timezone, and IP agree.
BROWSER_TIMEZONE is applied via CDP (Emulation.setTimezoneOverride) because
Browser Use's BrowserProfile has no timezone field.
Downloads: files save to ./downloads (relative to the server's working
directory) by default so they persist — Browser Use otherwise uses a temp dir
that gets cleaned up on session stop, losing the file. Override with
BROWSER_DOWNLOADS_PATH, and use the list_downloads tool to retrieve the saved
paths after a click/navigate triggers a download.
Docker
docker build -t wraith-mcp .
docker run -i --rm wraith-mcpSSE mode for local-only testing:
docker run -p 127.0.0.1:8808:8808 wraith-mcp --transport sse --host 0.0.0.0 --port 8808Do not expose the SSE port directly to an untrusted network. If you need remote
access, put it behind an authenticated proxy or SSH tunnel and restrict browsing
with BROWSER_ALLOWED_DOMAINS plus BROWSER_BLOCK_IP_ADDRESSES=true.
SSE Transport
wraith-mcp --transport sse --host 127.0.0.1 --port 8808The SSE host defaults to 127.0.0.1. Binding to 0.0.0.0 is only appropriate
behind an authenticated proxy or another trusted network boundary.
How It Works
Keyless (low-level tools) — your MCP client's AI is the brain:
Client AI -> MCP Server -> Patchright Chromiumnavigateopens a page and returns its interactive elementsThe client AI reads the
[index] <tag> textsnapshot and decides what to doIt calls
click/type_text/scroll/… by index — no model runs in WraithPatchright executes without triggering bot detection
Autonomous (browse/extract) — Wraith drives a Browser Use Agent:
AI Agent -> MCP Server -> Browser Use Agent -> Patchright ChromiumDescribe a task in natural language
Browser Use asks the MCP client model through sampling, or a fallback provider
Browser Use sees the page (screenshot + DOM) and decides actions
Patchright executes without triggering bot detection
Security
URL scheme validation (http/https only)
max_stepscapped at 50 server-sideInput length capped at 4000 chars
Task timeout (default 120s, configurable via
BROWSER_TASK_TIMEOUT)Proxy support via
PROXY_SERVERSSE transport binds to
127.0.0.1by default; do not expose it directly without authenticationBrowser Use page context is sent to the MCP client model via sampling, or to the configured fallback provider
Limitations
Binary-level stealth only (no
Runtime.enableCDP fix)Enterprise WAFs may still block without residential proxies
Fresh browser per call (~3s startup)
The low-level tools (
navigate/snapshot/click/…) are keyless — no model neededbrowse/extractneed MCP sampling or a fallback key; many clients (incl. Claude Code) don't implement sampling, so a fallback key is required there
License
MIT
Available Tools
17 toolsbrowseA
Execute a browser task described in natural language. The AI agent navigates and interacts with pages automatically. Resilient to site layout changes — no CSS selectors needed.
Args: task: What to do, e.g. "Search for 'AI news' and return top 3 results" url: Optional starting URL to navigate to first max_steps: Maximum interaction steps (capped at 50) session_id: Optional session ID to reuse an existing browser session
Inputs: task (required), url, max_steps, session_id. Returns: result
clickA
Click the element with the given index (from snapshot). Returns a new snapshot.
Args: index: Element index from snapshot session_id: Session to act on (default: "default")
Inputs: index (required), session_id. Returns: result
close_all_sessionsA
Close all active persistent browser sessions.
Inputs: no named parameters. Returns: result
close_sessionC
Close a persistent browser session.
Args: session_id: The session ID returned when the session was created
Inputs: session_id (required). Returns: result
extractA
Extract structured data from a webpage using natural language.
Args: url: Target URL data_description: What to extract, e.g. "all product names and prices in JSON" max_steps: Maximum interaction steps (capped at 50) session_id: Optional session ID to reuse an existing browser session
Inputs: url (required), data_description (required), max_steps, session_id. Returns: result
get_contentB
Return the current page as clean markdown (no LLM, no screenshot).
Args: session_id: Session to read (default: "default")
Inputs: session_id. Returns: result
list_downloadsA
List files downloaded in this session, with their paths.
Files are saved to ./downloads by default (override with BROWSER_DOWNLOADS_PATH). Call this after a click/navigate that triggers a download to find the saved file.
Args: session_id: Session to inspect (default: "default")
Inputs: session_id. Returns: result
list_sessionsA
List active persistent browser session IDs.
Inputs: no named parameters. Returns: result
pdfA
Render a webpage to PDF and return it as a base64-encoded PDF.
Keyless — navigates and renders directly, no LLM. Headless only (Chromium prints PDF only in headless mode).
Args: url: URL to render
Inputs: url (required). Returns: result
press_keyA
Press a key or chord (e.g. "Enter", "Control+a"), then return a new snapshot.
Args: keys: Key or chord to send session_id: Session to act on (default: "default")
Inputs: keys (required), session_id. Returns: result
save_storage_stateA
Save a session's cookies + localStorage (auth state) to a JSON file.
The file holds live authentication secrets — store it securely and never commit it. Restore it by setting BROWSER_STORAGE_STATE= before the session starts.
Args: session_id: An existing session ID (create one via browse/extract with session_id) path: File path to write the storage-state JSON to
Inputs: path (required), session_id (required). Returns: result
screenshotA
Take a screenshot of a webpage and return it as base64-encoded PNG.
Keyless — navigates and captures directly, no LLM.
Args: url: URL to screenshot full_page: Capture the full scrollable page (default: visible viewport only)
Inputs: url (required), full_page. Returns: result
scrollA
Scroll the page, then return a new snapshot.
Args: direction: up, down, left, or right amount: pixels to scroll (default 500) session_id: Session to act on (default: "default")
Inputs: amount, direction, session_id. Returns: result
snapshotA
Return the current page's interactive elements as [index] <tag> text.
Pass an index to click/type_text. Re-run after the page changes.
Args: session_id: Session to inspect (default: "default")
Inputs: session_id. Returns: result
tabsA
Manage browser tabs within a persistent session.
Args: session_id: An existing session ID action: One of "list", "open", "close" url: URL to open (action="open"; validated http/https) target_id: Tab target_id to close (action="close"; from action="list")
Inputs: action (required), session_id (required), url, target_id. Returns: result
type_textA
Type text into the element with the given index. Returns a new snapshot.
Args: index: Element index from snapshot text: Text to type session_id: Session to act on (default: "default")
Inputs: text (required), index (required), session_id. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have clearly distinct purposes: navigation, interaction, content reading, screenshots, PDFs, downloads, and session management are all separate. The only potential confusion is between browse, extract, and navigate, but their descriptions make the distinction clear.
Naming is mixed: some tools use bare verbs (browse, scroll, navigate, click, extract), others use verb_noun (type_text, get_content, close_session), and a couple are nouns used as commands (tabs, screenshot). The style is readable but not uniform.
With 17 tools, this is slightly above the ideal 3-15 range, but each tool covers a distinct browser or session operation, making the count justified. It feels a bit heavy but not excessive.
The server covers the core browser lifecycle well: navigation, interaction, content extraction, screenshots, PDFs, downloads, persistent sessions, and tabs. Minor gaps exist (e.g., no explicit history or wait commands), but workflows are largely complete.
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to control a real web browser with stealth capabilities, avoiding bot detection while performing tasks like clicking, filling forms, taking screenshots, and extracting data.1158 npm26MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI-powered browser automation, web scraping, and testing using Playwright across Chromium, Firefox, and WebKit. It allows users to perform actions like navigation, clicking, typing, and taking screenshots through natural language interfaces.24 npmMIT

@meshbrow/mcp-serverofficial
AlicenseNot gradedqualityCmaintenanceMCP server for Meshbrow that gives AI agents full browser automation capabilities with stealth anti-detection, enabling natural language control of browser sessions, data extraction, and multi-browser fleets.MIT- AlicenseNot gradedqualityDmaintenanceA stealth-enhanced browser automation MCP server for AI agents to interact with websites while bypassing anti-bot detection mechanisms like Cloudflare and reCAPTCHA.9MIT