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 & 99-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, resilient self-healing clicks, and human-in-the-loop interactive reasoning across 99 production tools.
π Table of Contents
𧬠Dynamic Cognitive Reasoning & Combinatorial Pattern Engine
π Integration Options (Open WebUI, Claude Desktop, Antigravity)
π οΈ Complete 99-Tool Reference Catalog (15 Groups)
Group 0: Chrome Extension Bridge & Profile Registration (8 Tools)
Group 3: Media Extraction, Wait & Vision Inspection (6 Tools)
Group 9: Session Memory, Action Timeline & Failed Targets (9 Tools)
Group 12: Auth, Health & Resilient Self-Healing Interaction (7 Tools)
Group 13: Advanced Vision, Layout Geometry & Spatial Semantics (9 Tools)
Group 14: Script Library, Site Adapters & Infinite Harvesting (9 Tools)
Group 15: Unified Vision Modes & Cognitive Page Seeing (3 Tools)
Related MCP server: AI Web Tester
π SpectraBrowser vs Other Browser MCPs
Capability | SpectraBrowser MCP π | Standard Browser Tools / Puppeteer MCP β οΈ |
Tool Count | 99 Verified Tools covering DOM, CDP, Memory, Macros, Vision | 10β15 basic tools |
DOM Interaction | Zero Hardcoding: Semantic Accessibility | Fragile CSS selectors ( |
Self-Healing Clicks |
| Fails immediately on element re-render |
Human-in-the-Loop | Native | None (Runs blindly until failure) |
Element & Page Waiting | Smart Dynamic Wait: | Brittle fixed sleep timers ( |
DevTools Telemetry | Full request/response, TTFB, P50/P95 latency percentiles, WebSocket, SSE | None or basic HTTP status code only |
Test & Macro Engine | Built-in Replay Recorder: Record actions & export replayable JSON | Requires external test framework setup |
Memory & Timelines |
| Stateless; forgets prior steps on re-render |
OCR & Vision | Ultra-fast RapidOCR (ONNX) + | Heavy PyTorch or Cloud VLM API calls |
Open WebUI Support | Native 1-click FastAPI OpenAPI bridge on Port | Complex manual configuration required |
𧬠Dynamic Cognitive Reasoning & Combinatorial Pattern Engine
SpectraBrowser is engineered so AI models do not rely on hardcoded automation scripts. The 99 tools represent orthogonal primitives that can be composed into infinite emergent patterns via 4 Fundamental Seed Archetypes:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β THE 4 CORE PRIMITIVE SEED ARCHETYPES β
βββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββ¬ββββββββββββββββ΄ββββββββββββββββ¬βββββββββββββββββββββββ
βΌ βΌ βΌ βΌ
ββββββββββββββββββββ βββββββββββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββββββββ
β [Archetype 1] β β [Archetype 2] β β [Archetype 3] β β [Archetype 4] β
βSensory Observationβ β Dynamic Sync, Waits & β β Human-Cadence β β State Memory, β
β& Layout Geometry β β Telemetry Radar (CDP) β β Action & Recoveryβ β Macros & Forensics β
β (The Eyes) β β (The Senses) β β (The Hands) β β (The Brain & Log) β
ββββββββββββββββββββ βββββββββββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββββββββFrom these 4 seeds, agents dynamically synthesize emergent workflows on the fly:
Zero-Failure Mutation Pattern ($1 \rightarrow 3 \rightarrow 2 \rightarrow 3_{\text{retry}} \rightarrow 4$): Inspect accessibility tree β type/click with human physics β dynamic wait for network settle β self-heal via fingerprint relocation if DOM shifted.
Infinite Feeds Harvester ($1 \rightarrow 3_{\text{scroll}} \rightarrow 1_{\text{table}} \rightarrow 4_{\text{mem}}$): Classify layout zones β perform sinusoidal scroll harvesting β extract structured JSON table data β persist into session memory.
Flaky Interaction Test Case Generator ($4 \rightarrow 1 \rightarrow 3 \rightarrow 2 \rightarrow 4$): Start test recorder β interact with targets β intercept network 4xx/5xx anomalies β export replayable JSON test case with full CDP timings.
Human-in-the-Loop Safe Mutation ($1 \rightarrow 4_{\text{ask}} \rightarrow 3 \rightarrow 4_{\text{report}}$): Flag destructive keywords (
delete,pay) β pause and prompt human with choices β resume on approval and generate forensic audit trail.
π Core Architectural Highlights
π§ Cognitive Screen Diagnosis & Zones (
page_understand): Classifies layout intoheader,nav,sidebar,main,footer,modalfrom geometry.π€ Human-in-the-Loop ("Pooch Kar Karo"): Dedicated
session_ask_human()pauses execution, presents choices to the human user, and logs the decision.β³ Smart Dynamic Waiting:
browser_wait_for()andbrowser_wait_idle()dynamically wait for target elements and network settling.π― Zero Hardcoding (
@refPriority): Inspects accessibility trees to assign stable references (@1,@2,@3) with 0 disk bytes used.π‘οΈ Self-Healing Actions:
browser_click_retry,browser_click_fallback, andelement_fingerprint/relocate_elementsurvive page re-renders.β‘ DevTools Telemetry & Forensics: Intercepts complete CDP transactions (Request -> TTFB -> Response -> Bodies) with structure-preserving secret redaction.
π Evidence-Backed QA Reports: One-click generation of executive markdown QA audit reports with latency percentiles (P50, P95).
π 60-Second Quick Start
Windows (1-Click Automated Setup)
Run
install.bat(Creates.venv, installs dependencies, and downloads Playwright Chromium).Run
run_bridge.bat(Starts the OpenAPI Bridge on port8002).
Linux / macOS
# 1. Clone repository & run setup
git clone https://github.com/virajverse/spectra-browser-mcp.git
cd spectra-browser-mcp
chmod +x install.sh
./install.sh
# 2. 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 99 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 99-Tool Reference Catalog (15 Groups)
Group 0: Chrome Extension Bridge & Profile Registration (8 Tools)
Tool | Description |
| Checks connection status of the Spectra 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 (string) 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 & Semantic Interaction (7 Tools)
Tool | Description |
| Navigates active tab to target URL with configurable wait conditions. |
| Reloads current page with DevTools Network and Console instrumentation enabled. |
| 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 ( |
Group 3: Media Extraction, Wait & Vision Inspection (6 Tools)
Tool | Description |
| Extracts raw, original full-resolution media directly from DOM/CDN without viewport crops. |
| Non-blocking sleep delay in milliseconds. |
| Polls dynamically until target element achieves desired state ( |
| Dynamically waits for network requests and DOM mutations to settle. |
| In-memory base64 screenshot inspection (0 disk bytes written by default). |
| Ultra-fast RapidOCR (ONNX) engine to extract text, phone numbers, prices, and bounding boxes in <100ms. |
Group 4: Page Inspection & Semantic DOM (3 Tools)
Tool | Description |
| Returns semantic accessibility tree with stable |
| Detects interactive form inputs, placeholders, and current values. |
| Extracts cleaned visible text summary of the active viewport. |
Group 5: DevTools Telemetry & Network Forensics (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. |
Group 9: Session Memory, Action Timeline & Failed Targets (9 Tools)
Tool | Description |
| Stores a key-value pair in session working memory (survives pause/resume). |
| Retrieves a value from session working memory. |
| Deletes a key from session working memory. |
| Lists all keys/values in session working memory. |
| Clears all session working memory. |
| Returns recent action history with outcomes, network effects, and console errors. |
| Returns the last recorded browser action with outcome. |
| Lists failed click/type targets to avoid retrying blindly. |
| Clears failed-target memory. |
Group 10: Multi-Tab & Named Tab Handles (4 Tools)
Tool | Description |
| Creates a named tab handle for multi-tab orchestration. |
| Switches active automation to a named tab handle. |
| Closes/removes a named tab handle. |
| Lists all named tab handles in this session. |
Group 11: Macros & Test Recording Engine (12 Tools)
Tool | Description |
| Starts recording a macro (browser actions captured as replayable steps). |
| Stops macro recording and returns captured steps. |
| Lists all recorded macros. |
| Returns macro steps for inspection. |
| Deletes a recorded macro. |
| Replays a recorded macro step-by-step in the given session. |
| Starts recording an exportable test case. |
| Stops test recording, capturing steps + network + console evidence. |
| Lists all recorded test cases. |
| Returns full test case with steps and evidence. |
| Deletes a test case. |
| Exports a test case as replayable JSON with reproduction steps. |
Group 12: Auth, Health & Resilient Self-Healing Interaction (7 Tools)
Tool | Description |
| Detects login state ( |
| Checks session/extension health and recommends next action. |
| Clicks with auto-retry + exponential backoff on failure. |
| Tries multiple targets in order until one succeeds (e.g. |
| Builds a stable visual+structural fingerprint for an element (survives |
| Re-finds an element after re-render using a stored fingerprint object. |
| Finds elements by semantic text description (e.g. |
Group 13: Advanced Vision, Layout Geometry & Spatial Semantics (9 Tools)
Tool | Description |
| Compares two screenshots -> similarity % + changed regions bounding box. |
| Draws bounding boxes and labels on a screenshot. |
| Collects page performance signals (TTFB, FCP, DCL, load, resource transfer) via CDP. |
| Lightweight WCAG heuristic audit (alt, button names, labels, h1) -> score 0-100. |
| Extracts HTML tables into structured |
| Classifies page into layout zones ( |
| Spatial-aware find: handles |
| OCR-free layout fusion: visible text nodes WITH bounding boxes via CDP. |
| Extracts named fields by description (no CSS): |
Group 14: Script Library, Site Adapters & Infinite Harvesting (9 Tools)
Tool | Description |
| Stores a reusable JS snippet for later replay. |
| Lists stored JS snippets. |
| Returns a stored JS snippet. |
| Deletes a stored JS snippet. |
| Runs a stored JS snippet in the live tab via CDP. |
| Saves site-specific selector aliases, e.g. |
| Lists all site adapters. |
| Resolves friendly name to selector for a site. |
| Scrolls until N items loaded (infinite scroll), then counts matches. |
Group 15: Unified Vision Modes & Cognitive Page Seeing (3 Tools)
Tool | Description |
| Sets visual response mode: |
| Returns current visual response mode. |
| Unified 'see' combining text positions, layout zones, and optional screenshot. |
π License & Authors
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Cloud browsers for AI agents: saved logins, residential IPs, live human takeover, 57 browser tools.
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
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control browsers with human-like behavior, stealth anti-detection, and 70 tools for navigation, interaction, and monitoring.7 npm1MIT
- 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.30 npm1MIT
- AlicenseCqualityAmaintenanceEnables AI agents to automate real Chrome via a structured Semantic Action Graph, without screenshots, CDP, or bot detection. It supports clicks, form filling, navigation, and state diffs on strict-CSP sites and modern SPAs.75MIT
- AlicenseBqualityBmaintenanceEnables LLM agents to automate web browsers with token-efficient perception, stealth anti-detection, captcha solving, network interception, and isolated persistent sessions.51MIT