antigravity-context-mcp
Click on "Deploy 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-context-mcp continue from where we left off in the last session"
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-context-mcp
You've been coding with your AI agent for two hours. The feature is almost done. You're in the flow.
Then the context window overflows. The session crashes.
You open a new chat. The agent looks at you like you've never met. "Hi! How can I help you today?"
Everything you built together — the decisions, the architecture, the twenty files you touched — gone. You start explaining from scratch. Again.
This MCP server gives Antigravity its memory back.
How it works
Session crashed. New chat. You type:
"continue"
The agent calls recall and gets the task checklist from the last session — what was done, what's in progress, where things stopped.
Need more detail?
"show me the details of that session"
The agent fetches the full context — walkthrough, plan, decisions made.
Want to look back at the week?
"show recent sessions"
You get a list with dates and titles. Pick one — the agent loads details only for that session.
Context loads progressively — the agent decides how much it needs. Not everything at once, but on demand, like a normal conversation.
Related MCP server: handoff-mcp
Install
Paste the link to this repo into an Antigravity chat:
"install this MCP server: https://github.com/eglebov133-sudo/antigravity-context-mcp"
The agent will clone it, install dependencies, and configure everything. Restart Antigravity — done.
git clone https://github.com/eglebov133-sudo/antigravity-context-mcp.git
cd antigravity-context-mcp
npm installAdd to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"context": {
"command": "node",
"args": ["/path/to/antigravity-context-mcp/server.js"]
}
}
}Restart Antigravity.
What it reads
The server taps into what Antigravity already stores but doesn't use between sessions:
Task checklists — what's done, what's in progress
Walkthroughs — summaries of completed work
Implementation plans — architectural decisions made
All local. No network. Just files on your disk that were always there.
Beyond context
Passwords between sessions. You know the drill — you give the agent your hosting password, the session dies, the next agent asks for it again. The server stores credentials encrypted with AES-256-GCM (key derived from your machine), auto-excluded from Git.
Persistent notes. Save code words, instructions, decisions with save_note — search them later with recall_notes.
Context snapshots. The agent can save an AGENT_CONTEXT.md into your project — persistent memory that survives any number of crashes.
Project list. Shows what Antigravity knows about, so you can switch projects without orientation time.
Diagnostics. context_status shows server health — sessions, notes, disk usage, encryption status.
What's new in v5.0
📦 Export/import memory —
context_exportdumps all notes to an encrypted file,context_importrestores on another machine💾 Auto-backups — notes are automatically backed up before every modification (
.backups/, 30-version retention with auto-pruning)🔐 Encrypted credentials — AES-256-GCM, machine-bound key, auto-migration from plaintext
🛡️ Error handling — try/catch on every tool with clear error messages
📏 Response limits — 50,000 char cap with
[TRUNCATED]warning🩺 Diagnostics —
context_statusfor server health monitoring
Full changelog in CHANGELOG.md.
Security
Runs locally via stdio — no open ports, no network
Read-only by default — writes only when you explicitly ask
Credentials encrypted with AES-256-GCM, key bound to machine
Auto-migration from plaintext to encrypted
Zero telemetry, zero external requests
Requirements
Node.js 18+
Antigravity
License
MIT
Built because we got tired of introducing ourselves to our own AI agent.
Available Tools
12 toolscontext_exportA
Export all memory (session notes, credentials) to an encrypted JSON file for backup or transfer to another machine. Returns the path to the exported file.
Inputs: output_path, include_credentials.
context_importB
Import memory from a previously exported file. Merges notes into existing sessions without overwriting.
Inputs: file_path (required).
context_statusA
Health check and diagnostics for the Context MCP Server. Shows version, brain directory stats, session count, notes count, knowledge items, disk usage, and credentials encryption status. Use when user asks 'is context server working', 'статус сервера', or for debugging.
Inputs: no named parameters.
get_credentialsC
Read saved credentials (.credentials file) from the project directory.
Inputs: project_path (required).
list_projectsB
List all known projects tracked by Antigravity.
Inputs: no named parameters.
recallA
Quick recall: returns ONLY the task checklist (task.md) from the most recent session. Lightweight, won't overload context. Use when user says 'continue', 'продолжи', 'what were we doing'. If you need more detail, follow up with recall_session. By default filters to current project if project_path is provided.
Inputs: project_path.
recall_notesA
Search saved notes across sessions. Use when user asks about code words, past instructions, or saved information. Returns matching notes with dates and session context.
Inputs: tag, query, last_n.
recall_sessionA
Get FULL details of a specific session by its ID (from recall_sessions). Returns task.md, walkthrough.md, and implementation_plan.md without truncation.
Inputs: session_id (required).
recall_sessionsA
List recent sessions with dates and titles. Returns a compact index so you can pick which session to drill into. Use when user wants a broader view: 'what have we been working on', 'покажи сессии'. By default filters to current project if project_path is provided. Use all_projects=true to see everything.
Inputs: count, all_projects, project_path.
save_context_fileC
Write AGENT_CONTEXT.md into the project directory.
Inputs: context_text (required), project_path (required).
save_credentialsA
Save credentials to .credentials file in the project directory. Auto-adds to .gitignore.
Inputs: credentials (required), project_path (required).
save_noteA
Save an important note from the conversation (code words, instructions, decisions, credentials). Use this WHENEVER the user says 'запомни', 'remember', or shares something important that should persist across sessions. Notes are stored in session_notes.md in the brain folder.
Inputs: note (required), tag, session_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
The four recall-family tools (recall, recall_session, recall_sessions, recall_notes) are differentiated only by singular/plural and a short description, making them easy to misselect in practice. Credentials read/write and the export/import pair are clear, but the session-retrieval cluster is the weak spot.
Most tools follow verb_noun (recall_session, save_note, get_credentials), but context_status/context_export/context_import invert to noun_verb, and the recall/recall_session/recall_sessions trio relies on subtle singular/plural distinctions. Readable overall but not a single predictable convention.
Twelve tools is within a reasonable range for a memory/context server covering sessions, notes, credentials, projects, backup, and diagnostics. Slight over-fragmentation in the recall tools, but each otherwise maps to a real operation.
Read and write paths are covered for notes, credentials, and context files, plus export/import and health diagnostics. Gaps exist around deletion/pruning of notes or sessions and no explicit session-creation tool (implicitly automatic), but core workflows are supported.
Maintenance
Related MCP Connectors
Persistent engineering memory designed to follow developers across coding agents.
Persistent cross-session memory shared by Codex, Claude Code, ChatGPT, and other AI agents.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Long-term memory for AI coding agents: durable project facts, recalled by every MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables infinite searchable memory for coding agents across sessions, allowing them to recall past decisions and context.60 npm16MIT
- AlicenseNot gradedqualityBmaintenanceProvides persistent memory for AI coding agents across sessions by saving and loading session context like tasks, decisions, and blockers.552 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables persistent memory for AI coding agents, allowing them to remember people, decisions, and context across sessions through a knowledge graph and automated briefings.74 PyPI15MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to explicitly save, resume, and search encrypted project memory locally, with opt-in disclosure and offline neural retrieval.MIT