Skip to content
MCP server
RegistryRemote

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.

by zz327455573MITPython7 stars
Trust score
69Good
Trust score 69 of 100, Good

Good trust

69 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 69 comes from

22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

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.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "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 capabilities

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.

Version License: MIT MCP OAuth Platform

中文文档 (README.zh-CN.md) · Companion native Android client: antigravity-remote

Antigravity Gemini MCP


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 /ready zombie detection & 20-edge-IP automatic failover, plus 25s hard-capped receipts & 180s fingerprint deduplication.

Live Workflow Demo

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:

  1. 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.
  2. Real Readiness Probe (/ready Zombie Detection)
    • server/watch_cloudflared.py probes http://127.0.0.1:20241/ready directly (bypassing system proxies). Whenever readyConnections == 0 past the 30s startup grace window, it terminates the zombie process automatically.
  3. 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>:7844 flags — completely bypassing local DNS/Fake-IP hijacking while keeping your Gemini MCP URL and OAuth session untouched.

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:

v1.1.0 Anti-Timeout & Auto-Resume

  1. 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.
  2. 180s Fingerprint Dedup & Auto-Resume (DEDUP_TTL_SEC = 180)
    • create_and_send_task and send_message maintain an in-memory SHA-256 fingerprint cache guarded by an asyncio.Lock and concurrent pending coalescing.
    • 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:

Dual-Channel Ecosystem

  • 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

ToolPurposeKey Parameters
list_projectsDiscover Antigravity workspace directorieskeyword (optional)
create_projectCreate a new workspace folder under workspace_rootsname, root_path (optional)
list_conversationsList recent conversations with live statuslimit (default 20, max 80)
create_and_send_taskCreate a session & dispatch a task (180s dedup + 25s cap)prompt, project_path, title, model (default/fast/strong), wait_seconds (0–25)
send_messageSend a follow-up prompt (180s dedup + 25s cap)conversation_id, content, model, wait_seconds (0–25)
get_task_resultPoll live status & read chunked responseconversation_id, offset, max_chars, wait_seconds (0–25)
stop_taskCancel a running conversation & confirm IDLEconversation_id
list_filesList files and subdirectories on the hostpath
read_file_snippetRead up to 200 lines of a text filepath, start_line, end_line
search_in_filesFast case-insensitive text search across a folder/filepath, query, file_ext, max_results
check_server_healthInspect active hub_*.json instances, PIDs, ports & running tasksdetail
  • Multi-window routing by project_path (hub_*.json RPC + agentapi.bat), plus automatic newline folding so cmd /c agentapi.bat never truncates multi-line prompts.

Compared with Google's Remote Control

Google Remote ControlThis (MCP bridge)
Where you typeAntigravity's own web UIGemini — search, voice, reasoning, tools, same thread
Install on phoneAdd to home screenNothing
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 protectionBuilt-in web socket✅ 25s hard-cap receipts + 180s dedup auto-resume
Access surfaceGoogle's own clientGoogle's officially supported custom MCP connector
SetupZeroSelf-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:

RequirementDetails
Always-on Windows 10/11 PCA 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 openAntigravity 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 + DomainGemini'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 MCPMust 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

  1. Open gemini.google.com → Settings → Connected Apps → Add a custom app
  2. Enter https://your-domain.example.com/mcp
  3. Complete the OAuth authorization page using your auth_token
  4. 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.py bound to 127.0.0.1 and 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

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server