Antigravity MCP Server
Acts as a programmatic bridge for the Google Antigravity Python SDK, enabling real-time AI agent swarms, bidirectional tool proxying, and Human-in-the-Loop execution safety.
README
Antigravity MCP Server
A powerful "Next-Level" Model Context Protocol (MCP) server that acts as a programmatic bridge for the Google Antigravity Python SDK. It enables real-time AI agent swarms, bidirectional tool proxying, and Human-in-the-Loop execution safety.
📖 Table of Contents
✨ Features
- Real-Time Swarm Communication: Agents dynamically share a "Blackboard" document, keeping their schemas and logic in sync.
- Bidirectional Tool Proxying: Inject your custom application logic as tools directly into the AI agent's execution context.
- Human-in-the-Loop (HitL): Block dangerous terminal actions and file system mutations until user approval is received.
- Feature Pipelines: Spin up specialized Planner, Coder, and Reviewer agents in a unified workflow.
🏛️ Architecture
graph TD;
Client[Your Application] -->|JSON-RPC| MCPServer[FastAPI MCP Server];
MCPServer -->|Tool Proxy| Client;
MCPServer --> SwarmManager[Swarm Manager Blackboard];
MCPServer --> HitL[HitL Interceptor];
HitL -.->|Approval Required| Client;
SwarmManager --> Agent1[Agent 1: Coder];
SwarmManager --> Agent2[Agent 2: Reviewer];
Agent1 --> AntigravitySDK[Google Antigravity SDK];
Agent2 --> AntigravitySDK;
🔌 API Reference
Model Management & Limits
GET /models: Lists available models, their benchmarks (MMLU), and token costsPOST /select_model: Selects the active model for a sessionGET /usage_limits: Checks the usage limit (5-hour constraints and weekly tokens)
Agent Lifecycle Management
POST /spawn_session: Creates a new agent session with capabilitiesGET /list_sessions: Returns active sessionsDELETE /kill_session/{session_id}: Terminates an agent
Interaction & Execution
POST /send_prompt/{session_id}: Sends a task to an agentGET /get_transcript/{session_id}: Fetches conversation history
Multi-Agent Swarms & Communication
POST /run_feature_pipeline: Triggers Planner -> Coder -> Reviewer workflowPOST /broadcast_update/{session_id}: Updates all agents about schema/state changesGET /read_blackboard: Retrieves the global swarm state
Bidirectional Tool Proxying
POST /register_client_tool: Injects a custom app tool into the agentPOST /handle_tool_callback/{callback_id}: Returns the tool execution result from your app back to the agent
Human-in-the-Loop (HitL) Safety
POST /approve_action/{action_id}: Allows a paused/blocked action to proceedPOST /reject_action/{action_id}: Rejects an action and sends feedback to the agent
Artifact Integration (Resources)
GET /agent/{session_id}/artifacts/list: Lists all markdown artifactsGET /agent/{session_id}/artifacts/{artifact_id}: Retrieves specific artifact contentGET /agent/{session_id}/artifacts/implementation_plan: Direct access to the design planGET /agent/{session_id}/artifacts/walkthrough: Direct access to the completion summary
🛠️ Installation
# Clone the repository
git clone https://github.com/Inferno-Aditya/antigravity-mcp.git
cd antigravity-mcp
# Install dependencies
pip install -r requirements.txt
🚀 Quick Start
Start the MCP Server on port 8000:
python server.py
The server will mount all standard MCP endpoints (spawn_session, send_prompt, etc.) on localhost:8000.
Spawning a Session via HTTP POST
curl -X 'POST' \
'http://localhost:8000/spawn_session' \
-H 'Content-Type: application/json' \
-d '{
"capabilities": ["terminal_read", "file_write"],
"system_prompt": "You are a backend engineering agent."
}'
🛡️ Human-in-the-Loop Intercepts
Whenever an agent attempts a high-risk operation, the MCP server automatically intercepts it.
The agent pauses while you interact with the /approve_action or /reject_action API endpoints, allowing you to review destructive commands before they run.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.