Antigravity Gemini MCP Server
Drive Google Antigravity from the Gemini app: remote MCP with OAuth 2.1 + PKCE.
Antigravity Gemini MCP scores 69 (Good), licensed MIT and written in Python. It can be reached as a remote MCP endpoint. It declares 11 tools. Filed under Uncategorized. GitHub shows 7 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
88/100 for listing completeness. Lost points: 1 of 11 tools barely described, short summary, no docs link.
How quality is graded
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "zz327455573-antigravity-gemini-mcp": { "url": "https://your-domain.com/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools11Tool docs quality grade D
All capabilitiesInspect active hub.json instances, PIDs, ports & running tasks
Create a session & dispatch a task (180s dedup + 25s cap)
create_projecttoolCreate a new workspace folder under workspaceroots
get_task_resulttoolPoll live status & read chunked response
List recent conversations with live status
list_filestoolList files and subdirectories on the host
list_projectstoolDiscover Antigravity workspace directories
Read up to 200 lines of a text file
search_in_filestoolFast case-insensitive text search across a folder/file
send_messagetoolSend a follow-up prompt (180s dedup + 25s cap)
stop_tasktoolCancel a running conversation & confirm IDLE
About
Antigravity Gemini MCP
Drive your local Google Antigravity IDE from the Gemini app already on your phone — zero app install, zero timeout disconnects, automatic retry recovery.
中文文档 (README.zh-CN.md) · Companion native Android client: antigravity-remote

The Idea
Every mobile remote for a coding agent builds its own chat UI. That means maintaining another frontend, another login, and losing the context of your main AI assistant.
This project flips the pattern: it exposes your local Google Antigravity IDE as a standard remote MCP server and lets the Gemini app be the UI. Open Gemini on your phone or desktop and say:
"Search what changed in Next.js 16 middleware, then have Antigravity apply it to my project, run the tests, and show me the diff."
Gemini's web search, reasoning, voice input, and your local Antigravity IDE all run in a single conversation.
- Zero install on your phone — works inside the official Gemini app via Google's custom MCP connector.
- No cloud PC required — runs on any Windows machine you leave powered on.
- Battle-tested for 24/7 unattended reliability (v1.2.0) — self-healing HTTP/2 tunnel watchdog with
/readyzombie detection & 20-edge-IP automatic failover, plus 25s hard-capped receipts & 180s fingerprint deduplication.
Live Workflow Demo

Speak or type on Gemini mobile → OAuth 2.1 Remote MCP → local Antigravity IDE edits files, runs tests, and streams the result back into the same Gemini thread.
What's New in v1.2.0 — Self-Healing 20-Edge-IP Tunnel
Running Cloudflare Tunnel 24/7 behind restrictive ISPs or VPN/TUN software (like Clash Fake-IP) often fails with HTTP 530 / Error 1033: cloudflared.exe stays alive in Task Manager, yet holds readyConnections: 0, so simple process-name watchdogs never restart it. v1.2.0 eliminates silent tunnel death:
- Forced HTTP/2 (TCP) + IPv4 (
server/cloudflared.config.example.yml)- Replaces default UDP/QUIC (
7844/udp) — frequently throttled or dropped by carriers — with stable TCP HTTP/2.
- Replaces default UDP/QUIC (
- Real Readiness Probe (
/readyZombie Detection)server/watch_cloudflared.pyprobeshttp://127.0.0.1:20241/readydirectly (bypassing system proxies). WheneverreadyConnections == 0past the 30s startup grace window, it terminates the zombie process automatically.
- 20-Node Official Edge IP Failover Pool (Fake-IP Safe)
- Rotates across 20 official Cloudflare Tunnel edge IPs (
region1×10 +region2×10 paired into 10 dual-region slots + 1 auto slot) using direct--edge <ip>:7844flags — completely bypassing local DNS/Fake-IP hijacking while keeping your Gemini MCP URL and OAuth session untouched.
- Rotates across 20 official Cloudflare Tunnel edge IPs (
Built for Real Mobile Networks (v1.1.0)
Mobile MCP clients and cloud proxies silently drop connections if a tool call hangs for 50–60 seconds — and tapping Retry in naive implementations spawns duplicate coding sessions. v1.1.0 solves both permanently:

- 25s Hard-Capped Receipts (
MAX_TOTAL_WAIT_SEC = 25)- Total request time (task dispatch + status polling) is strictly capped at 25 seconds.
- If the task finishes within 25s, you get the complete final output in one turn.
- If it is still running at 25s (or dispatch alone took most of the budget), the gateway immediately returns a structured receipt (
ok: true,status: "running",conversation_id,is_running,total_steps,recent_tools) before any client or proxy timeout can fire.
- 180s Fingerprint Dedup & Auto-Resume (
DEDUP_TTL_SEC = 180)create_and_send_taskandsend_messagemaintain an in-memory SHA-256 fingerprint cache guarded by anasyncio.Lockand concurrentpendingcoalescing.- Retrying the same request within 180 seconds never spawns a second session or duplicate message — it automatically claims the existing
conversation_id("deduplicated": true), resumes polling with the remaining budget, or returns the finished result immediately.
Dual-Channel Ecosystem
One lightweight local FastAPI gateway (127.0.0.1:18900) powers both mobile workflows side by side:

- antigravity-gemini-mcp (this repo) — zero-install remote MCP endpoint (
/mcp) for Gemini Mobile/Web or any OAuth 2.1 MCP client. - antigravity-remote — native Android client (
/api/*) when you also want full-disk file browsing (C:\,D:\), two-way file transfers, resumable background downloads, and live model quota switching.
11 MCP Tools
| Tool | Purpose | Key Parameters |
|---|---|---|
list_projects | Discover Antigravity workspace directories | keyword (optional) |
create_project | Create a new workspace folder under workspace_roots | name, root_path (optional) |
list_conversations | List recent conversations with live status | limit (default 20, max 80) |
create_and_send_task | Create a session & dispatch a task (180s dedup + 25s cap) | prompt, project_path, title, model (default/fast/strong), wait_seconds (0–25) |
send_message | Send a follow-up prompt (180s dedup + 25s cap) | conversation_id, content, model, wait_seconds (0–25) |
get_task_result | Poll live status & read chunked response | conversation_id, offset, max_chars, wait_seconds (0–25) |
stop_task | Cancel a running conversation & confirm IDLE | conversation_id |
list_files | List files and subdirectories on the host | path |
read_file_snippet | Read up to 200 lines of a text file | path, start_line, end_line |
search_in_files | Fast case-insensitive text search across a folder/file | path, query, file_ext, max_results |
check_server_health | Inspect active hub_*.json instances, PIDs, ports & running tasks | detail |
- Multi-window routing by
project_path(hub_*.jsonRPC +agentapi.bat), plus automatic newline folding socmd /c agentapi.batnever truncates multi-line prompts.
Compared with Google's Remote Control
| Google Remote Control | This (MCP bridge) | |
|---|---|---|
| Where you type | Antigravity's own web UI | Gemini — search, voice, reasoning, tools, same thread |
| Install on phone | Add to home screen | Nothing |
| Combine web research + code change in 1 turn | — | ✅ |
| Read & search files directly off host | — | ✅ list_files / read_file_snippet / search_in_files |
| Mobile timeout & retry protection | Built-in web socket | ✅ 25s hard-cap receipts + 180s dedup auto-resume |
| Access surface | Google's own client | Google's officially supported custom MCP connector |
| Setup | Zero | Self-hosted gateway + HTTPS endpoint (~3 min) |
The two are complementary: use the MCP bridge for "think + research + dispatch from Gemini", and Remote Control or Antigravity Remote APK for inspecting full diffs and transferring build artifacts.
Prerequisites Checklist (Read Before Installing)
Make sure you have all of the following before setting up — otherwise Gemini will not be able to reach your machine:
| Requirement | Details |
|---|---|
| Always-on Windows 10/11 PC | A home desktop, mini PC, laptop, or Windows cloud PC. Disable auto-sleep / lid-close sleep (locking the screen is fine, sleeping drops the tunnel). Windows only — macOS and Linux are not supported yet (agentapi.bat + Win32 watchdog). |
| Google Antigravity IDE open | Antigravity IDE must stay running on that Windows machine (the gateway routes tasks to active hub_*.json instances). |
| Python 3.9+ | Installed and available in PATH (python / pythonw). |
| Public HTTPS Tunnel + Domain | Gemini's cloud backend rejects plain HTTP and self-signed certs. For permanent use, you need cloudflared + a domain managed on Cloudflare (a free trycloudflare.com quick tunnel works for a 5-minute test, but its URL changes on every restart). |
| Gemini Account with Custom MCP | Must be added once on the web (gemini.google.com → Settings → Connected Apps → Add a custom app; the mobile app syncs it automatically). Some restricted regions or managed Workspace accounts may have custom connectors disabled. |
Authentication
No shared secret is pasted into Gemini. The bridge implements full OAuth 2.1:
/.well-known/oauth-protected-resource(RFC 9728)/.well-known/oauth-authorization-server(RFC 8414)- PKCE (
S256/plain) + RFC 7591 Dynamic Client Registration
Token lifetimes: access 30 days, refresh 180 days. During authorization, the consent page verifies the auth_token from your local server/config.json — make it long and random.
Quick Start (3 Steps)
1. Start the Local Gateway
cd server
pip install -r requirements.txt
copy config.example.json config.json
Edit server/config.json:
{
"host": "127.0.0.1",
"port": 18900,
"auth_token": "use-a-long-random-string",
"workspace_roots": ["D:\\YourWorkspace"],
"default_model": "MODEL_PLACEHOLDER_M526"
}
Open Antigravity IDE, then start the gateway:
python gateway.py
(Optional silent Win32 background watchdogs with zero console windows: watch_gateway.py, watch_cloudflared.py, launch_hidden.vbs.)
2. Expose a Public HTTPS Endpoint
Option A — 5-minute quick test (no domain needed, temporary URL):
winget install Cloudflare.cloudflared
cloudflared tunnel --url http://127.0.0.1:18900
Option B — Permanent named tunnel on your own Cloudflare domain (recommended):
cloudflared tunnel login
cloudflared tunnel create agy-remote
cloudflared tunnel route dns agy-remote your-domain.example.com
Copy server/cloudflared.config.example.yml to %USERPROFILE%\.cloudflared\config.yml, fill in your tunnel UUID and domain (keep protocol: http2 and edge-ip-version: "4"), then run:
cloudflared tunnel run agy-remote
(For 24/7 self-healing with 20-edge-IP failover, schedule pythonw.exe server\watch_cloudflared.py every 1 minute in Windows Task Scheduler, setting CLOUDFLARED_EXE and CLOUDFLARED_TUNNEL env vars if needed.)
3. Connect Gemini
- Open gemini.google.com → Settings → Connected Apps → Add a custom app
- Enter
https://your-domain.example.com/mcp - Complete the OAuth authorization page using your
auth_token - The connector immediately syncs to your Gemini mobile app
FAQ
Does this need a cloud PC?
No. Any Windows machine left powered on works — a home desktop, mini PC, or laptop.
Why does Gemini require a real HTTPS certificate?
Gemini's cloud backend invokes your /mcp endpoint over the public internet and rejects plain HTTP or self-signed certificates. Cloudflare Tunnel provisions a valid TLS cert for free.
Can a remote task break the MCP connection?
Yes — if you instruct a Gemini-dispatched session to edit or restart gateway.py or mcp_bridge.py directly, restarting the process drops its own live connection. Keep those two files out of remote self-modification scope unless explicitly restarting via an external watchdog.
Only Gemini?
No — /mcp is standard Streamable HTTP MCP with OAuth 2.1 discovery, so Claude, Cursor, or any compatible remote MCP client can connect.
Security
- Never commit
server/config.json,server/oauth_store.json, real domains, public IPs, or tokens. - Keep
gateway.pybound to127.0.0.1and expose it only through an HTTPS tunnel.
License
MIT — see LICENSE.
Frequently asked questions
What is Antigravity Gemini MCP Server?
Drive Google Antigravity from the Gemini app: remote MCP with OAuth 2.1 + PKCE.
How do I install Antigravity Gemini MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Antigravity Gemini MCP Server connects to the remote endpoint https://your-domain.com/mcp, so there is nothing to install locally.
Is Antigravity Gemini MCP Server free and open source?
Yes. Antigravity Gemini MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Antigravity Gemini MCP Server support remote (HTTP) connections?
Yes. Antigravity Gemini MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Antigravity Gemini MCP Server provide?
Antigravity Gemini MCP Server provides 11 tools, including check_server_health, create_and_send_task, create_project, and get_task_result. See the full tool list for descriptions and parameters.
How is Antigravity Gemini MCP Server's trust score calculated?
Antigravity Gemini MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.