Antigravity MCP Bridge
Allows Gmail-integrated AI to use the local MCP server for driving commands, reading local files, and managing tasks while working from Gmail.
Allows Google Cloud AI services to drive the local machine, including deployment to Cloud Run and orchestration through Google Cloud-hosted AI services.
Enables the bridge to be used from Google Docs workflows, allowing AI-assisted document-linked tasks to leverage local file and command capabilities.
Provides access to the local MCP bridge through Google Drive, enabling AI workflows connected to Drive to perform local file operations and system tasks.
Connects Gemini Spark to the local MCP server, letting Gemini read/write files, run system commands, execute tests and git operations, and manage autonomous coding tasks on the local machine.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Antigravity MCP BridgeCreate a Python project, add tests, run them, and fix any failures"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ Gemini Antigravity Bridge
The World's First Bidirectional MCP Bridge Between Google Gemini Spark & DeepMind Antigravity
Connect Google's cloud AI (Gemini Spark powered by Gemini 3.8 / 3.7) to your local agentic IDE (Antigravity) with 23 powerful MCP tools — enabling autonomous task dispatch, shared memory, file operations, and cross-agent orchestration.
Quick Start · Architecture · Tools · Connected Apps · Deploy
🌐 What Is This?
Gemini Antigravity Bridge is an MCP (Model Context Protocol) server that creates a persistent, bidirectional communication channel between:
☁️ Google Gemini Spark (cloud-based AI assistant with Google Workspace access, powered by Gemini 3.8 / 3.7)
💻 Google DeepMind Antigravity (local agentic IDE with full system access)
Optimized for Gemini 3.8's next-generation agentic reasoning, this enables a fully autonomous loop where Spark can dispatch coding tasks to your local machine, and Antigravity can request cloud intelligence back from Spark — all through a standardized, secure protocol.
┌──────────────────────────────────────────────────────────────────┐
│ GEMINI SPARK (Google Cloud) │
│ 📬 Gmail │ 📁 Drive │ 📅 Calendar │ 🎨 Canva │ 🎥 YouTube │
└─────────────────────────┬────────────────────────────────────────┘
│ MCP over HTTPS
▼
┌──────────────────────────────────────────────────────────────────┐
│ ⚡ GEMINI ANTIGRAVITY BRIDGE (MCP Server) │
│ │
│ 🔧 System Commands 📂 File Operations 🤖 Agent Dispatch │
│ 🧠 Shared Memory 🔄 Project Sync 📊 Status Reports │
│ │
│ Tunnel: ngrok / Cloudflare (permanent HTTPS domain) │
└─────────────────────────┬────────────────────────────────────────┘
│ Local MCP + Message Injection
▼
┌──────────────────────────────────────────────────────────────────┐
│ ANTIGRAVITY IDE (Local Machine) │
│ 🖥️ Terminal │ 📝 Code Editor │ 🌳 Git │ 🧪 Tests │ 🚀 Deploy │
└──────────────────────────────────────────────────────────────────┘Related MCP server: simple_mcp_demo
🏆 Why This Bridge?
Feature | This Project | Other MCP Servers |
Bidirectional Cloud ↔ Local | ✅ | ❌ |
Autonomous Agent Task Dispatch | ✅ | ❌ |
Cross-Agent Shared Memory | ✅ | ❌ |
Antigravity Conversation Injection | ✅ | ❌ |
Spark Connected Apps Orchestration | ✅ | ❌ |
Google Workspace Integration | ✅ (via Spark) | Partial |
Local File System Access | ✅ | Some |
System Command Execution | ✅ | Some |
🚀 Quick Start
Prerequisites
Python 3.10+
ngrok account (free tier) with a reserved domain
Google Gemini Spark (Advanced/Ultra subscription)
Google DeepMind Antigravity IDE
Installation
# Clone the repository
git clone https://github.com/nandhakumar-murugan/gemini-antigravity-bridge.git
cd gemini-antigravity-bridge
# Install dependencies or install package directly
pip install -r requirements.txt
# OR install as a CLI tool:
pip install -e .
# Configure environment
cp .env.example .env
# Edit .env with your NGROK_AUTHTOKEN and NGROK_DOMAIN
# Launch the bridge (via script or CLI)
gemini-bridge
# or: python run_with_tunnel.pyConnect to Gemini Spark
Open Gemini Spark → Settings → Connected Apps
Click "Add a custom app"
Enter your public MCP URL:
https://your-domain.ngrok-free.dev/mcpSpark will discover all 23 tools automatically!
🛠️ Available Tools (23)
🔧 System Execution
Tool | Description |
| Execute any shell/PowerShell command with captured stdout/stderr |
| Run multiple commands sequentially with error handling |
📂 File Operations
Tool | Description |
| Read file contents from any path on the local machine |
| Create or overwrite files with specified content |
| Surgically edit specific lines in existing files |
| Append content to the end of a file |
| Create multiple files in a single operation |
| Scaffold an entire project directory structure |
| List directory contents with metadata |
🤖 Agent Orchestration
Tool | Description |
| Launch an autonomous Antigravity coding subagent |
| Check status and output of a running agent task |
| Kill a running agent task |
🧠 Shared Memory & Sync
Tool | Description |
| Retrieve full cross-client operation history |
| Write a structured note to shared memory (tagged) |
| Read session notes by tag or date range |
| Sync project metadata to Spark's knowledge base |
| Quick Git status check for any repository |
🌐 Spark Connected Apps
Tool | Description |
| Dispatch tasks to Spark's connected apps (@Canva, @YouTube, @Gmail, etc.) |
| List all available connected apps and capabilities |
🔗 Antigravity Deep Integration
Tool | Description |
| List all active Antigravity IDE conversations |
| Inject a structured message directly into an Antigravity conversation |
| Dispatch a full task brief from Spark to Antigravity |
| Get the latest execution report for Spark to review |
🔄 Spark Connected Apps
Through the bridge, Antigravity can orchestrate Spark's connected Google & third-party apps:
App | Capabilities |
🎨 @Canva | Poster design, infographics, slide decks |
📁 @Google Drive | Cloud file search, folder management |
📝 @Google Docs | Document creation and collaboration |
📌 @Google Keep | Quick notes, flashcards, checklists |
🎥 @YouTube | Video search, transcript extraction |
📬 @Gmail | Email reading, URL extraction |
📓 @Gemini Notebook | Deep research and synthesis |
📦 @Dropbox | Cloud storage sync via MCP |
🏗️ Architecture
graph TB
subgraph Cloud["☁️ Google Cloud"]
Spark["Gemini Spark<br/>Consumer AI Assistant"]
Gmail["📬 Gmail"]
Drive["📁 Google Drive"]
Calendar["📅 Google Calendar"]
Canva["🎨 Canva"]
end
subgraph Bridge["⚡ Antigravity Bridge"]
MCP["MCP Server<br/>(FastMCP + Starlette)"]
Tunnel["HTTPS Tunnel<br/>(ngrok / Cloudflare)"]
Memory["🧠 Shared Memory<br/>(bridge_history.json)"]
Dashboard["📊 Web Dashboard"]
end
subgraph Local["💻 Local Machine"]
AGY["Antigravity IDE"]
Terminal["🖥️ Terminal"]
Git["🌳 Git Repos"]
Files["📂 File System"]
end
Spark -->|"MCP over HTTPS"| Tunnel
Tunnel --> MCP
MCP -->|"inject_message"| AGY
MCP -->|"run_system_command"| Terminal
MCP -->|"git_quick_status"| Git
MCP -->|"read/write_file"| Files
MCP --> Memory
AGY -->|"save_session_note"| Memory
Memory -->|"get_agent_report"| Spark
Spark --> Gmail
Spark --> Drive
Spark --> Calendar
Spark --> Canva🚢 Deployment
Auto-Start on Windows Boot
The bridge includes a silent startup script that launches automatically when you log in:
📁 %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\
└── GeminiAntigravityBridge.vbs (silent background launcher)Cloud Deployment (24/7 Uptime)
# Using Docker
docker build -t gemini-antigravity-bridge .
docker run -d -p 8000:8000 --env-file .env gemini-antigravity-bridge
# Using Render.com / Google Cloud Run
# Push to GitHub → Connect repo → Deploy automatically📋 Scheduled Monitoring
The bridge supports multi-tier automated monitoring via Gemini Spark schedules:
Tier | Cadence | Purpose |
🔴 Instant Trigger | Real-time (on email arrival) | Zero-delay alerts for college & NPTEL emails |
🟡 Hourly Sweep | Every 60 minutes | Broad monitoring across all platforms |
🟢 Morning Briefing | Daily @ 8:00 AM | Strategic daily plan with exam schedules |
🤝 Contributing
Contributions are welcome! Please read the Apache 2.0 License before submitting PRs.
Fork the repository
Create your feature branch (
git checkout -b feat/amazing-feature)Commit your changes (
git commit -m 'feat: add amazing feature')Push to the branch (
git push origin feat/amazing-feature)Open a Pull Request
📄 License
This project is licensed under the Apache License 2.0 — see the LICENSE file for details.
📚 Research Paper & Academic Citation
This framework implements the formal architecture introduced in the published research paper:
AgentShield: A Zero-Trust Runtime Guardrail Architecture for Autonomous Multi-Agent AI Systems with Bidirectional Context Synchronization
Nandhakumar Murugan
Department of Computer Science and Engineering (Cybersecurity), KGiSL Institute of Technology (KiTE), Autonomous
Permanent DOI: 10.5281/zenodo.22259022 | Open Access: Zenodo CERN Repository
If you reference or build upon this architecture in academic or enterprise research, please cite:
@article{murugan2026agentshield,
title={AgentShield: A Zero-Trust Runtime Guardrail Architecture for Autonomous Multi-Agent AI Systems with Bidirectional Context Synchronization},
author={Murugan, Nandhakumar},
journal={Zenodo},
year={2026},
doi={10.5281/zenodo.22259022},
url={https://doi.org/10.5281/zenodo.22259022}
}👨💻 Author
Nandhakumar Murugan
B.E. Computer Science & Cyber Security | KGiSL Institute of Technology
Google Student Ambassador (GID: 36) | Open Source Contributor
Built with ❤️ using Google Gemini, DeepMind Antigravity & Model Context Protocol
This server cannot be installed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA comprehensive Model Context Protocol toolkit that transforms AI assistants into autonomous agents capable of executing real-world tasks across filesystems, web requests, Git workflows, databases, system commands, and AI integrations.MIT
- AlicenseNot gradedqualityCmaintenanceA secure, local communication runtime bridge that interfaces a cloud-based Large Language Model (Claude Desktop) with a local machine execution environment using the Model Context Protocol (MCP).Eclipse Public 2.0
- FlicenseNot gradedqualityBmaintenanceAn AI-powered development assistant that enables LLMs to securely interact with local development tools including Git, filesystem, Docker, PostgreSQL, and GitHub via the Model Context Protocol.
- AlicenseDqualityDmaintenanceEnables AI assistants to interact with local Docker containers, Kubernetes clusters, and system logs using the Model Context Protocol.922ISC
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nandhakumar-murugan/gemini-antigravity-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server