Antigravity MCP Bridge
Allows AI clients to dispatch coding and automation tasks to Google Antigravity (agy --headless), providing synchronous and asynchronous execution, task polling, and workspace isolation.
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 BridgeRun a coding task to build a Flask API skeleton."
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.
Antigravity Sub-Agent Bridge (FastMCP)
A containerized FastMCP server that exposes the Google Antigravity CLI (agy --headless) as remote Model Context Protocol (MCP) tools over SSE.
This bridge allows conversational AI clients (such as Google Spark, Claude, Cursor, or ChatGPT) to dispatch full coding and automation sub-agents in a sandboxed, containerized workspace.
š Key Features
Synchronous Sub-Agent Execution (
execute_antigravity_sync): Dispatches a coding/automation task directly toagy --headlessand returns the output log once the agent finishes (ideal for short 1ā3 minute tasks).Asynchronous Background Execution (
start_antigravity_async): Spawns a long-running Antigravity agent in the background, returning atask_idfor decoupled execution.Task Polling & Management (
get_antigravity_task_status,list_antigravity_tasks): Polls progress, inspects logs, and lists all background sub-agents.Workspace Isolation & Sandboxing: Runs within a Docker container mounting only
./workspaces, protecting host system files while giving the agent full build, test, and execution autonomy inside its sandbox.Seamless Integration with
mcp-server-oauth-proxy: Exposes standard SSE endpoints on port8080/sse, pluggable directly into Home Assistant's OAuth proxy for secure access from Google Spark.
Related MCP server: agy-mcp
š ļø Repository Layout
antigravity-mcp-bridge/
āāā Dockerfile # Container image with Python 3.12, Node.js, git, & agy CLI
āāā docker-compose.yml # Service definitions with volume mounts & port bindings
āāā requirements.txt # fastmcp, mcp[cli], pydantic
āāā server.py # FastMCP Server exposing Antigravity agent tools
āāā .env.example # Environment variable template
āāā .gitignore # Ignored artifacts & workspace directories
āāā README.md # Documentationš¦ Quickstart & Deployment
1. Configure Environment
Copy the .env.example template:
cp .env.example .env(Optional: Add your GEMINI_API_KEY or ANTIGRAVITY_API_KEY if required by your agy environment).
2. Start with Docker Compose
docker compose up -d --buildThe FastMCP server will start listening on:
š http://localhost:8080/sse (or your host LAN IP).
3. Verify Container Health
docker compose logs -fš Connecting to mcp-server-oauth-proxy
To expose this Antigravity sub-agent bridge securely to Google Spark via your Home Assistant OAuth proxy:
In Home Assistant, open Settings > Add-ons > MCP Server OAuth Proxy > Configuration.
Add a new server entry under
servers:
- client_name: "Google Spark"
server_name: "Antigravity Bridge"
server_url: "http://<YOUR_DOCKER_HOST_IP>:8080/sse"
bearer_token: ""
client_id: "spark-antigravity"
client_secret: "secret-antigravity"
allowed_redirect_uris: "https://oauth-redirect.googleusercontent.com"
host: "antigravity-oauth.yourdomain.com"
path_prefix: ""Save and restart the add-on.
In Google Spark, add the custom tool pointing to
https://antigravity-oauth.yourdomain.com/ssewith Client IDspark-antigravity.
š§° Available MCP Tools
1. execute_antigravity_sync
Description: Executes a task synchronously via
agy --headlessand waits for output.Parameters:
prompt(string, required): The goal or coding instruction.sub_path(string, optional): Subdirectory in/workspaceto execute within.timeout_seconds(int, default: 300): Max seconds to wait before aborting.
2. start_antigravity_async
Description: Starts an Antigravity task in the background and returns a
task_id.Parameters:
prompt(string, required): The goal or coding instruction.sub_path(string, optional): Subdirectory in/workspaceto execute within.
3. get_antigravity_task_status
Description: Inspects progress and full logs of a background task.
Parameters:
task_id(string, required): The 8-character ID returned bystart_antigravity_async.
4. list_antigravity_tasks
Description: Lists all active and completed background tasks.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceRuns isolated AI agents in Docker containers with persistent workspaces and conversation history. Each agent has access to file operations, shell commands, GitHub integration, and can connect to external MCP servers for additional tools.3MIT
- AlicenseAqualityCmaintenanceWraps Google Antigravity CLI into 11 typed MCP tools, enabling any MCP client to invoke agy for code review, prototyping, execution, and long-running tasks.1116MIT
- AlicenseBqualityAmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.135MIT
- AlicenseNot gradedqualityAmaintenanceIntegrates Google Antigravity's agy agent into MCP, enabling asynchronous delegation of complex tasks like code analysis and file management with job polling.1002MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
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/connormxy/antigravity-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server