CursorMesh

v0.1.3
io.github.jornkbz/cursormesh Checked 3 days ago Published 4 days ago

Control Google Chrome with visible multi-agent AI cursors, colored tab groups, and CDP uploads.

Control your real Google Chrome browser from Gemini CLI, Claude Code / Claude Desktop, Cursor, Antigravity, VS Code, or any MCP-compatible AI agent — with visible colored AI cursors, isolated colored tab groups, Shadow DOM snapshots, native CDP file uploads, desktop notifications, and an instant STOP button. 1. Google Chrome with the CursorMesh Chrome Extension (Chrome Web Store) installed. 2. Node.js 18+ (required to run npx -y @cursormesh/mcp-bridge locally; nodejs.org). 3. One-time pairing token: run: and paste the token in CursorMesh Side Panel → MCP & Pro → Connect.

Summary extracted from the README.

CursorMesh — Multi-Agent AI Cursors for Chrome (MCP · Gemini CLI · Claude Plugin)

Chrome Web Store Website Docs npm License: MIT

Control your real Google Chrome browser from Gemini CLI, Claude Code / Claude Desktop, Cursor, Antigravity, VS Code, or any MCP-compatible AI agent — with visible colored AI cursors, isolated colored tab groups, Shadow DOM snapshots, native CDP file uploads, desktop notifications, and an instant STOP button.

This repository hosts the official public distribution manifests (gemini-extension.json, .claude-plugin/plugin.json, skills/cursormesh/SKILL.md, and server.json) for the @cursormesh/mcp-bridge npm package and the CursorMesh Chrome extension.


Prerequisites

  1. Google Chrome with the CursorMesh Chrome Extension (Chrome Web Store) installed.
  2. Node.js 18+ (required to run npx -y @cursormesh/mcp-bridge locally; nodejs.org).
  3. One-time pairing token: run:
    npx -y @cursormesh/mcp-bridge --print-token
    
    and paste the token in CursorMesh Side Panel → MCP & Pro → Connect.

Full step-by-step setup guide: cursormesh.app/docs


1-Command Installation

Gemini CLI (Official Extension)

gemini extensions install https://github.com/jornkbz/cursormesh-mcp

Claude Code / Claude Plugin

Install from the Claude Plugin Directory or add this repository as a plugin source (.claude-plugin/plugin.json + skills/cursormesh/SKILL.md).

Cursor, Antigravity, Claude Desktop, VS Code, Windsurf (Generic MCP)

Add this entry to your MCP configuration (mcp_config.json, claude_desktop_config.json, .cursor/mcp.json, etc.):

{
  "mcpServers": {
    "cursormesh": {
      "command": "npx",
      "args": [
        "-y",
        "@cursormesh/mcp-bridge",
        "--agent-name",
        "AI Agent",
        "--agent-color",
        "#00D4FF"
      ]
    }
  }
}

Multi-Agent tip: Configure two or more agents with different --agent-name and --agent-color values. CursorMesh automatically coordinates them over a shared local WebSocket hub (ws://127.0.0.1:47891), giving each agent its own visible cursor and colored Chrome tab group.


Included MCP Tools (16)

Tool Description
list_tabs List open Chrome tabs with tabId, URL, title, and window/group metadata.
open_tab Open a new tab inside the agent's colored tab group (respecting your Focus Mode).
switch_tab Focus a specific tab (auto-restores minimized AI window).
close_tab Close a tab by tabId.
navigate Navigate a tab to a URL and wait for load completion.
snapshot Structured DOM map with [uid] references, accessible <label> names, [checked]/[expanded] states, optional query/selector filters, open Shadow DOM, and same-origin <iframe> support.
screenshot Fast PNG/JPEG capture (CDP-backed for unfocused windows).
hover Smoothly move the visible AI cursor over a target element.
click Smart-hybrid click: native isTrusted CDP on visible tabs, automatic Shadow-DOM / iframe click on occluded/background tabs.
fill Type into <input>, <textarea>, <select>, and rich contenteditable editors (Lexical/ProseMirror/React/Vue safe).
press_key Dispatch keyboard actions (Escape, Enter, Tab, ArrowDown, modifiers) to close modals or navigate dropdowns.
upload_file Upload local files directly to <input type="file">, hidden-input <label for> buttons, or Upload buttons via CDP without opening the OS file picker.
scroll Scroll the page or automatically scroll active modal/SPA containers (overflow-y: auto).
wait_for Wait efficiently for async UI text or CSS selector to appear without extra polling turns.
notify_user Send a clickable Chrome desktop notification when input is needed or a long task finishes.
release_cursor Hide the agent's virtual cursor, optionally notify the user, and optionally auto-close the agent's temporary tab group (closeGroup: true).

Safety & Privacy

  • 100% local MCP bridge: runs strictly on 127.0.0.1:47891 with a per-user local pairing token (~/.cursormesh/token).
  • Sensitive action approval: password fields, payment flows, and destructive buttons trigger an explicit confirmation gate (SECURITY_APPROVAL_REQUIRED).
  • Instant STOP pill: draggable floating button in Chrome immediately halts all agents.
  • Privacy Policy: cursormesh.app/privacy