Skip to content

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.


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.


  1. Open the MCP Store panel via the ... dropdown at the top of AntiGravity’s agent panel
  2. Click Manage MCP Servers
  3. Click View raw config to open mcp_config.json

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"
}
}
}
}

After saving mcp_config.json, AntiGravity should automatically detect the new server. If tools don’t appear, restart the editor.


AntiGravity prefixes MCP tools with the server name. With the server registered as "memory", tools appear as:

  • store_memory
  • recall_memory
  • associate_memories
  • update_memory
  • delete_memory
  • check_database_health

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"
}
}
}
}

ToolDescription
store_memoryStore content with tags, importance, and metadata
recall_memoryHybrid search (semantic + keyword + tags + time)
associate_memoriesCreate typed relationships between memories
update_memoryModify existing memory fields
delete_memoryPermanently remove a memory
check_database_healthCheck FalkorDB and Qdrant connection status

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:

TypeImportanceExample
Decision0.9”Chose Firestore over BigQuery for real-time reads”
Insight / Bug fix0.8”CORS failing in Cloud Run. Root: missing allow-origin header”
Pattern0.7”Using service account impersonation for all GCP API calls”
Context0.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
}

VariableRequiredPurposeExample
AUTOMEM_ENDPOINTYesAutoMem service URLhttp://127.0.0.1:8001
AUTOMEM_API_KEYNo*API authentication tokenyour-token-here

*Required for Railway/cloud deployments. Optional for local development.


After installation, ask AntiGravity’s agent to verify the connection:

Check the health of the AutoMem service

Expected response includes:

  • FalkorDB connection status
  • Qdrant connection status
  • Service version

  1. Verify mcp_config.json is valid JSON (no trailing commas)
  2. Check that AUTOMEM_ENDPOINT is reachable from your machine
  3. Restart AntiGravity completely
  4. Re-open the MCP Store panel and confirm the server appears in the list
Terminal window
# Test your endpoint directly
curl http://127.0.0.1:8001/health
# For cloud deployments
curl -H "Authorization: Bearer $YOUR_KEY" https://your-automem.up.railway.app/health
  1. Verify AUTOMEM_API_KEY matches the token set in your AutoMem service
  2. Test authentication: curl -H "Authorization: Bearer $KEY" $ENDPOINT/health
  3. Regenerate API key if expired

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.


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.


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.