Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

Antigravity in Chrome

Browser-Use Chrome Extension & 25-Tool MCP Plugin for Google Antigravity

Use Google Antigravity directly inside your real Chrome, Brave, Edge, or Arc browser — with an animated AI cursor, automatic tab grouping, single-round-trip browser_batch, multi-profile switching, workflow /shortcuts, and animated GIF89a demos.


Highlights

  • Real Browser Sessions: Runs directly inside your active Chrome, Brave, Microsoft Edge, Arc, Vivaldi, or Opera profiles — preserving your existing logins, cookies, and open tabs without launching a headless browser or --remote-debugging-port.

  • Automatic Tab Grouping: Automatically organizes controlled tabs (and child links opened from them) into a clean blue Antigravity Chrome Tab Group with one-click cleanup.

  • Multi-Browser & Multi-Profile: Keep multiple profiles or browsers connected simultaneously (e.g. Chrome Work, Chrome Personal, Brave) and switch live with switch_browser.

  • Single-Round-Trip Batching (browser_batch + wait_for): Chain predictable multi-step sequences (navigate → wait_for → fill_form → click → screenshot) in one atomic call with per-step permission checks and stop-on-error semantics.

  • Visual Control & Instant Takeover: Subtle breathing Antigravity Blue viewport aura, smooth animated AI cursor with live action tags, floating Pause / Stop capsule (Alt+Shift+S), and instant 0ms release via turn_answer_start.

  • Minimal Side Panel: Clean 2-tab Chrome Side Panel (Activity, Shortcuts) styled after Antigravity Desktop 2.0 in Dark or Light mode with instant auto-save preferences.

  • Layered Safety Guardrails: Four permission modes (Autonomous, Smart, Ask first, Read only), hard-blocked chrome:// & Web Store URLs, custom allowlist/blocklist, anti-race origin verification, and <untrusted_web_content> prompt-injection isolation.

  • Zero External Dependencies: Pure Node.js (>= 20) MCP server + RFC 6455 WebSocket Hub + pure-JS GIF89a encoder + optional Chrome Native Messaging host.


Related MCP server: huahaimaker-chrome

Installation (60 Seconds)

1. Install the Antigravity Plugin

Via Antigravity CLI (recommended):

agy plugin install https://github.com/sxqib/antigravity-in-chrome

Or manually via Git:

git clone https://github.com/sxqib/antigravity-in-chrome.git ~/.gemini/config/plugins/antigravity-in-chrome

(On Windows PowerShell:)

git clone https://github.com/sxqib/antigravity-in-chrome.git "$env:USERPROFILE\.gemini\config\plugins\antigravity-in-chrome"

Antigravity automatically discovers plugin.json, mcp_config.json, rules/AGENTS.md, and all three bundled skills (antigravity-in-chrome, chrome-qa, chrome-workflows).

2. Load the Chrome Extension

  1. Open chrome://extensions in Chrome (or brave://extensions, edge://extensions).

  2. Enable Developer mode (top-right toggle).

  3. Click Load unpacked and select the extension/ folder inside ~/.gemini/config/plugins/antigravity-in-chrome/extension. (Or download antigravity-in-chrome-extension-v1.0.0.zip from Releases.)

  4. Pin Antigravity in Chrome to your toolbar and click its icon (or press Alt+Shift+A) to open the Side Panel.

Once connected, the status dot turns green (Connected). Open Settings (gear icon) to optionally label each browser profile (e.g. Work, Personal).

Optional: Chrome Native Messaging Transport

