Enchanted MCP Server
Supports CrewAI autonomous agent swarms with browser automation capabilities, including navigation, action execution, DOM mutation diffing, form filling, and schema-based extraction.
Provides pre-built Grafana dashboards for visualizing Prometheus metrics and observing browser engine, API, and session telemetry.
Exposes Prometheus-format metrics at /metrics for monitoring browser engine, API, and session telemetry.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Obscura Enchanted Agent Engine
An ultra-lightweight (30MB RAM) browser runtime, Model Context Protocol (MCP) server, and production REST API engineered specifically for Autonomous AI Agent Swarms.
Key Highlights
30MB–35MB RAM Footprint: Native V8 execution without heavy Chromium/Blink layout overhead.
Semantic DOM Distillation: Token reduction of 80% to 95% while preserving headings, clean text, and structured tables.
Deterministic Action Grounding: Actionable controls automatically indexed with deterministic
[@ref:ID]tags for zero-ambiguity agent execution.DOM Mutation Diffing: Stateful diff engine returning only mutations (added, modified, removed elements) across sequential turns to save up to 95% tokens.
High-Concurrency REST + SSE API: Production FastAPI server with Server-Sent Events (SSE) for live browser event streaming.
Multi-Tier Caching:
SnapshotCache(LRU),ResponseCache(gzip-compressed HTTP responses), andRobotsTxtCache(per-domain compliance).Resilient Networking: Sliding-window rate limiting and exponential backoff retry with jitter.
Autonomous Multi-Page Crawler: Configurable breadth-first and streaming domain crawl engine with depth control and link deduplication.
Enterprise Observability: Prometheus metrics exposition (
/metrics), structured JSON logging, and pre-built Grafana dashboards.Production-Ready Deployment: Docker Compose with Nginx reverse proxy & Redis, plus complete Kubernetes manifests with Horizontal Pod Autoscaler (HPA).
Related MCP server: Fast Browser MCP
Architecture
Raw Web Page (HTML / SPA)
│
▼
Obscura Engine (30MB V8)
│
┌─────┴───────────────────────────────┐
▼ ▼
Semantic Distiller Mutation Differ
(Strips SVG/styles, (Emits only deltas
Injects [@ref:ID] tags) between agent turns)
│ │
└──────────────────┬──────────────────┘
▼
┌──────────────────┴──────────────────┐
▼ ▼
Enchanted MCP Server FastAPI REST + SSE Server
(JSON-RPC stdio transport) (High-concurrency cluster)
│ │
└──────────────────┬──────────────────┘
▼
Autonomous AI Agents & Swarms
(Claude, Cursor, Antigravity, AutoGen, CrewAI)Quickstart
1. Installation
git clone https://github.com/TechByteco/obscura_enchanted_agent_engine.git
cd obscura_enchanted_agent_engine
pip install -r requirements.txt2. Run Test Suite (20/20 Passing)
python run_tests.py3. Launch MCP Server (for Claude Desktop / Cursor)
python -m obscura_engine.cli serve4. Launch Production REST + SSE API Server
python -m obscura_engine.cli serve-api --host 0.0.0.0 --port 80005. Launch Autonomous Multi-Page Crawl
python -m obscura_engine.cli crawl https://news.ycombinator.com --max-pages 15 --max-depth 2Production API Endpoints
Method | Endpoint | Description |
|
| Navigates to a URL and returns a distilled snapshot |
|
| Executes click, type, select, or hover via |
|
| Returns the current distilled markdown snapshot |
|
| Emits only DOM mutations since the last step |
|
| Populates multiple form inputs in a single round-trip |
|
| Extracts repeating DOM rows/cards into JSON matching a schema |
|
| Lists active browser sessions |
|
| Creates an isolated browser session tab |
|
| Destroys an active session tab |
|
| Prometheus metrics and engine telemetry |
|
| Health check endpoint for load balancers and k8s |
|
| Live Server-Sent Events stream of browser actions |
For detailed curl examples and request schemas, see docs/API.md.
Deployment
Docker Compose (API + Nginx + Prometheus + Grafana)
docker compose -f deploy/docker-compose.prod.yml up -dKubernetes
kubectl apply -f deploy/k8s/configmap.yaml
kubectl apply -f deploy/k8s/deployment.yaml
kubectl apply -f deploy/k8s/service.yaml
kubectl apply -f deploy/k8s/hpa.yamlLicense
Apache-2.0 License. Built for autonomous AI agents and enterprise agent swarms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceLightweight browser automation server for AI agents, enabling fast (10-25ms per action), structured observations and semantic selectors with zero token overhead.6Apache 2.0- AlicenseBqualityBmaintenanceEnables AI agents and developers to automate real Chrome/Chromium browsers through the Chrome DevTools Protocol, with token-efficient snapshots, multi-action batching, shadow DOM traversal, system-page control, extension management, and network/WebSocket inspection.951MIT
- AlicenseNot gradedqualityAmaintenanceEnables an AI agent to observe, plan, and act inside a real browser session by exposing navigation, snapshot, click, type, and screenshot MCP tools over local JSON-RPC and SSE. It runs a Playwright-backed browser in-process and provides stable element references for reliable actions.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to browse and interact with web pages through a persistent headless Chromium session, serving compact structured orientations, targeted element queries, and full detail only when explicitly requested. It supports navigation, observation, form filling, monitoring, and session management while cutting token overhead by up to ~140x versus raw accessibility-tree dumps.4 npm-