This comparison puts seven memory tools for coding agents side by side: where memories live (SQLite, Markdown, a hosted account), whether saving costs a model call, and the licence. A practical reference for anyone deciding which memory layer to attach to Claude Code, Codex or Cursor.
Key points
- claude-mem hands every tool call to an observer model through hooks, then stores notes in SQLite with Chroma under ~/.claude-mem.
- Mem0's hosted MCP server runs nothing locally: memories live in your Mem0 account, and that account is required.
- Cognee turns input into a knowledge graph and works fully locally with a GLiNER extractor and local embeddings when no provider key is set.
- Basic Memory keeps agent-readable Markdown files on disk with a local SQLite index; it is the only AGPL-3.0 tool on the list.
- The reference MCP memory server is a single JSONL knowledge graph driven by tools such as create_entities and add_observations.
- hippo, written by the author, stores a SQLite database per repo plus Markdown copies; his own 29-repository test cut repeated mistakes from 21 to 11.
Why it matters
Memory is the layer teams most often wire up wrong: the first questions are where the tool writes memories and whether each save costs a model call. This table answers both. claude-mem and Supermemory run an observer model for automatic capture, while Basic Memory and hippo mostly record what the agent writes itself, so token spend and privacy exposure start from different places.
Before adopting one, check three things: whether memory files land in the repo or your home directory, which provider sees the data, and whether the licence fits commercial use (Basic Memory is AGPL-3.0). Note that hippo's numbers come from its author and the test code is not public; treat them as a starting point for a short trial on your own repo, not as independent proof.
Real-world use
- A team rotating between Claude Code, Codex and Cursor on one repo and wanting a single memory store
- Projects that cannot send context off-machine and need a fully local setup
- Developers who want memory notes committed to Git and reviewed in a pull request
- Solo developers trying not to lose context when a long session is compacted
This summary was generated by the agent from the original post on DEV: mcp. The full text and all rights belong to its author and publisher. Go to original