Drishti Browser AI MCP Server
Controls a real Brave browser session through the Drishti extension, enabling agents to navigate tabs, click and type into elements, capture screenshots, inspect the DOM, and run multi-step automation.
Controls a real Google Chrome browser session through the Drishti extension, enabling agents to navigate tabs, click and type into elements, capture screenshots, inspect the DOM, and run multi-step automation.
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.
đī¸ Drishti Browser AI (ā¤ĻāĨ⤎āĨā¤ā¤ŋ) â v0.1.0 PRO
Universal AI Browser Automation Platform & Control Deck for Google Chrome & Brave via Model Context Protocol (MCP)
đ Live Status & UI Showcase
Drishti Browser AI connects autonomous AI agents (Google Antigravity, OpenCode, Claude Code, Cursor, Codex) directly to your real, daily Google Chrome or Brave browser sessions with zero cookie re-authentication, full target-tab locking, glowing visual element indicators, and transparent telemetry.
Drishti Control Deck (Target Tab Locked & Streaming) | Extension Gateway ( |
|
|
Interactive Live AI Test Lab | Real-World Autonomous Tab Automation |
|
|
Verified Live Telemetry:
Bridge: CONNECTED | Port: 7483 | Tabs: 2 | Latency: 4ms
Locked Target Tab: Data Structures Full Notes.pdf
Visual Element Indicator: Active (Glowing Cyan Bounding Box)
Scope: AUTO | Mode: Mode A (Daily Chrome Session Preserved)Related MCP server: Antigravity Browser Operator
đ Architecture & System Topology
The platform coordinates 3 autonomous layers over a zero-latency, SHA-256 authenticated local transport:
graph TD
subgraph AI_CLIENTS ["Autonomous AI Agents (Universal Multi-IDE)"]
AG["Google Antigravity\n(drishti-browser-agent skill)"]
OC["OpenCode Agent\n(Direct MCP)"]
CC["Claude Code\n(~/.claude/mcp.json)"]
CR["Cursor / Windsurf\n(Settings > MCP)"]
CD["OpenAI Codex / Hermes\n(Universal stdio / WS)"]
end
subgraph MCP_GATEWAY ["Drishti Gateway Layer (apps/mcp-server)"]
CLI["scripts/drishti-exec.mjs\n(Zero-scratch-script runner)"]
MS["MCP Stdio Server (37 Tools)\n@modelcontextprotocol/sdk + Zod"]
BC["Bridge Client (JSON-RPC)"]
end
subgraph WS_BRIDGE ["Local WebSocket Bridge (apps/local-bridge)"]
WS["WebSocket Server (:7483)\nSHA-256 Handshake Token"]
SEC["Security & Policy Gate\nLocalhost-only 127.0.0.1 (On-Demand)"]
end
subgraph CHROME_MV3 ["Google Chrome / Brave (User Profile)"]
EXT["Drishti Browser AI (v0.1.0 PRO)\nBackground Service Worker"]
ROUTER["đ¯ Target Tab Locking Router\n(Binds all actions to selected tab)"]
HL["⨠Glowing Element Highlighter\n(Visual cyan box on click/type)"]
DOM["Self-Healing DOM Engine\n(Fuzzy selector fallbacks)"]
TABS["Real Logged-in Tabs & Cookies\nGitHub, YouTube, PDF Viewers, Dev Portals"]
end
AG --> CLI
AG -->|JSON-RPC stdio| MS
OC -->|JSON-RPC stdio| MS
CC -->|JSON-RPC stdio| MS
CR -->|JSON-RPC stdio| MS
CD -->|JSON-RPC stdio| MS
CLI --> BC
MS --> BC
BC -->|Local WS :7483| WS
WS --> SEC
SEC --> EXT
EXT --> ROUTER
ROUTER --> HL
HL --> DOM
DOM --> TABSđ Key Production Innovations
Target Tab Locking (đ¯):
Select and lock any specific tab (e.g. YouTube, PDF viewer, order form) via the crosshair icon in the Control Deck or Popup.
All subsequent agent commands (
NAVIGATE,CLICK,TYPE,SCROLL,GET_DOM_SNAPSHOT,EXECUTE_SCRIPT) execute exclusively on the locked tab, allowing you to work in other tabs without interference.
Glowing Visual Element Highlighter (â¨):
Whenever an agent clicks or types into an element, a glowing cyan box (
#00f2fe) smoothly flashes over the element in the browser viewport for 1.2s, making automated actions visible to the user in real time.
Self-Healing Fuzzy Element Engine:
If a CSS selector fails or dynamic class names change, the content script automatically searches for accessible matching names,
aria-label, button text, and placeholder attributes, resolves the target, and reports the self-healed selector in telemetry.
Zero-Scratch Execution (
drishti-exec.mjs):AI agents never write disposable
.mjsscripts to disk. All browser actions execute directly viascripts/drishti-exec.mjs <action>or direct MCP tools.
Master Safety Switch & Emergency Stop:
One-click master toggle (
AI: ON/PAUSED) instantly cuts off external agent commands.Red
Stopemergency button terminates any in-flight task immediately.
100% On-Demand Architecture:
Zero Windows auto-start background persistence. Bridge only runs when you start it (
pnpm bridge:start).
Pure Vector UI Design:
Built with Tailwind CSS and Lucide React.
Zero emojis across all extension screens.
Tactile micro-interactions (
.btn-interactive,.chip-interactive).
đ ī¸ Complete 37 MCP Tools Catalog
Tool Name | Category | Description |
| Diagnostic | Real-time bridge health, round-trip latency (ms), tab count, active tab & session summary |
| Core | Returns extension connection status, version, and active tab |
| Visual | Full accessibility tree & semantic text observation |
| DOM | Structured DOM element list with bounding boxes and selectors |
| Visual | Captures high-res viewport screenshot as base64 PNG/JPEG |
| DOM | Detailed computed styles, bounding box, and ARIA properties |
| Meta | High-level title, description, canonical link, and element counts |
| Navigation | Navigate tab to target URL |
| Navigation | Navigate browser history backwards |
| Navigation | Navigate browser history forwards |
| Navigation | Reload tab (soft reload or hard cache-bypass) |
| Navigation | Wait for milliseconds or until CSS selector appears in DOM |
| Tabs | Enumerate all open tabs with IDs, URLs, and titles |
| Tabs | Open a new tab with optional URL |
| Tabs | Activate tab by ID |
| Tabs | Close tab by ID |
| Tabs | Group open tabs by domain or topic |
| Interaction | Click element matching CSS selector (with glowing visual highlighter) |
| Interaction | Double click element |
| Interaction | Hover mouse over element to trigger hover states |
| Interaction | Type keystrokes into input field (with glowing visual highlighter) |
| Interaction | Clear and fill input field with string |
| Interaction | Press keyboard key (Enter, Escape, Tab, modifiers) |
| Interaction | Scroll page or container by pixels or to element |
| Interaction | Choose option in |
| Content | Extract plain text content from page or selector |
| Content | Extract all hyperlinks with href and anchor text |
| Content | Locate interactive element by text content |
| Content | Extract HTML tables into structured JSON arrays |
| Content | Extract form fields, input types, and action targets |
| Automation | Run multi-step automated browser script |
| Automation | Verify post-condition after action execution |
| Automation | Check progress of background automation |
| Automation | Abort running automation task |
| Debugging | Retrieve console log/warn/error streams |
| Debugging | Filter JavaScript exceptions and unhandled rejections |
| Debugging | Inspect live network requests and status codes |
đ¤ 1-Prompt AI Auto-Install & Setup (Copy & Paste to Any AI Agent)
Give this single prompt to Google Antigravity, Claude Code, Cursor, OpenCode, or Codex â the AI agent will automatically download the repo/extension from GitHub, build it, generate your 64-character auth token, configure MCP, and guide you step-by-step:
<DRISHTI_AUTO_INSTALL>
Set up Drishti Browser AI (ā¤ĻāĨ⤎āĨā¤ā¤ŋ) on my machine so you can control my Chrome/Brave browser via MCP:
1. Clone https://github.com/SudhirDevOps1/drishti-browser-ai.git into a clean local folder (or download the latest Release ZIP from GitHub Releases).
2. Run `pnpm install && pnpm -r run build` inside the cloned folder to build the Chrome extension (`apps/chrome-extension/dist`), Local Bridge (`apps/local-bridge`), and MCP Server (`apps/mcp-server`).
3. Generate a fresh 64-character hex auth token (`node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"`), save it to `.drishti-token` in the repo root, and print the token clearly for me.
4. Configure my IDE MCP settings (`mcpServers.drishti-browser-ai`) pointing to `<repo-path>/apps/mcp-server/dist/index.js` with `BRIDGE_AUTH_TOKEN` and `BRIDGE_WS_URL=ws://127.0.0.1:7483`.
5. Start the Local Bridge on-demand (`pnpm bridge:start` with `BRIDGE_AUTH_TOKEN` set) â never install OS auto-start scripts.
6. Give me clear step-by-step instructions to:
- Open `chrome://extensions/` -> Enable Developer mode -> Click "Load unpacked" -> Select `<repo-path>/apps/chrome-extension/dist`.
- Open Drishti Settings -> Connection & Bridge -> Paste the 64-char token -> Click Save Changes -> Click Run Ping to verify `ONLINE`.
</DRISHTI_AUTO_INSTALL>⥠Quick Start & Setup
1. Installation & Build
# Clone repository
git clone https://github.com/SudhirDevOps1/drishti-browser-ai.git
cd drishti-browser-ai
# Install dependencies (pnpm v9 or v10+)
pnpm install
# Build all monorepo packages
pnpm build
# Run unit tests
pnpm test2. Load Extension in Chrome / Brave
Option A (GitHub Releases): Download the latest
drishti-browser-ai-extension-v*.zipfrom the Releases tab and unzip it.Option B (Local Build): After running
pnpm build, loadapps/chrome-extension/dist.
Open Google Chrome or Brave and navigate to
chrome://extensions/.Enable Developer mode toggle in the top-right corner.
Click Load unpacked and select
apps/chrome-extension/dist(or the unzipped release folder).The Drishti Browser AI icon will appear on your toolbar.
3. Start Local Bridge (Strictly On-Demand)
Drishti does not run silent background auto-start scripts. Start the bridge and MCP server only when you need them:
pnpm bridge:startThe terminal prints your active 64-character SHA-256 token and listens on ws://127.0.0.1:7483. Press Ctrl+C anytime to stop it cleanly.
đ Privacy, Security & Known Limitations
Privacy & Security Policy: 100% local-first (
127.0.0.1only), zero cloud telemetry, SHA-256 handshake, password field protection, and domain allowlist/blocklist enforcement. Read full details in docs/privacy-and-security.md.Known Limitations: Protected
chrome://pages, native PDF canvas internals, cross-origin payment iframes, CAPTCHAs, and minimized-window screenshots follow Chromium MV3 sandboxing rules. Read full details in docs/limitations.md.
4. Configure Extension Settings
Click the Drishti icon in your browser and click Settings.
Paste the 64-character auth token.
Click 1. Bridge Handshake to verify the green
ONLINEstatus!
đ¤ Universal AI Agent Setup (Multi-IDE)
Add this configuration to your AI agent's MCP settings:
For Google Antigravity & OpenCode:
{
"mcpServers": {
"drishti-browser-ai": {
"command": "node",
"args": ["<path-to-drishti-browser-ai>/apps/mcp-server/dist/index.js"],
"env": {
"BRIDGE_AUTH_TOKEN": "YOUR_64_CHARACTER_TOKEN",
"BRIDGE_WS_URL": "ws://127.0.0.1:7483"
}
}
}
}For Claude Code (~/.claude/mcp.json):
{
"mcpServers": {
"drishti-browser-ai": {
"command": "node",
"args": ["<path-to-drishti-browser-ai>/apps/mcp-server/dist/index.js"],
"env": {
"BRIDGE_AUTH_TOKEN": "YOUR_64_CHARACTER_TOKEN",
"BRIDGE_WS_URL": "ws://127.0.0.1:7483"
}
}
}
}For Cursor IDE (Settings > Features > MCP):
Name:
drishti-browser-aiType:
commandCommand:
node "<path-to-drishti-browser-ai>/apps/mcp-server/dist/index.js"
đ§Ē Quality & Verification
Every release is strictly verified under the ATLAS harness:
# Run unit test assertions
pnpm test
# Result: 19 passed across 3 suites (1.37s)
# Verify single source of truth versioning
node scripts/version.mjs verify
# Result: â Version consistency verified (v0.1.0)đ License
MIT Š Sudhir â Built with Google Antigravity, OpenCode, and Model Context Protocol.
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
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Let your AI agent operate any website through a real, logged-in browser session.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI clients to control the user's already-open, logged-in browser pages in real time over a local WebSocket channel, without Playwright, Puppeteer, Selenium, or any browser driver. Exposes tools for navigation, semantic page snapshots, clicking, form filling, JavaScript evaluation, screenshots, network monitoring, cookie handling, and tab management via the CDP.20MIT
- AlicenseBqualityBmaintenanceEnables AI agents to drive the user's already-running Google Chrome through a WebSocket bridge, listing and switching tabs, navigating, clicking, typing, scrolling, extracting DOM, taking screenshots, and evaluating JavaScript. It works without restarting Chrome and preserves all existing logins, cookies, and 2FA sessions.25MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to control Chrome, Edge, Brave and other Chromium browsers through an extension and native messaging host, exposing a Claude-in-Chrome-compatible tool set for real clicks, typing, screenshots, accessibility-tree reading, page text, form filling, JavaScript execution, console and network inspection, file uploads and GIF recording. Agent sessions run in isolated tab groups with per-site permission prompts, activity logging and a global stop control.Apache 2.0
- AlicenseNot gradedqualityAmaintenanceLets AI coding tools drive the real, already-logged-in Chrome browser over local stdioâsnapshotting and reading pages, clicking, typing, managing tabs, capturing screenshots, and inspecting network, console, storage, and cookiesâwithout opening a remote-debugging port. It installs as a Chrome extension plus native-messaging bridge, so agents work in the user's authenticated sessions while passing bot detection.1 npmISC



