VANJAR
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., "@VANJAR open Hacker News and summarize the top three stories"
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.
Universal MCP Compatibility Overview
VANJAR (v0.8.1) exposes 39 MCP tools over both STDIO (for local AI clients) and Streamable HTTP (for authenticated remote-compatible MCP connections). Any MCP-compatible AI agent gets the exact same browser automation, session isolation, task memory, verification, and human-in-the-loop safety controls.
AI Clients (Antigravity / Claude Desktop / Claude Code / Codex / Cursor / ChatGPT* / Generic MCP)
│ MCP over STDIO (local) OR Streamable HTTP + Bearer Auth (/mcp)
▼
VANJAR Local Engine (Node.js + TypeScript)
├── TaskManager, Plans & Bounded Memory ──▶ SQLite (~/.vanjar/data/vanjar.db)
├── ApprovalManager (Single-use, Hash-bound)
├── BrowserSessionManager (Isolated Contexts) ──▶ Playwright Chromium
└── Local Bridge (127.0.0.1 HTTP + SSE) ──▶ Chrome Extension Side PanelSupported Client Matrix
Client | Transport | Setup Command | Auto-Configure | Guide |
Google Antigravity | STDIO |
| Yes ( | |
Claude Desktop | STDIO |
| Yes ( | |
Claude Code | STDIO |
| Yes ( | |
OpenAI Codex CLI | STDIO |
| Yes ( | |
Cursor | STDIO |
| Yes ( | |
ChatGPT (Custom MCP) | Streamable HTTP (HTTPS) |
| Template only (manual setup) | |
Generic MCP Client | STDIO / Streamable HTTP |
| Template only (manual setup) |
See docs/CLIENT-COMPATIBILITY.md for platform paths and
vanjar clients/vanjar compatibilityCLI commands.
Related MCP server: CloakBrowser MCP
Installation
Option 1: Install from npm (Recommended)
npm install -g @sivanesan90007/vanjar
npx playwright install chromium
vanjar --helpOr run directly with npx:
npx -y @sivanesan90007/vanjar doctorOption 2: Install from Source
git clone https://github.com/Sivanesanbalu/vanjar.git
cd vanjar
npm install
npx playwright install chromium
npm run package:release
npm link # optional: exposes `vanjar` globallyRequires Node.js >= 22.5.0 (for built-in node:sqlite).
Client Setup Instructions
# Auto-configure a local STDIO client (creates a timestamped .bak-* backup first)
vanjar setup --client antigravity
vanjar setup --client claude-desktop
vanjar setup --client claude-code
vanjar setup --client codex
vanjar setup --client cursor
# Generate ready-to-copy templates for manual/remote clients
vanjar setup --client chatgpt
vanjar setup --client generic
# Inspect client status, compatibility matrix, and diagnostics
vanjar clients
vanjar compatibility
vanjar doctorClient Configuration Examples
{
"mcpServers": {
"vanjar": {
"command": "node",
"args": ["/absolute/path/to/vanjar/dist/index.js"],
"env": {
"VANJAR_HEADLESS": "true",
"VANJAR_ALLOW_LOCALHOST": "false",
"VANJAR_BRIDGE_ENABLED": "true",
"VANJAR_BRIDGE_PORT": "47821",
"VANJAR_LOG_LEVEL": "info"
}
}
}
}[mcp_servers.vanjar]
command = "node"
args = ["/absolute/path/to/vanjar/dist/index.js"]
[mcp_servers.vanjar.env]
VANJAR_HEADLESS = "true"
VANJAR_ALLOW_LOCALHOST = "false"
VANJAR_BRIDGE_ENABLED = "true"
VANJAR_BRIDGE_PORT = "47821"
VANJAR_LOG_LEVEL = "info"# Start VANJAR in authenticated Streamable HTTP mode (binds to 127.0.0.1:47822 by default)
vanjar mcp --transport http --port 47822Endpoint:
http://127.0.0.1:47822/mcp(health check:GET /health)Auth header:
Authorization: Bearer <token>(auto-generated in~/.vanjar/http-auth.jsonwith0600permissions ifVANJAR_HTTP_TOKENis not set)
Local vs. Remote MCP Connection
Local STDIO (Recommended for desktop/CLI agents): The AI client spawns
node dist/index.jsdirectly. Zero open MCP network ports, no Bearer token needed, lowest latency.Streamable HTTP (
--transport http): Exposes/mcpover HTTP with mandatory 256-bit Bearer authentication, Host/Origin DNS-rebinding checks, and a 1 MB request cap. Keep bound to127.0.0.1and place behind an authenticated HTTPS reverse proxy or private tunnel (e.g., Cloudflare Tunnel, Tailscale Funnel, or nginx TLS) when connecting remote cloud clients like ChatGPT.
39 MCP Tool Categories
Browser & Navigation (
browser_*):browser_open,browser_back,browser_wait,browser_stop,browser_get_tabs,browser_switch_tabObservation & Extraction:
browser_observe,browser_read_page,browser_extract,browser_screenshotInteraction:
browser_action,browser_click,browser_type,browser_fill,browser_scrollVerification:
browser_verifySession Management (
session_*):session_create,session_list,session_switch,session_closeTask & Safety Engine (
task_*):task_create,task_plan,task_next_step,task_status,task_history,task_control,task_propose_action,task_approve_action,task_reject_action,task_checkpoint,task_resume,task_summaryNative Chrome (
native_chrome_*):native_chrome_tabs,native_chrome_select_tab,native_chrome_permissions,native_chrome_observe,native_chrome_action,native_chrome_verify,native_chrome_deselect
Full schemas and parameters: docs/TOOLS_REFERENCE.md.
Demo Workflow
Run the built-in self-test against an ephemeral local portal:
vanjar demoSee docs/DEMO_WORKFLOW.md for a step-by-step agent workflow.
Security Architecture
SSRF & Scheme Guard: HTTP/HTTPS-only navigation, private-IP/localhost/DNS-rebinding protection (
VANJAR_ALLOW_LOCALHOST=falseby default).Prompt-Injection Framing & Redaction: Web content is wrapped in
<untrusted_webpage_content>delimiters; password/secret fields are automatically redacted from logs and tool outputs.Zero-Download Policy:
acceptDownloads: falsein Playwright contexts.Authenticated HTTP & Bridge: Mandatory Bearer auth on Streamable HTTP
/mcp;127.0.0.1-only extension bridge with 256-bit token, pairing code, and strictchrome-extension://origin validation.
Full security details: docs/SECURITY.md, docs/SECURITY_REVIEW.md, and docs/NATIVE_CHROME_SECURITY.md.
Troubleshooting
Run
vanjar doctorto verify Node.js, SQLite schema, Playwright Chromium, extension build, and transport/security defaults.Run
vanjar clientsto inspect detected client config paths and status.See docs/TROUBLESHOOTING.md for common issues.
Known Limitations
ChatGPT Web: Does not support local STDIO; requires a remote HTTPS Streamable HTTP endpoint and a ChatGPT plan/workspace with custom MCP connector access.
Interactive Auth/CAPTCHA: Login, MFA, and CAPTCHA require human takeover (
task_checkpoint/task_resume); VANJAR never bypasses anti-bot protections.Process Restarts: Interrupted tasks are marked
failed, pending approvals are invalidated, and prior Playwright sessions are markedunavailableon restart.
Development
npm run typecheck
npm run package:release
npm testAvailable Tools
39 toolsbrowser_actionAct on Observed ElementA
Execute click, fill, type, select, check, uncheck, or scroll using a temporary element_index from the latest browser_observe call. Rejects stale or out-of-range indices.
Inputs: action (required), value, amount, task_id, +5 more.
browser_backNavigate BackB
Navigate back in browser history safely while enforcing URL security policy.
Inputs: task_id, timeoutMs, session_id.
browser_clickClick ElementA
Click a visible element using a CSS/Playwright selector or accessible locator (role+name, label, placeholder, or text).
Inputs: name, role, text, exact, +6 more.
browser_extractExtract Structured DataBRead-only
Extract structured JSON fields from the current webpage using CSS selectors and optional attributes.
Inputs: fields (required), task_id, session_id.
browser_fillFill Form FieldsA
Fill one or more form fields by selector without automatically submitting the form. Sensitive values are redacted from logs and responses.
Inputs: fields (required), task_id, timeoutMs, session_id.
browser_get_tabsList Browser TabsARead-only
List all open Chromium tabs with their index, title, URL, and active status.
Inputs: session_id.
browser_observeObserve Webpage State & Interactive ElementsARead-only
Inspect the current webpage DOM and return a compact indexed summary of visible headings, untrusted text, and interactive elements (buttons, links, inputs, selects, checkboxes, radios) for browser_action.
Inputs: task_id, session_id, maxElements.
browser_openOpen URL in ChromiumA
Navigate the real Chromium browser to an http:// or https:// URL (with SSRF and scheme validation) and return page title, final URL, HTTP status, and cleaned untrusted page content.
Inputs: url (required), task_id, timeoutMs, waitUntil, +1 more.
browser_read_pageRead Current WebpageARead-only
Read the current active webpage title, URL, and cleaned readable text content wrapped in untrusted-data delimiters.
Inputs: task_id, session_id.
browser_screenshotTake Browser ScreenshotARead-only
Capture a PNG screenshot of the current Chromium viewport, full page, or a specific element.
Inputs: task_id, fullPage, selector, session_id.
browser_scrollScroll WebpageBRead-only
Scroll the current webpage by direction/pixels or bring a target selector into view.
Inputs: amount, task_id, selector, direction, +1 more.
browser_stopStop Automation TaskA
Immediately cancel any currently running browser automation task.
Inputs: task_id, session_id.
browser_switch_tabSwitch Browser TabA
Switch the active Chromium tab by zero-based index, URL substring, or title substring.
Inputs: index, session_id, urlContains, titleContains.
browser_typeType Into InputA
Type text into a targeted input or textarea without submitting. Sensitive/password fields are automatically redacted in logs and responses.
Inputs: text (required), name, role, exact, +8 more.
browser_verifyVerify Browser StateBRead-only
Verify expected URL, title, element visibility, text, input value, checkbox, or select state against live Chromium.
Inputs: task_id, inputCheck, session_id, selectCheck, +8 more.
browser_waitWait for ConditionBRead-only
Wait with a bounded timeout for an element state, URL substring, or page load state.
Inputs: state, task_id, selector, loadState, +3 more.
native_chrome_actionExecute Action on Consented Native Chrome TabB
Execute a safe interaction (click, fill, type, select, check, uncheck, scroll) on the consented native Chrome tab. High-risk/external actions require ApprovalManager approval.
Inputs: action (required), value, amount, task_id, +5 more.
native_chrome_deselectDeselect Native Chrome TabB
Deselect the native Chrome tab and immediately revoke VANJAR interaction permissions.
Inputs: task_id.
native_chrome_observeObserve Consented Native Chrome TabBRead-only
Observe DOM headings, bounded untrusted text, and indexed interactive elements on the user-consented native Chrome tab.
Inputs: task_id, display_tab_id.
native_chrome_permissionsRead or Revoke Native Tab PermissionsB
Inspect the selected native Chrome tab permission level or revoke it immediately.
Inputs: operation, display_tab_id.
native_chrome_select_tabSelect Native Chrome TabA
Select an eligible Chrome tab by display_tab_id. Explicit user consent in the VANJAR extension is still required before observation or interaction.
Inputs: display_tab_id (required), task_id.
native_chrome_tabsList Eligible Native Chrome TabsARead-only
List eligible HTTP/HTTPS tabs reported by the connected VANJAR Chrome extension without auto-selecting or exposing cookies/storage.
Inputs: no named parameters.
native_chrome_verifyVerify Native Chrome Tab StateBRead-only
Verify expected URL, title, visibility, text, input, checkbox, or select state on the consented native Chrome tab.
Inputs: task_id, inputCheck, selectCheck, checkboxCheck, +8 more.
session_closeClose Browser SessionBDestructive
Safely close a specific isolated browser session.
Inputs: session_id (required).
session_createCreate Isolated Browser SessionB
Create a new isolated Chromium browser session with separate cookies, localStorage, and page state.
Inputs: name, headless, persistent, makeDefault.
session_listList Browser SessionsARead-only
List all active browser sessions with status, URL, and timestamps.
Inputs: no named parameters.
session_switchSwitch Default Browser SessionA
Switch the default active browser session used when session_id is omitted.
Inputs: session_id (required).
task_approve_actionApprove & Execute Pending ActionA
Approve a specific pending approval_id (single-use) and execute only that approved action with optional verification.
Inputs: approval_id (required), note, executeNow, modifiedArgs, +1 more.
task_checkpointPause Task at Human CheckpointB
Pause a task at a human-in-the-loop checkpoint (CAPTCHA, MFA, login_required, missing_info, safety_decision, etc.).
Inputs: reason (required), details (required), task_id (required), category (required), +1 more.
task_controlControl Tracked TaskB
Pause, resume, cancel, complete, or fail a tracked automation task.
Inputs: action (required), task_id (required), reason.
task_createCreate Tracked TaskB
Create a tracked browser automation task with status and step accounting.
Inputs: description (required), session_id, totalSteps.
task_historyGet Action Audit HistoryBRead-only
Return recent sanitized browser action audit history (filtered optionally by task_id or session_id).
Inputs: limit, task_id, session_id.
task_next_stepGet Next Pending StepBRead-only
Retrieve the next pending or awaiting-approval step from the task plan along with task status.
Inputs: task_id (required).
task_planManage Task PlanB
Create, read, add steps, update step status, or reorder pending steps in a task execution plan.
Inputs: task_id (required), operation (required), steps, stepNumber, +2 more.
task_propose_actionPropose Action & Check ApprovalB
Classify action risk and create an action-scoped approval checkpoint when high-risk or externally visible.
Inputs: target (required), task_id (required), actionType (required), args, +4 more.
task_reject_actionReject Pending ActionC
Reject a specific pending approval_id and optionally cancel the task.
Inputs: approval_id (required), reason, cancelTask.
task_resumeResume Paused TaskA
Resume a paused or waiting_for_approval task after user action or input.
Inputs: task_id (required), userNote.
task_statusGet Task StatusBRead-only
Return current task status, step progress, last action, URL, and recent activity.
Inputs: task_id (required).
task_summaryGet Task Memory & Final ReportBRead-only
Return bounded task memory summary and structured progress/final report (Completed, Partial, Failed, Cancelled, Waiting).
Inputs: task_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 39 tools
Tools split cleanly by prefix into browser, task, session, and native-Chrome families, but several pairs overlap in practice—browser_action vs browser_click, browser_fill vs browser_type, and browser_verify vs native_chrome_verify. Descriptions use selector-vs-indexed-element distinctions to disambiguate, but an agent must read carefully to choose correctly.
Nearly all names are snake_case with stable family prefixes (browser_, task_, session_, native_chrome_). A few names are noun-only or use get (browser_get_tabs, native_chrome_tabs, task_summary), but the pattern remains predictable.
39 tools is well above the practical range for this server; many are fine-grained (browser_click, browser_fill, browser_type) or workflow variants (task_checkpoint, task_resume, task_control). The surface could be consolidated without losing capability.
Coverage is broad: navigation, observation, interaction, extraction, screenshots, tabs, sessions, task approvals/checkpoints, and native-Chrome consent flow. Minor gaps remain around advanced browser interactions (hover/drag, upload/download, cookies/storage), but core workflows are supported.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Related MCP Servers
FlicenseAqualityCmaintenanceEnables coding agents to drive a real Playwright-backed browser session, navigating, observing, interacting, and capturing proof on web pages via MCP tools across stdio and Streamable HTTP transports.152-- AlicenseNot gradedqualityAmaintenanceEnables AI agents to drive a Playwright-compatible browser (with humanized mouse, keyboard, and scroll behavior, persistent profiles, extensions, and GeoIP-aware proxies) to research the web, automate daily tasks, and run tests, with unchanged upstream @playwright/mcp tools plus two local introspection tools. It installs via npm or Docker and speaks stdio or Streamable HTTP.335 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to automate a real Chromium browser through the unchanged upstream Playwright MCP tool surface, covering navigation, research, testing, and daily web workflows in plain language. It ships via npm or Docker over stdio or Streamable HTTP, and supports persistent login profiles, Chrome extension loading, proxy/GeoIP matching, and humanized mouse, keyboard, and scroll behavior.335 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to run Playwright-compatible browser automation with persistent profiles, proxies, Chrome extensions, and humanized mouse, keyboard, and scroll interactions over stdio or Streamable HTTP. Supports web research, daily automation, testing workflows, and optional session-scoped CDP access.335 npmMIT