Memdex
Provides conversation memory indexing and search for Google Antigravity, enabling on-demand recall of past project conversations via MCP tools.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Memdex
Local-first cross-project conversation memory index for Google Antigravity, built with Node.js built-in node:sqlite (zero native compilation) and the Model Context Protocol (MCP).
Inspired by Shankarsan-Sahoo/persistent-memory-plugin, re-engineered in Node.js for Antigravity 2.0, macOS/Linux/Windows portability, and Chinese/English full-text search.
Features
Zero native compilation: Uses Node.js (
>= 22.5) built-innode:sqlite(DatabaseSync) with WAL mode. No Python, nouv, nobetter-sqlite3.Chinese & English hybrid search: Indexes messages in SQLite FTS5 with
tokenize='trigram'for terms of length ≥ 3, with case-insensitive substring fallback for 2-character queries (e.g.记忆,js).Noise-free indexing: Indexes only
USER_INPUT(stripped of internal metadata XML wrappers) and non-emptyPLANNER_RESPONSE. ExcludesGENERICtool outputs.Multi-surface transcript discovery: Scans
~/.gemini/antigravity/brain,~/.gemini/antigravity-ide/brain, and~/.gemini/antigravity-cli/brain.Fast incremental
Stophook: Tracks(file_mtime, file_size)per conversation, syncs only the finished session on turn stop, and prints valid{}JSON to stdout.On-demand recall via MCP: Avoids noisy per-step
PreInvocationauto-injection. Exposes 4 focused MCP tools:search_past_memory(query, project?, limit?)get_conversation_detail(conversation_id, max_messages?)list_recent_conversations(limit?, project?)sync_memory_now(force?)
Related MCP server: WeChat Local Agent MCP
Prerequisites
Node.js
>= 22.5.0(with built-innode:sqliteand SQLite FTS5trigramsupport)
Installation
Clone the repository and install dependencies:
git clone https://github.com/qwang07/memdex.git
cd memdex
npm installLink or copy the directory into Antigravity's global plugins folder:
ln -s "$(pwd)" ~/.gemini/config/plugins/memdexAntigravity automatically discovers and enables plugins placed under ~/.gemini/config/plugins/. No plugins.json configuration is needed.
Backfill existing conversations (optional — new conversations sync automatically via the
Stophook):
npm run syncCLI Usage & Testing
# Run automated regression tests (unit + Stop hook + MCP stdio E2E)
npm test
# Incrementally sync all local Antigravity transcripts
npm run sync
# Search indexed conversations from the terminal
node scripts/harness.mjs search "全局记忆"
# List recent indexed conversations
npm run listLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Hosted MCP messaging across owners, tools, and machines, with readable transcripts.
Search and manage your team's knowledge from MCP clients.
Persistent, verbatim, searchable memory for AI assistants — one memory across every MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA remote MCP server that enables AI coding agents to search and retrieve context from imported AI chat history (ChatGPT, Claude, Codex, Claude Code) stored in Google Drive, with zero server-side storage and OAuth-based privacy.MIT
- AlicenseBqualityCmaintenanceA local-first MCP server that lets agents search and summarize a user's own WeChat history, with stable pagination, bulk chat workflows, unread/event queries, and gated enrichment tools.193MIT
- AlicenseNot gradedqualityCmaintenanceProvides local-first retrieval over long design conversations, enabling users to find where a decision was made, why, and what replaced it, with turn and line range citations through hybrid retrieval, typed judgment rerank, exact search, and five MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables authorized AI clients to search locally stored WeChat conversations, media, and attachments, retrieve original-message context, and cite evidence through a local stdio MCP interface.AGPL 3.0