Best MCP servers for persistent memory
8 MCP servers that let an agent remember between sessions — a local graph file, a searchable service, or a hosted store. Where the data lives decides most of the rest.
How to choose
Memory is the one category here where "which one is best" is mostly a question about your own answer to four things.
- Where it is stored decides what you can audit. A local server writes a JSON knowledge graph you can open, diff and delete; a hosted service keeps it in someone else's database. If you will ever need to read or remove a memory, that difference matters more than any feature list.
- Who reads it next. "Remember this session" and "remember across sessions, machines and agents" are different problems: a file-based graph belongs to one config, a hosted store is shared. Choose by who needs the memory, not by stars.
- Retrieval is a second system you are also operating. Semantic memory (embeddings, vector search) means extra model calls, extra cost, and a failure mode where the wrong memory is retrieved confidently. A plain graph or keyword store is easier to debug.
- No delete tool means growing noise. Check the tool list for update and delete before installing: memory that can only accumulate eventually degrades the answers it was meant to improve.
- Star counts are inflated in this category. The top entry's 91,352 come from the servers monorepo; purpose-built memory servers at a few hundred stars are doing the actual work. Numbers below are our index at build time.
Our call: start with a local graph server scoped to one project, keep its file inside that project (or gitignored on purpose, not by accident), and move to a shared service only when a second agent or a second machine needs the same memory.
Compare
| Tool | What it remembers | Install | Stars |
|---|---|---|---|
| modelcontextprotocol/server-memory Site ↗ | Knowledge graph-based persistent memory for maintaining context | — | 91,352 |
| vectorize-io/hindsight Site ↗ | Hindsight: long-term memory for AI agents modeled on human memory | — | 51,200 |
| topoteretes/cognee Site ↗ | Memory manager for AI apps and agents using graph and vector stores, with ingestion from m | — | 32,487 |
| cjo4m06/mcp-shrimp-task-manager Site ↗ | Task management for coding agents with task memory, self-reflection and dependency managem | — | 2,146 |
| doobidoo/mcp-memory-service Site ↗ | Memory service with semantic search, persistent storage and autonomous memory consolidatio | — | 2,021 |
| neo4j-contrib/mcp-neo4j Site ↗ | Neo4j integration: run queries, use Neo4j as knowledge graph memory and manage Neo4j Aura | — | 988 |
| agentic-mcp-tools/memora Site ↗ | Persistent memory with knowledge graph visualization, semantic/hybrid search, cloud sync ( | — | 742 |
| CheMiguel23/MemoryMesh Site ↗ | Graph-based memory focused on AI role-play and story generation | — | 354 |
Why these links: every card opens the entry's own page here first (what it does, how to install, how to verify the numbers); the tool's official site is one click further, and nothing here is a paid placement. Numbers come from public sources and are shown so you can check them.
Related / Keep exploring
Keep exploring: MCP directory · all fields · all AI tools · rankings