Skip to main content
Glama

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 Panel

Supported Client Matrix

Client

Transport

Setup Command

Auto-Configure

Guide

Google Antigravity

STDIO

vanjar setup --client antigravity

Yes (~/.gemini/config/mcp_config.json)

docs/ANTIGRAVITY.md

Claude Desktop

STDIO

vanjar setup --client claude-desktop

Yes (claude_desktop_config.json)

docs/CLAUDE.md

Claude Code

STDIO

vanjar setup --client claude-code

Yes (~/.claude.json)

docs/CLAUDE.md

OpenAI Codex CLI

STDIO

vanjar setup --client codex

Yes (~/.codex/config.toml)

docs/CODEX.md

Cursor

STDIO

vanjar setup --client cursor

Yes (.cursor/mcp.json)

docs/CURSOR.md

ChatGPT (Custom MCP)

Streamable HTTP (HTTPS)

vanjar setup --client chatgpt

Template only (manual setup)

docs/CHATGPT.md

Generic MCP Client

STDIO / Streamable HTTP

vanjar setup --client generic

Template only (manual setup)

docs/CLIENT-COMPATIBILITY.md

See docs/CLIENT-COMPATIBILITY.md for platform paths and vanjar clients / vanjar compatibility CLI commands.


Related MCP server: CloakBrowser MCP

Installation

npm install -g @sivanesan90007/vanjar
npx playwright install chromium
vanjar --help

Or run directly with npx:

npx -y @sivanesan90007/vanjar doctor

Option 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` globally

Requires 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 doctor

Client 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 47822
  • Endpoint: http://127.0.0.1:47822/mcp (health check: GET /health)

  • Auth header: Authorization: Bearer <token> (auto-generated in ~/.vanjar/http-auth.json with 0600 permissions if VANJAR_HTTP_TOKEN is not set)


Local vs. Remote MCP Connection

  • Local STDIO (Recommended for desktop/CLI agents): The AI client spawns node dist/index.js directly. Zero open MCP network ports, no Bearer token needed, lowest latency.

  • Streamable HTTP (--transport http): Exposes /mcp over HTTP with mandatory 256-bit Bearer authentication, Host/Origin DNS-rebinding checks, and a 1 MB request cap. Keep bound to 127.0.0.1 and 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

  1. Browser & Navigation (browser_*): browser_open, browser_back, browser_wait, browser_stop, browser_get_tabs, browser_switch_tab

  2. Observation & Extraction: browser_observe, browser_read_page, browser_extract, browser_screenshot

  3. Interaction: browser_action, browser_click, browser_type, browser_fill, browser_scroll

  4. Verification: browser_verify

  5. Session Management (session_*): session_create, session_list, session_switch, session_close

  6. Task & 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_summary

  7. Native 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 demo

See 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=false by 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: false in 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 strict chrome-extension:// origin validation.

Full security details: docs/SECURITY.md, docs/SECURITY_REVIEW.md, and docs/NATIVE_CHROME_SECURITY.md.


Troubleshooting

  • Run vanjar doctor to verify Node.js, SQLite schema, Playwright Chromium, extension build, and transport/security defaults.

  • Run vanjar clients to 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 marked unavailable on restart.


Development

npm run typecheck
npm run package:release
npm test

Available Tools

39 tools
browser_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 DataB
Read-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 TabsA
Read-only

List all open Chromium tabs with their index, title, URL, and active status.

Inputs: session_id.

browser_observeObserve Webpage State & Interactive ElementsA
Read-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 WebpageA
Read-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 ScreenshotA
Read-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 WebpageB
Read-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 StateB
Read-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 ConditionB
Read-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 TabB
Read-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 TabsA
Read-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 StateB
Read-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 SessionB
Destructive

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 SessionsA
Read-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 HistoryB
Read-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 StepB
Read-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 StatusB
Read-only

Return current task status, step progress, last action, URL, and recent activity.

Inputs: task_id (required).

task_summaryGet Task Memory & Final ReportB
Read-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

    B3.2/5.0

    Scored across 39 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      Enables 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.
      15
      2
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      MIT