Skip to main content
Prerequisite: Install the engram binary first via Homebrew or binary download.
Antigravity is Google’s AI-first IDE with native MCP and skill support.

Add the MCP Server

1

Open MCP Store

Click the ... dropdown in the agent panel → Manage MCP Servers
2

View raw config

Click View raw config
3

Edit mcp_config.json

Add to ~/.gemini/antigravity/mcp_config.json:
4

Save and restart

Save the file. Antigravity will reload the MCP servers automatically.
Without the Memory Protocol, the agent has the tools but doesn’t know WHEN to use them.

Option A: Global Rule

Add to ~/.gemini/GEMINI.md:

Option B: Workspace Rule

Add to .agent/rules/engram-memory.md in your project:
See Memory Protocol for the full text.

Platform-Specific Notes

macOS / Linux

Config path: ~/.gemini/antigravity/mcp_config.json

Windows

Config path: %USERPROFILE%\.gemini\antigravity\mcp_config.json

Antigravity vs. VS Code

Antigravity has its own skill, rule, and MCP systems separate from VS Code.
Do not use .vscode/mcp.json with Antigravity. Use ~/.gemini/antigravity/mcp_config.json instead. Antigravity’s agent system:
  • Skills — Reusable knowledge bundles
  • Rules — Project-specific agent instructions
  • MCP — Tool integrations via stdio transport

Memory Protocol Behavior

With the Memory Protocol in GEMINI.md or .agent/rules/, the agent:
  • Saves proactively after bugfixes, decisions, discoveries, patterns
  • Searches reactively when you say “remember” or “what did we do”
  • Searches proactively when starting work that might overlap past sessions
  • Closes sessions with mem_session_summary before saying “done”
  • Recovers state after compaction with mem_context

Troubleshooting

MCP tools not available

Check MCP config:
Verify the engram server entry exists.

Binary not found

Antigravity can’t find engram command:
If missing, install via Homebrew or binary download.

Agent doesn’t use memory

Check that global or workspace rules include the Memory Protocol:

Next Steps