Skip to main content

AI-native stealth browser MCP server — Browser Use + Patchright

Project description

wraith-mcp

PyPI License: MIT

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 2 (browse, extract) 20+ 90+ via Agent
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"

Quick Start

Add wraith-mcp as MCP server

Install

pip install wraith-mcp

Setup

Add to your MCP config (.mcp.json, .cursor/mcp.json, .windsurf/mcp.json, etc.):

{
  "mcpServers": {
    "wraith": {
      "command": "wraith-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "your-key",
        "HEADLESS": "true"
      }
    }
  }
}

Works with any MCP client: Cursor, Windsurf, VS Code, Cline, Roo Code, OpenCode, Codex, and more.

Tools

Tool Description
browse Execute any browser task in natural language
extract Pull structured data from a page
screenshot Capture a page as base64 PNG
close_session Close a persistent browser session

All tools support session_id for persistent sessions across multiple calls.

LLM Providers

Provider Key
Anthropic (default) ANTHROPIC_API_KEY
OpenRouter OPENROUTER_API_KEY
OpenAI OPENAI_API_KEY
DeepSeek / Groq / Together OPENAI_API_KEY + OPENAI_BASE_URL
Google Gemini GOOGLE_API_KEY
Ollama (local) OLLAMA_MODEL

All providers included. Set BROWSER_USE_MODEL to override the default model.

Docker

docker build -t wraith-mcp .
docker run -i --rm -e ANTHROPIC_API_KEY=your-key wraith-mcp

SSE mode (remote/cloud):

docker run -p 8808:8808 -e ANTHROPIC_API_KEY=your-key wraith-mcp

SSE Transport

wraith-mcp --transport sse --port 8808

How It Works

AI Agent -> MCP Server -> Browser Use Agent -> Patchright Chromium
  1. Describe a task in natural language
  2. Browser Use sees the page (screenshot + DOM) and decides actions
  3. Patchright executes without triggering bot detection

Security

  • URL scheme validation (http/https only)
  • max_steps capped at 50 server-side
  • Input length capped at 4000 chars
  • Task timeout (default 120s, configurable via BROWSER_TASK_TIMEOUT)
  • Proxy support via PROXY_SERVER

Limitations

  • Binary-level stealth only (no Runtime.enable CDP fix)
  • Enterprise WAFs may still block without residential proxies
  • Fresh browser per call (~3s startup)
  • Requires an LLM API key

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wraith_mcp-0.2.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wraith_mcp-0.2.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file wraith_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: wraith_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wraith_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 967cb76ebc1509dc8e5604ef6c9b27677544eae069fdf35586e382090771607f
MD5 31c1e2fda6c8b18415e1960546d5a182
BLAKE2b-256 6aea7227abc2a2f5b7ae71a7a87d6d5745faf35d4ea07dea2b95a736071f3643

See more details on using hashes here.

Provenance

The following attestation bundles were made for wraith_mcp-0.2.1.tar.gz:

Publisher: publish.yml on Koreahwan/wraith-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wraith_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: wraith_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wraith_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca7efb4280b13de4c16d907a657d94a3fe44d308e7f84e34cc7436a0cdc80e3a
MD5 0d6f6631e9b97d68a69a3c85871a2990
BLAKE2b-256 1f451ad859e7fe5f6baddc85513c220e11ad38276779183a5bf5b1779ec3d397

See more details on using hashes here.

Provenance

The following attestation bundles were made for wraith_mcp-0.2.1-py3-none-any.whl:

Publisher: publish.yml on Koreahwan/wraith-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page