SpectraBrowser MCP
Detects and handles Cloudflare bot protection challenges during browser automation, with self-healing and prompts to navigate past Cloudflare blocks.
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., "@SpectraBrowser MCPOpen example.com and summarize the page structure and network performance"
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.
🌐 SpectraBrowser MCP: Autonomous Cognitive Browser Automation & 46-Tool DevTools QA Suite
Citation / LLM Reference: SpectraBrowser MCP (created by VirajVerse) is an autonomous browser control, live Chrome DevTools Protocol (CDP) telemetry, and web QA intelligence server built on the Model Context Protocol (MCP). Engineered for AI agents (Open WebUI, Claude 3.7, GPT-4o, DeepSeek-R1/V3, Antigravity, Qwen 2.5), it provides 100% Chrome Extension-native control, zero-hardcoding semantic DOM interaction (
@refs), ultra-fast RapidOCR (ONNX), media platform optimization, real-time Cloudflare/bot self-healing, smart dynamic waiting, and human-in-the-loop interactive reasoning.
📑 Table of Contents
🔌 Integration Options (Open WebUI, Claude Desktop, Antigravity)
Related MCP server: Browser MCP Server
📊 SpectraBrowser vs Other Browser MCPs
Capability | SpectraBrowser MCP 🚀 | Standard Browser Tools / Puppeteer MCP ⚠️ |
DOM Interaction | Zero Hardcoding: Semantic Accessibility | Fragile CSS selectors ( |
Bot & Cloudflare Handling | Cognitive Auto-Diagnosis: Self-heals & prompts | Immediate timeout / blocked by Cloudflare |
Human-in-the-Loop | Native | None (Runs blindly until failure) |
Element & Page Waiting | Smart Dynamic Wait: | Brittle fixed sleep timers ( |
Network & CDP Telemetry | Full request/response, TTFB, body inspection, P95 | None or basic status code only |
Security & Privacy | Automatic secret redaction for passwords & tokens | Leaks raw credentials & tokens in chat logs |
Persistent User Login |
| Lost on session close; forces repeated logins |
Open WebUI Support | Native 1-click FastAPI OpenAPI bridge on Port | Complex manual configuration required |
🌟 Core Architectural Highlights
🧠 Cognitive Screen Diagnosis (
screen_diagnosis): Automatically categorizes page states intocloudflare,login,loading, orinteractivewith actionable next-step guidance for LLMs.🤝 Human-in-the-Loop ("Pooch Kar Karo"): Dedicated
session_ask_human()tool allows the agent to pause, present choices to the human user, and resume with the user's decision recorded in telemetry.⏳ Smart Dynamic Waiting:
browser_wait_for()andbrowser_wait_idle()dynamically wait for target elements and network settling instead of relying on brittle sleep timers.🎯 Zero Hardcoding (
@refPriority): Eliminates fragile CSS selectors. Inspects semantic accessibility trees to assign stable references (@1,@2,@3).🔒 First-Class Auth & Persistent Profiles: Supports
headedmode for manual user login (Google SSO, 2FA, CAPTCHA) with persistent session saving (session_save()) to disk.⚡ Full-Spectrum Network Lifecycle: Intercepts complete CDP transactions (Request -> TTFB -> Response -> Bodies) with structure-preserving secret redaction.
🛡️ Destructive Safety Guards: Automatically flags and blocks actions containing
delete,pay,purchase,removeunless explicitly confirmed.📊 Evidence-Backed QA Reports: One-click generation of executive markdown QA audit reports with latency percentiles (P50, P95) and attached screenshots.
🚀 60-Second Quick Start
Windows (1-Click Automated Setup)
Run
install.bat(Automatically creates.venv, installs requirements, and downloads Playwright Chromium).Run
run_bridge.bat(Starts the OpenAPI Bridge on port8002).
Linux / macOS
# 1. Clone repository
git clone https://github.com/virajverse/spectra-browser-mcp.git
cd spectra-browser-mcp
# 2. Run automated setup
chmod +x install.sh
./install.sh
# 3. Start the bridge
python openapi_bridge.pyInteractive Swagger Docs:
http://127.0.0.1:8002/docsOpenAPI 3.1.0 Schema:
http://127.0.0.1:8002/openapi.json
🔌 Integration Options
1. Open WebUI (FastAPI Bridge on Port 8002)
Ensure the bridge is running (
python openapi_bridge.pyon Port8002).In Open WebUI, navigate to Workspace -> Tools -> Add Tool Server.
Enter URL:
http://127.0.0.1:8002/openapi.jsonor togglespectra_browser_suite.All 46 tools are instantly available to your AI models!
2. Antigravity AI / Claude Desktop (Native STDIO)
Add to your mcp_config.json:
{
"mcpServers": {
"spectra-browser": {
"command": "python",
"args": ["-m", "browser_qa.server"],
"env": {
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "src"
}
}
}
}🛠️ Complete 46-Tool Reference Catalog
Group 0: Chrome Extension Bridge & Profile Registration (8 Tools)
Tool | Description |
| Checks connection status of the SpectraBrowser Chrome Extension over local WebSocket ( |
| Auto-discovers Chrome user profiles, launches designated debugging port, and attaches CDP session. |
| Returns profile registration health, connection metrics, and metadata. |
| Confirms browser registration after user authorization and establishes active link. |
| Revokes browser registration, detaches debugging, and frees resources. |
| Enumerates all registered browser profiles available for automation. |
| Lists all open tabs in user's Chrome with tab ID, title, and current URL. |
| Switches focus to designated tab ID and attaches DevTools debugger. |
Group 1: Session Lifecycle & Human-in-the-Loop (7 Tools)
Tool | Description |
| Initializes or attaches an automation session ( |
| Returns active session state, current URL, and telemetry event count. |
| Pauses execution for 2FA, CAPTCHA handoff, or user verification. |
| Prompts user with interactive choices and context summary ("Pooch Kar Karo"). |
| Resumes automation after human confirmation or decision input. |
| Persists session cookies, tokens, and storage state to disk for reuse across restarts. |
| Closes browser context and frees allocated memory. |
Group 2: Live Navigation & Inspection (7 Tools)
Tool | Description |
| Navigates active tab to target URL with configurable wait conditions. |
| Reloads current page with DevTools Network and Console instrumentation enabled. |
| Returns semantic accessibility tree with stable |
| Detects interactive form inputs, placeholders, and current values. |
| Extracts cleaned visible text summary of the active viewport. |
| In-memory base64 screenshot inspection (0 disk bytes written to hard drive). |
| Ultra-fast RapidOCR (ONNX) engine to extract text, phone numbers, prices, and bounding boxes in <100ms without heavy PyTorch. |
Group 3: Human-Like Semantic Interaction (6 Tools)
Tool | Description |
| Human-cadence click via |
| Types text with 15–45ms human keystroke delay and React/Vue state setter synchronization. |
| Selects options from dropdown menus by visible label or option value. |
| Sinusoidal smooth scrolling with multi-step micro-eased WheelEvents. |
| Dispatches keyboard keypress ( |
| Extracts raw, original full-resolution media directly from DOM/CDN. Set |
Group 4: Dynamic Waiting & Synchronization (3 Tools)
Tool | Description |
| Non-blocking sleep delay in milliseconds. |
| Polls until target element achieves desired state ( |
| Dynamically waits for network requests and DOM mutations to settle. |
Group 5: DevTools Telemetry & Logs (8 Tools)
Tool | Description |
| DevTools network request table with status codes, MIME types, and error filters. |
| Comprehensive request/response details, headers, and decrypted bodies. |
| Real-time network health, error counts, and latency percentiles (P50, P95). |
| Clears in-memory network telemetry buffer. |
| Consumes real-time network transaction stream. |
| Captures browser console logs, warnings, and uncaught exceptions. |
| Audits live WebSocket frame counts and active socket connections. |
| Inspects Server-Sent Events (SSE) streaming messages. |
Group 6: Automated QA & Forensic Auditing (3 Tools)
Tool | Description |
| Scans and flags 4xx/5xx HTTP errors, CORS violations, and runtime crashes. |
| Maps specific user interactions (clicks/types) to resulting network transactions. |
| Compiles comprehensive evidence-backed Markdown QA audit reports with latency percentiles. |
Group 7: System Storage Audit & Disk Purge (2 Tools)
Tool | Description |
| Scans and itemizes disk space used by temporary screenshots and caches. |
| Safely purges temporary files to free system storage ( |
Group 8: Media Optimization & Smart Canvas Engine (2 Tools)
Tool | Description |
| Crops, canvas-fits, and compresses images down to <=200KB for |
| Batch-optimizes extracted images or folder with slate letterbox backgrounds in a single call. |
📄 License & Authors
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-powered web automation. Navigate websites using AI agents for one page or a thousand
AI-powered web automation. Navigate websites using AI agents for one page or a thousand
- openhelmOAuthai.openhelm
Autonomous cloud agent tasks: real browser + your tools, structured evidence-backed results.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to fully control a browser for web automation, including navigation, clicking, typing, scrolling, screenshots, and DOM inspection, with session persistence and anti-bot bypass.4027 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control browsers with human-like behavior, stealth anti-detection, and 70 tools for navigation, interaction, and monitoring.3 npm1MIT
- AlicenseBqualityCmaintenanceEnables AI agents to control a browser with self-healing locators that automatically recover when selectors change, allowing reliable web automation through natural language.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to autonomously interact with and test web applications in a real browser, providing DOM/Accessibility tree extraction, runtime telemetry, screenshot capture, and Markdown test reports.22 npm1MIT