antigravity-mcp-bridge
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-bridgeCheck batik shirt stock"
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 MCP Server & OpenAI-Compatible API Bridge
This project provides a Dual-Mode Integration solution for Google Antigravity:
OpenAI-Compatible REST API Bridge (
server.js): A local HTTP REST API server (http://localhost:8088/v1) that enables WhatsApp bots, Node.js scripts, Python clients, or any external application using theopenaiSDK (const { OpenAI } = require('openai')) to communicate with Antigravity models and automatically integrate with real-time Widyartha database context.MCP Stdio Server (
index.js): A local Model Context Protocol (Stdio) server for registering local tools directly inside the Antigravity IDE UI without requiring external API keys.
๐ ๏ธ Key Features
OpenAI SDK Integration: Seamlessly use standard
openailibraries by redirectingbaseURLtohttp://localhost:8088/v1.Real-Time MCP Data Integration: The HTTP server automatically enriches AI completion prompts with product catalog stock, order status, and invoice information from the local Widyartha SQLite database.
Comprehensive Model Selection: Supports model presets matching the Antigravity IDE UI dropdown:
gemini-3.6-flash-high,gemini-3.6-flash-medium,gemini-3.6-flash-lowgemini-3.5-flash-high,gemini-3.5-flash-medium,gemini-3.5-flash-lowgemini-3.1-pro-high,gemini-3.1-pro-lowclaude-sonnet-4.6,claude-opus-4.6gpt-oss-120b,antigravity
Auto-Setup & Portable: Automatically generates local security tokens, auto-installs missing dependencies, and uses relative paths for full portability across drives/folders.
Related MCP server: codex-web-bridge
๐ Running the API Server
1. Start the HTTP Server (Port 8088)
Run the following command in your terminal:
npm startOr double-click start-server.bat (Windows) / start-server.sh (Linux/macOS).
The server will listen at:
Base URL:
http://localhost:8088/v1Chat Completion:
POST http://localhost:8088/v1/chat/completionsList Models:
GET http://localhost:8088/v1/models
๐ป Client Usage Examples (Node.js & Python)
Node.js Example:
const { OpenAI } = require('openai');
const openai = new OpenAI({
apiKey: 'sk-random-key',
baseURL: 'http://localhost:8088/v1'
});
async function main() {
const response = await openai.chat.completions.create({
model: 'antigravity',
messages: [
{ role: 'user', content: 'Check batik shirt stock' }
]
});
console.log(response.choices[0].message.content);
}
main();Python Example:
from openai import OpenAI
client = OpenAI(
api_key="sk-random-key",
base_url="http://localhost:8088/v1"
)
response = client.chat.completions.create(
model="antigravity",
messages=[
{"role": "user", "content": "Check batik shirt stock"}
]
)
print(response.choices[0].message.content)๐ Installing MCP Server in Antigravity IDE UI
To register the MCP Server directly in the Antigravity IDE UI:
Open the Customizations panel in Antigravity IDE.
Click the
Open MCP Configbutton.Paste the following JSON configuration:
{
"mcpServers": {
"antigravity-mcp": {
"command": "node",
"args": [
"E:/code/ai-bot-cs/MCP/antigravity/index.js"
],
"cwd": "E:/code/ai-bot-cs/MCP/antigravity"
}
}
}Save the file and click
Refresh ๐.
๐งช Testing (Test Scripts)
All test scripts are located inside the test/ directory:
Run Node.js OpenAI SDK Test:
npm test(Executes
node test/client-example.js)Run Python OpenAI Client Test:
npm run test:python # Or: python test/test_openai_client.pyRun MCP Stdio Protocol Test:
npm run test:mcp # Or: python test/check_mcp.py
๐ Directory Structure
E:\code\ai-bot-cs\MCP\antigravity\
โโโ server.js # OpenAI Bridge HTTP REST API Server (Port 8088)
โโโ index.js # MCP Stdio Server for Antigravity IDE UI
โโโ mcp-config.json # Antigravity MCP Configuration Template
โโโ start-server.bat # Portable Windows Launcher (Auto npm install)
โโโ start-server.sh # Portable Linux/macOS Launcher
โโโ .env & .env.example # Environment Variables
โโโ .gitignore # Git Ignore Rules
โโโ package.json # Package Manifest & Scripts
โโโ README.md # English Documentation
โโโ test/ # Test Scripts Directory
โโโ client-example.js # Node.js OpenAI Client Test
โโโ test_openai_client.py # Python OpenAI Client Test
โโโ check_mcp.py # MCP Stdio Protocol TestThis 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
- AlicenseBqualityDmaintenanceProduction-grade MCP server that gives AI agents safe access to your local dev environment: filesystem, databases, processes, and OpenAPI specs.Last updated15523MIT
- Alicense-qualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.Last updatedMIT
- AlicenseAqualityAmaintenanceAn MCP server that bridges Claude Code with Antigravity CLI using a Swarm Agent architecture to optimize local development workflows and minimize LLM token costs. Includes a web UI for monitoring agent workflows.Last updated1516MIT
- Flicense-qualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.Last updated
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for AI dialogue using various LLM models via AceDataCloud
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/rendiya/antigravity-mcp-bridge-openai-client'
If you have feedback or need assistance with the MCP directory API, please join our Discord server