Sharing agy-nexus-mcp — Connect Google Gemini (Web & Mobile) Directly to Your Antigravity IDE, Sessions & Live Usage Stats
I wanted to share an open-source project I’ve been building called agy-nexus-mcp, a self-hosted MCP server that connects the standard Google Gemini web and mobile apps directly to a local Antigravity IDE / CLI workstation. Most MCP servers are designed to live inside your desktop IDE so your local coding agent can reach outward to external APIs (like GitHub, databases, or docs). agy-nexus-mcp flips that direction so you can reach inward to your Antigravity workstation from Gemini on your phone or browser—making it easy to brainstorm architecture on the go, check on long-running sessions away from your desk, inspect what a paused agent is waiting on, and drop research plans straight into the right project chat.
Because exposing a local development environment to a cloud chat client comes with different challenges than a standard local-only MCP tool, I built a few capabilities that set this bridge apart:
- Voice-Friendly Passphrase Lock + Secret Routing: Since Gemini’s MCP connector supports no-auth endpoints, the server protects your workspace behind an unguessable URL path and an in-memory passphrase lock (unlock_sessions). You can unlock it naturally using Gemini Voice on your phone (it strips punctuation and casing before hashing) and it automatically re-locks after 30 minutes of idle time.
- Smart Project & Session Handshake: Instead of dumping notes into a generic scratchpad, Gemini can list your live Antigravity sessions, see which ones are RUNNING or STALLED_WAITING_APPROVAL (including the exact command or file awaiting confirmation), read your repo files or git diff in read-only mode, and automatically route your research handoff into the matching project chat—and even wake that session up headlessly to start the work.
- Built-In Usage Dashboard (/web App) & 3-Tier ASCII Stats: You can ask Gemini for your live Antigravity usage stats right in chat (quick 40-column for phones, default 72-column, or rich widescreen) or install the built-in /web dashboard as a standalone Chromium app. It tracks rolling 52-week/YTD/MTD activity heatmaps, sub-daily usage rhythms, token consumption, and model quota pacing across pools.
- Works with Gemini Scheduled Tasks & NotebookLM: Includes multi-repo drift checks (workspace_override=“ALL”) for unattended morning health summaries via Gemini Scheduled Tasks, plus one-step project bundle exports (export_notebook_bundle) with SHA-256 change detection for syncing active docs into NotebookLM without duplicate loops.
The entire server runs in lightweight Python (FastMCP) via Docker or systemd, keeps your Antigravity SQLite database strictly read-only, and includes interactive setup scripts for Linux, macOS, WSL, and Windows. If you use Gemini on your phone or tablet to think through problems and want a clean way to hand that context directly to Antigravity, check out the repo and screenshots here: GitHub - FrankXLT/agy-nexus-mcp: Streamable HTTP MCP server, Chromium PWA dashboard, and 3-tier ASCII telemetry connecting Google Gemini to Antigravity IDE. · GitHub
— feedback and contributions (under GNU AGPLv3) are very welcome!