← Back to directory
M

MegaMemory

Community
Persistent project knowledge for coding agents.
Category
Dev Tools #573 of 751
Stars
★ 929 Popular
Transport
stdio (local process)
Runtime
Node.js 18+
Credentials
No credential needed
License
MIT
Last commit
⚠
Tools
9
44FMRS · D

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

Reliability
6/20
Security and permissions
9/20
Maintenance
8/20
Documentation
11/20
Setup experience
10/20
Why each score
Reliability 6/20
The README lists nine MCP tools, SQLite persistence, embedding generation, and merge features, so the basic flow appears plausible. However, no manifest, source, CI, or test evidence is provided to verify the initialization handshake, tool parameters against behavior, error handling, or dependency control. The static review therefore deducts conservatively.
Security and permissions 9/20
The described side effects are writing knowledge to a project-directory SQLite database, with soft deletion; the README says the embedding model downloads once and then runs without network calls, and that no API key is needed. Without source, file scoping, web explorer exposure, installer modifications, and data flows cannot be verified; confirmation for deletion and merge actions is also unclear. No evidence establishes a red-line issue, but the gaps prevent a high score.
Maintenance 8/20
An MIT license is provided, and the repository metadata says the project is not archived and has four open issues. The README has a version badge, but there is no verifiable record of releases, commits, issue response, dependency updates, or a security response channel, so evidence of sustained maintenance is limited.
Documentation 11/20
The README covers installation, major client configuration paths, tool purposes, storage location, embedding model, a search-scale note, and merge workflows with command examples. It does not provide complete tool parameter definitions, troubleshooting, platform compatibility details, or source evidence. The initial model download is disclosed, but other runtime boundaries remain unclear.
Setup experience 10/20
The README provides global npm installation, an interactive installer, configuration paths for several clients, and a stdio example for other clients. Node.js 18 or later is required, and the model downloads on first use. There is no verifiable client connection or CI/test execution evidence, so the path cannot be scored as a demonstrated one-step setup.

Static review · not runReviewed 2026-12-02

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

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.

Not for

  • Use cases that require indexing code symbols through AST parsing or static analysis; the README says concepts are written by the agent rather than generated through those methods.
  • Large graphs that require a stated performance guarantee; the README describes brute-force cosine similarity search as fast enough for graphs with fewer than 10,000 nodes.

Required permissions

  • Needs to read and write `.megamemory/knowledge.db` in the working directory; `MEGAMEMORY_DB_PATH` can select another database path.
  • The installer configures files for the selected editor or agent, including settings and workflow instructions.
  • The embedding model, about 23 MB, must be downloaded on first use; the README says there are no network calls after that download.

Risks and side effects

  • Knowledge is written by the agent after reading code, so it may be incomplete or inaccurate; the conflict-resolution workflow calls for checking content against the current codebase.
  • The database is a SQLite file. Git cannot automatically merge independent branch changes to it, so the provided merge commands are needed.
  • The README describes semantic search as brute-force cosine similarity and gives fewer than 10,000 nodes as its stated performance range.

Setup

Before you start

Runtime:Node.js 18+

Other optional settings (1)
MEGAMEMORY_DB_PATH optional 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.

.mcp.json
{"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.

.vscode/mcp.json
{
  "megamemory": {
    "type": "local",
    "command": [
      "megamemory"
    ],
    "enabled": true
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
{
  "megamemory": {
    "type": "local",
    "command": [
      "megamemory"
    ],
    "enabled": true
  }
}

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Check that it works

Confirm MegaMemory tools appear in the client's MCP tool list, then call `list_roots` and check that it returns top-level concepts.

Troubleshooting

  1. Check that Node.js 18 or later is installed.
  2. If embeddings are unavailable on first use, check that the model download completed.
  3. Confirm the MCP client starts `megamemory` as a local stdio server and check its working directory and database path.
  4. If port 4321 is occupied when starting the Web Explorer, specify another port, for example `megamemory serve --port 8080`.
  5. After a merge, run `megamemory conflicts` to view unresolved conflicts.

Things to try

Once connected, you can ask your AI assistant things like:

  • Find concepts related to the authentication flow.
  • List the top-level concepts and their direct children.
  • Record a new concept about the project's caching strategy.

Tools 9

understand read-only
Search the knowledge graph semantically and return matched concepts with children, edges, and parent context.
get_concept read-only
Look up a concept by exact ID and return its children, edges, incoming edges, and parent context.
create_concept writes
Add a concept, optionally with edges and file references.
update_concept writes
Update fields on an existing concept and regenerate its embeddings automatically.
link writes
Create a typed relationship between two concepts.
remove_concept destructive
Soft-delete a concept with a reason while preserving history.
list_roots read-only
List all top-level concepts with their direct children.
list_conflicts read-only
List unresolved merge conflicts grouped by merge group.
Show 1 more tools
resolve_conflict writes
Resolve a merge conflict using content verified against the current codebase.

Use cases

Persist project concepts, architecture, and decisions across sessions.
Search project knowledge with natural-language queries before starting a task.
Inspect the knowledge graph in the Web Explorer.
Merge knowledge databases from branches and resolve conflicts.

Supported clients

OpenCode
Claude Code
Antigravity
Codex

Listed from the project's documentation, not tested by this site.

Overview

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.

Similar servers

Source revision e0bb3c270d7f Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/megamemory.svg)](https://followmcp.com/en/servers/megamemory)