By default, the extension connects over localhost WebSocket (ws://127.0.0.1:17392) with zero setup. If you prefer Chrome Native Messaging (no localhost port):

node native-host/install-native-host.mjs --extension-id <YOUR_32_CHAR_EXTENSION_ID>

Then switch Settings → Advanced → Transport to Native Messaging.


Architecture

flowchart LR
    AGY["Google Antigravity"] <-->|"MCP (stdio JSON-RPC 2.0)"| MCP["Local MCP Server"]
    MCP <-->|"WebSocket Hub / Native Pipe"| HUB["Multi-Profile Bridge Hub"]
    HUB <-->|"ws://127.0.0.1:17392"| B1["Chrome · Work"]
    HUB <-->|"ws://127.0.0.1:17392"| B2["Chrome · Personal"]
    HUB <-->|"ws://127.0.0.1:17392"| B3["Brave / Edge / Arc"]

  • Web App QA & Localhost Debugging: Ask Antigravity to test your localhost:3000 app, fill forms, check mobile/tablet/desktop viewports, inspect console errors and failed API calls, and export an animated GIF bug repro.

  • Multi-Tab Research & Tab Cleanup: Ask "list all my open Chrome tabs, summarize the docs tabs, and close the duplicates."

  • Logged-In Web Workflows: Automate repetitive routines inside authenticated dashboards, CRMs, or internal tools without re-logging into a headless browser.

  • Reusable /shortcuts: Click Record in the Side Panel, demonstrate a workflow once, save it as /my-workflow, and run it anytime from Antigravity.


Included MCP Tools (25)

Category

Tools

Tabs & Profiles

tabs_context_mcp, tabs_create_mcp, tabs_close_mcp, switch_tab, switch_browser, resize_window

Batching & Sync

browser_batch, wait_for

Perception

read_page, find, get_page_text

Interaction

navigate, computer (screenshot, zoom, clicks, drag, type, key, scroll, scroll_to, wait), form_input, fill_form, handle_dialog, upload_image

Diagnostics & Demos

javascript_tool, read_console_messages, read_network_requests, gif_creator

Workflows & Lifecycle

shortcuts_list, shortcuts_execute, update_plan, turn_answer_start


FAQ

How do I use Antigravity in Chrome?

Install the plugin (agy plugin install https://github.com/sxqib/antigravity-in-chrome), load the extension/ folder in chrome://extensions, and prompt Antigravity normally — e.g., "Inspect my open Chrome tab and check for console errors."

Does it work with Brave, Edge, Arc, or multiple Chrome profiles?

Yes. Install the unpacked extension in any Chromium browser or profile. Each profile registers a persistent ID and custom label (e.g. Work, Personal, Brave) so Antigravity can target or switch between them using switch_browser.

Do I need --remote-debugging-port or Playwright?

No. The extension runs directly inside your normal browser and bridges to Antigravity over a local WebSocket hub (or optional Chrome Native Messaging).

How does browser safety work?

Internal browser pages (chrome://, Chrome Web Store) and your custom blocklist are always blocked. You can choose between Autonomous, Smart, Ask first, and Read only permission modes in Settings, and click Stop (or press Alt+Shift+S) to take back control immediately.


Project Structure

antigravity-in-chrome/
├── plugin.json             # Antigravity plugin manifest
├── mcp_config.json         # Portable stdio MCP server config (${PLUGIN_ROOT})
├── assets/
│   ├── logo.svg            # Plugin vector mark
│   └── banner.svg          # README visual showcase
├── rules/AGENTS.md         # Always-on browser-use operating rules
├── skills/                 # Bundled Antigravity skills (core, QA, workflows)
├── extension/              # Manifest V3 Chrome extension + Side Panel + GIF89a encoder
├── mcp-server/             # Zero-dependency MCP server + multi-profile WebSocket/IPC hub
├── native-host/            # Optional Chrome Native Messaging host & installer
├── scripts/                # Programmatic PNG icon generator
└── tests/                  # Automated unit & E2E test suite

Development & Tests

npm test

License

MIT


Independent, community-built open-source project. Not affiliated with, sponsored by, or officially endorsed by Google.

Available Tools

25 tools
browser_batchA

Execute a sequence of predictable browser tool calls in ONE single round trip to drastically reduce latency. Actions run strictly in order inside Chrome and stop on the first error. Use extensively whenever you can predict 2+ steps ahead (e.g. navigate -> wait_for -> fill_form -> click -> screenshot). Nesting browser_batch inside browser_batch is not allowed.

Inputs: actions (required), tabId, browserId.

computerB

Perform computer-use browser actions: take screenshots, zoom into a region, click (left/right/double/triple/middle), hover, drag, type text, press keys/shortcuts, scroll, scroll an element into view, or wait.

Inputs: action (required), ref, text, tabId, +8 more.

fill_formA

Batch-fill multiple form fields (inputs, textareas, selects, checkboxes, radios, contenteditables) in a single tool call. Always prefer this over calling form_input repeatedly when filling 2 or more fields.

Inputs: fields (required), tabId.

findA

Find interactive or visible elements on the page using a natural-language query (matches accessible names, labels, placeholders, roles, button/link text, and aria attributes). Returns up to 20 ranked matches with ref IDs and bounding boxes.

Inputs: query (required), tabId.

form_inputA

Set the value of a single form control (text input, textarea, contenteditable, checkbox, radio, or select dropdown) using its ref ID from read_page or find. For 2+ fields on the same form, prefer fill_form.

Inputs: ref (required), value (required), tabId.

get_page_textB

Extract clean, readable text content from the web page, prioritizing main article content and stripping scripts, styles, and navigation chrome.

Inputs: tabId, maxLength.

gif_creatorC

Record browser automation actions and export them as a real animated GIF89a with optional click indicators and step captions.

Inputs: action (required), tabId, options, download, +2 more.

handle_dialogA

Accept or dismiss an open JavaScript browser dialog (alert, confirm, prompt, or beforeunload), optionally entering text into a prompt dialog.

Inputs: action (required), tabId, promptText.

javascript_toolA

Execute JavaScript code in the page MAIN world context (supports async/await and returns JSON-serializable results). Use for inspecting page state, DOM measurements, or debugging.

Inputs: text (required), action (required), tabId.

read_console_messagesA

Read browser console logs, warnings, and uncaught runtime errors captured on the tab.

Inputs: clear, limit, tabId, pattern, +1 more.

read_network_requestsB

Read HTTP/XHR/fetch/resource network requests captured on the tab, including method, URL, status code, type, and duration.

Inputs: clear, limit, tabId, urlPattern.

read_pageA

Read the semantic accessibility tree of a web page. Assigns stable element reference IDs (ref_1, ref_2, ...) that can be passed to computer, form_input, or upload_image.

Inputs: depth, tabId, filter, ref_id, +1 more.

resize_windowA

Resize the Chrome window containing the target tab to specific pixel dimensions for responsive testing (e.g., 375x812 mobile or 1440x900 desktop).

Inputs: width (required), height (required), tabId.

shortcuts_executeC

Retrieve a saved workflow shortcut by ID or name (with its recorded steps, URLs, and prompt instructions) so the agent can execute it.

Inputs: shortcutId (required), tabId.

shortcuts_listA

List all user-recorded browser workflows and saved /shortcuts stored in the Antigravity in Chrome side panel.

Inputs: no named parameters.

switch_browserA

List all connected Chrome profiles and Chromium browsers (Chrome, Brave, Edge, Arc, etc.) where the extension is installed, or switch the active target browser/profile by ID or profile name.

Inputs: browserId.

switch_tabB

Focus and activate a specific browser tab by its tabId.

Inputs: tabId (required).

tabs_close_mcpB

Close one or more Chrome tabs by tabId / tabIds, or close all tabs in the managed Antigravity tab group.

Inputs: tabId, tabIds, closeManagedGroup.

tabs_context_mcpA

Get full context about ALL currently open Chrome tabs across every window (including titles, URLs, tabIds, windowIds, active/pinned state) as well as the managed Antigravity tab group. Call this first whenever inspecting open tabs or starting a browser session.

Inputs: browserId, createIfEmpty, includeAllTabs.

tabs_create_mcpB

Create a new tab inside the managed Antigravity tab group, optionally navigating directly to a URL.

Inputs: url.

turn_answer_startA

Signal to the Chrome extension that you have finished your browser tool calls for this turn and are ready to respond to the user. Immediately clears the glowing border, animated AI cursor, working indicator, and debugger attachment.

Inputs: no named parameters.

update_planA

Present or update your multi-step browser automation plan and target domains inside the Chrome Side Panel so the user has full visibility (and can approve before acting in Ask/Plan mode).

Inputs: domains (required), approach (required).

upload_imageB

Upload a local image or file into a page element (by ref) or dispatch a drag-and-drop file event onto a target coordinate/element.

Inputs: ref, tabId, filePath, filename, +3 more.

wait_forA

Wait until specific text, a CSS selector, or a URL substring appears on the page (up to timeoutMs). Ideal inside browser_batch after clicks or navigations instead of blind sleeps.

Inputs: text, tabId, selector, timeoutMs, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools have clearly distinct browser-specific purposes, and the split between form_input (single field) and fill_form (batch) is explicit. The broad computer tool overlaps with specialized tools like wait_for, form_input/fill_form, and upload_image for clicking, typing, and waiting, which could cause occasional misselection.

    Naming Consistency3/5

    Most names use readable snake_case, but the tab tools inconsistently append an _mcp suffix (tabs_context_mcp, tabs_create_mcp, tabs_close_mcp) while other tools do not. There are also bare verb or noun names such as find, navigate, computer, and gif_creator that break the otherwise verb_noun pattern.

    Tool Count3/5

    At 25 tools, the surface is at the heavy end for a browser automation server. While many capabilities are justified, extras like gif_creator, shortcuts_list/shortcuts_execute, update_plan, and turn_answer_start make the set feel crowded rather than tightly scoped.

    Completeness5/5

    The set covers tab and window lifecycle, navigation, page reading, element finding, form filling, dialogs, screenshots/computer use, JavaScript execution, console/network inspection, uploads, batching, waits, and planning. This is comprehensive browser automation coverage with no obvious dead ends; only niche areas like cookie/storage management or download handling are absent.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables any MCP-capable AI agent to operate the user's own everyday Chrome browser with all existing login sessions intact, offering 22 tools for reading page/network data, filling forms, clicking, batch multi-step actions, and handing CAPTCHAs or confirmations back to the human — without API keys, debug ports, or launch flags.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to automate a user's real browser through a browser extension, exposing MCP tools for navigation, perception, interaction, and verification, plus replayable scripts for repeatable tasks.
      6
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to control a user's existing Chrome browser for automation, content extraction, screenshots, network monitoring, and semantic search across tabs. It preserves existing browser sessions, configurations, and login states while exposing browser functionality through MCP tools.
      MIT