Google AntiGravity
Google AntiGravity supports MCP natively through its built-in MCP Store and a mcp_config.json configuration file. AutoMem connects as a custom MCP server, exposing six memory tools (store_memory, recall_memory, associate_memories, update_memory, delete_memory, check_database_health) directly inside AntiGravity conversations.
Architecture
Section titled “Architecture”graph TB
subgraph "AntiGravity Editor"
UI["AntiGravity UI"]
STORE["MCP Store (built-in)"]
MCP_CLIENT["MCP Client"]
end
subgraph "MCP Server Process"
STDIO["StdioServerTransport"]
TOOLS["Tool Registry — 6 MCP Tools"]
CLIENT["AutoMemClient"]
end
subgraph "AutoMem Service"
API["HTTP API :8001"]
FALKOR[("FalkorDB Graph")]
QDRANT[("Qdrant Vectors")]
end
UI --> MCP_CLIENT
STORE -.->|"Manage custom servers"| MCP_CLIENT
MCP_CLIENT -->|"JSON-RPC via stdio"| STDIO
STDIO --> TOOLS
TOOLS --> CLIENT
CLIENT -->|"HTTP — AUTOMEM_ENDPOINT"| API
API --> FALKOR
API --> QDRANT
AntiGravity spawns the AutoMem MCP server as a child process and communicates over stdin/stdout using JSON-RPC — the same stdio transport used by Claude Desktop and Cursor.
Installation
Section titled “Installation”Step 1: Open the MCP Configuration
Section titled “Step 1: Open the MCP Configuration”- Open the MCP Store panel via the
...dropdown at the top of AntiGravity’s agent panel - Click Manage MCP Servers
- Click View raw config to open
mcp_config.json
Step 2: Add the AutoMem Server
Section titled “Step 2: Add the AutoMem Server”Cloud deployment (Railway or other hosted AutoMem):
{ "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "https://your-automem-service.up.railway.app", "AUTOMEM_API_KEY": "your-api-token-here" } } }}Local development (AutoMem running on localhost):
{ "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "http://127.0.0.1:8001" } } }}Using a local build instead of the npm package:
{ "mcpServers": { "memory": { "command": "node", "args": ["/path/to/mcp-automem/dist/index.js"], "env": { "AUTOMEM_ENDPOINT": "http://127.0.0.1:8001" } } }}Step 3: Reload
Section titled “Step 3: Reload”After saving mcp_config.json, AntiGravity should automatically detect the new server. If tools don’t appear, restart the editor.
Tool Naming
Section titled “Tool Naming”AntiGravity prefixes MCP tools with the server name. With the server registered as "memory", tools appear as:
store_memoryrecall_memoryassociate_memoriesupdate_memorydelete_memorycheck_database_health
Multiple Server Instances
Section titled “Multiple Server Instances”Run separate AutoMem instances for different contexts — personal vs. work memory, or per-project isolation:
{ "mcpServers": { "memory-personal": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "http://127.0.0.1:8001" } }, "memory-work": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "https://work-automem.example.com", "AUTOMEM_API_KEY": "work-token" } } }}Available Memory Tools
Section titled “Available Memory Tools”| Tool | Description |
|---|---|
store_memory | Store content with tags, importance, and metadata |
recall_memory | Hybrid search (semantic + keyword + tags + time) |
associate_memories | Create typed relationships between memories |
update_memory | Modify existing memory fields |
delete_memory | Permanently remove a memory |
check_database_health | Check FalkorDB and Qdrant connection status |
Configuring Agent Instructions
Section titled “Configuring Agent Instructions”AntiGravity’s AI agent benefits from explicit instructions on when and how to use memory. Add these patterns to your editor’s agent instructions or system prompt:
Recommended recall strategy:
- At conversation start, recall recent work and relevant project context
- Before creating content, check for style preferences and past corrections
- During debugging, search for similar past errors
Recommended storage triggers:
| Type | Importance | Example |
|---|---|---|
| Decision | 0.9 | ”Chose Firestore over BigQuery for real-time reads” |
| Insight / Bug fix | 0.8 | ”CORS failing in Cloud Run. Root: missing allow-origin header” |
| Pattern | 0.7 | ”Using service account impersonation for all GCP API calls” |
| Context | 0.5–0.7 | ”Added Pub/Sub event pipeline for order processing” |
Tagging convention:
{ "tags": ["project-name", "antigravity", "YYYY-MM", "component-name"], "type": "Decision", "importance": 0.9}Environment Variables
Section titled “Environment Variables”| Variable | Required | Purpose | Example |
|---|---|---|---|
AUTOMEM_ENDPOINT | Yes | AutoMem service URL | http://127.0.0.1:8001 |
AUTOMEM_API_KEY | No* | API authentication token | your-token-here |
*Required for Railway/cloud deployments. Optional for local development.
Verification
Section titled “Verification”After installation, ask AntiGravity’s agent to verify the connection:
Check the health of the AutoMem serviceExpected response includes:
- FalkorDB connection status
- Qdrant connection status
- Service version
Troubleshooting
Section titled “Troubleshooting”Tools not appearing in AntiGravity
Section titled “Tools not appearing in AntiGravity”- Verify
mcp_config.jsonis valid JSON (no trailing commas) - Check that
AUTOMEM_ENDPOINTis reachable from your machine - Restart AntiGravity completely
- Re-open the MCP Store panel and confirm the server appears in the list
Service unreachable
Section titled “Service unreachable”# Test your endpoint directlycurl http://127.0.0.1:8001/health
# For cloud deploymentscurl -H "Authorization: Bearer $YOUR_KEY" https://your-automem.up.railway.app/healthAuthentication failures (401/403)
Section titled “Authentication failures (401/403)”- Verify
AUTOMEM_API_KEYmatches the token set in your AutoMem service - Test authentication:
curl -H "Authorization: Bearer $KEY" $ENDPOINT/health - Regenerate API key if expired
MCP Store vs. custom server conflicts
Section titled “MCP Store vs. custom server conflicts”If you’ve installed another MCP server from the store that conflicts with your AutoMem config, check mcp_config.json for duplicate server names. Each server must have a unique key.
Cross-Platform Memory Access
Section titled “Cross-Platform Memory Access”Memories stored via AntiGravity are accessible from any other AutoMem-connected platform (Cursor, Claude Desktop, Claude Code, GitHub Copilot) as long as they all point to the same AutoMem service endpoint.
Related Platforms
Section titled “Related Platforms”AntiGravity’s mcp_config.json follows the same mcpServers JSON structure as other MCP-enabled platforms:
- Claude Desktop — uses
claude_desktop_config.json+ Custom Instructions - Cursor IDE — uses
~/.cursor/mcp.json+.cursor/rules/automem.mdc - Claude Code — uses
~/.claude.json+~/.claude/settings.json - OpenAI Codex — uses
~/.codex/config.toml(TOML format)
All platforms share the same @verygoodplugins/mcp-automem npm package.