Antigravity in Chrome MCP Server
<div align="center">
<img src="assets/logo.svg" alt="Antigravity in Chrome logo" width="88" height="88" />
# 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.
<p>
<a href="https://github.com/sxqib/antigravity-in-chrome/releases"><img src="https://img.shields.io/github/v/release/sxqib/antigravity-in-chrome?style=flat-square&color=3186FF" alt="Release" /></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-18191D?style=flat-square" alt="MIT License" /></a>
<img src="https://img.shields.io/badge/node-%3E%3D20-00B95C?style=flat-square" alt="Node.js >= 20" />
<a href="#included-mcp-tools-25"><img src="https://img.shields.io/badge/MCP%20tools-25-3186FF?style=flat-square" alt="25 MCP Tools" /></a>
<img src="https://img.shields.io/badge/dependencies-zero-212226?style=flat-square" alt="Zero Dependencies" />
</p>
<p>
<a href="#installation-60-seconds">Install</a> ·
<a href="#highlights">Features</a> ·
<a href="#architecture">Architecture</a> ·
<a href="#included-mcp-tools-25">25 Tools</a> ·
<a href="#faq">FAQ</a>
</p>
<br />
<img src="assets/banner.svg" alt="Antigravity in Chrome preview showing the active Antigravity Blue viewport aura, animated AI cursor, floating Pause/Stop capsule, and 2-tab Side Panel" width="100%" />
</div>
---
## 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.
---
## Installation (60 Seconds)
### 1. Install the Antigravity Plugin
**Via Antigravity CLI (recommended):**
```bash
agy plugin install https://github.com/sxqib/antigravity-in-chrome
```
**Or manually via Git:**
```bash
git clone https://github.com/sxqib/antigravity-in-chrome.git ~/.gemini/config/plugins/antigravity-in-chrome
```
*(On Windows PowerShell:)*
```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](https://github.com/sxqib/antigravity-in-chrome/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):
```bash
node native-host/install-native-host.mjs --extension-id <YOUR_32_CHAR_EXTENSION_ID>
```
Then switch **Settings → Advanced → Transport** to **Native Messaging**.
---
## Architecture
```mermaid
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"]
```
---
## Popular Use Cases
- **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
```text
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
```bash
npm test
```
## License
[MIT](LICENSE)
---
<sub>Independent, community-built open-source project. Not affiliated with, sponsored by, or officially endorsed by Google.</sub>
TDQS
Scored across 25 tools
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.
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.
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.
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.