by 0xK3vin
Persistent project knowledge graph for coding agents. MCP server with semantic search, in-process embeddings, and web explorer.
# Add to your Claude Code skills
git clone https://github.com/0xK3vin/MegaMemoryAn MCP server that lets your coding agent build and query a graph of concepts, architecture, and decisions — so it remembers across sessions.
The LLM is the indexer. No AST parsing. No static analysis. Your agent reads code, writes concepts in its own words, and queries them before future tasks. The graph stores concepts — features, modules, patterns, decisions — not code symbols.
understand → work → update
list_roots to orient itselfunderstand with a natural language query (or get_concept for exact ID lookup)create_concept or update_concept to record what it builtNo comments yet. Be the first to share your thoughts!
Everything persists in a per-project SQLite database at .megamemory/knowledge.db.
npm install -g megamemory
[!NOTE] Requires Node.js >= 18. The embedding model (~23MB) downloads automatically on first use.
megamemory install
Run the interactive installer and choose your editor:
megamemory install --target opencode
One command configures:
~/.config/opencode/opencode.json~/.config/opencode/AGENTS.md~/.config/opencode/tool/megamemory.ts/user:bootstrap-memory for initial graph population/user:save-memory to persist session knowledgeRestart opencode after running install.
megamemory install --target claudecode
Configures:
~/.claude.json~/.claude/CLAUDE.md~/.claude/commands/megamemory install --target antigravity
Configures:
./mcp_config.json (workspace-...