Best for
- Projects where coding agents need to retain context across sessions.
- Developers or teams using an MCP-capable coding environment who want to maintain a project knowledge graph.
The README describes an MCP stdio server with nine tools, SQLite persistence, in-process embeddings, a graph explorer, and database merge workflows. Editor installation targets listed are OpenCode, Claude Code, Antigravity, and Codex. The supplied repository material does not establish that the server is maintained by the MCP protocol owner or a product owner.
Strongest · Documentation 11/20 Weakest · Reliability 6/20
Static review · not runReviewed 2026-12-02
Read the FMRS scoring method →Runtime:Node.js 18+
MEGAMEMORY_DB_PATH
Optional override for the knowledge database path; if unset, the server uses `.megamemory/knowledge.db` in the working directory.
Requires Node.js 18 or later. Install megamemory globally with npm, then run megamemory install and choose an editor; alternatively run megamemory install --target opencode, claudecode, antigravity, or codex. For other MCP clients, configure megamemory as a local stdio server. The default database is .megamemory/knowledge.db in the working directory; set MEGAMEMORY_DB_PATH to override it. The embedding model, about 23 MB, downloads on first use.
{"megamemory":{"type":"local","command":["megamemory"],"enabled":true}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"megamemory": {
"type": "local",
"command": [
"megamemory"
],
"enabled": true
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
{
"megamemory": {
"type": "local",
"command": [
"megamemory"
],
"enabled": true
}
}
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
Confirm MegaMemory tools appear in the client's MCP tool list, then call `list_roots` and check that it returns top-level concepts.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
MegaMemory is an MCP server that helps coding agents build and query a project knowledge graph of concepts, architecture, and decisions across sessions. It stores data in SQLite and provides semantic search and a browser-based graph explorer.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision e0bb3c270d7f Data synced 2026-12-05 Read the FMRS scoring method Markdown