Codebase Memory MCP Servers Compared (2026)
Updated 2026-05-18 · 6 options reviewed
If you've ever watched Claude forget a function name three messages into a refactor, you've felt the pain. Memory MCP servers fix that by giving the agent a place to write down — and recall — facts about your repo, your team, and your project history. This guide compares the five most-starred memory MCP servers and the official reference implementation, so you can pick the one that matches your workflow.
At a glance
| Server | Best for | Stars | Official? | Language |
|---|---|---|---|---|
| codebase-memory-mcp | Large monorepos where the agent keeps losing track of where a symbol is defined. | ★ 1,532 | — | C |
| MCP Memory Service | Teams running multiple agent frameworks who want one shared memory. | ★ 1,734 | — | Python |
| Memory Bank MCP | Cline users juggling several projects. | ★ 893 | — | TypeScript |
| Memorix | Polyglots who bounce between Cursor and Claude Code mid-task. | ★ 416 | — | TypeScript |
| Memory | Anyone learning MCP, or who wants the most stable, spec-faithful baseline. | — | ✅ | — |
| Context7 | Agents that keep hallucinating outdated APIs (React, Next.js, etc.). | ★ 53,600 | ✅ | TypeScript |
In depth
codebase-memory-mcp
★ 1,532 · C · database · DeusData/codebase-memory-mcp
DeusData's codebase-memory-mcp indexes your code into a searchable knowledge graph the LLM can query. Designed specifically for code — symbols, imports, call sites — not just free-form notes.
- Code-aware: understands AST structure, not just text
- Fast incremental re-indexing on file change
- 1.5k+ GitHub stars, actively maintained
- Setup is heavier — runs a local index daemon
- Code-focused: not ideal for storing meeting notes or PRDs
MCP Memory Service
★ 1,734 · Python · data · doobidoo/mcp-memory-service
doobidoo's mcp-memory-service is a REST + MCP persistent memory layer with a knowledge-graph backend. Works with Claude, LangGraph, CrewAI, AutoGen out of the box.
- Cross-framework — same memory, multiple clients
- 1.7k stars, mature project
- REST API means you can integrate with non-MCP tools too
- Generic memory — not code-aware
- Needs a running server process
Memory Bank MCP
★ 893 · TypeScript · ai · alioshr/memory-bank-mcp
alioshr's memory-bank-mcp is a remote, multi-project memory bank — compatible with the Cline Memory Bank format. Memory is keyed per project, perfect for switching between repos.
- Multi-project out of the box
- Compatible with Cline's existing Memory Bank convention
- Lightweight
- Requires self-hosting if you want it remote
- No code-aware indexing
Memorix
★ 416 · TypeScript · ai · AVIDS2/memorix
AVIDS2's memorix is a cross-agent memory layer — share context between Claude Code, Cursor, and Cline so when you switch tools the agent doesn't start over.
- Designed for multi-client workflows
- Simple slug-based memory namespaces
- Smaller community (~400 stars)
- Newer project, expect some rough edges
Memory
Official · ai · modelcontextprotocol/servers
The official memory MCP server from Anthropic / modelcontextprotocol. A simple persistent knowledge graph — minimal, well-understood, but bare-bones.
- Reference implementation, always up to date with the spec
- Zero dependencies, easy to audit
- Great starter for learning how memory MCPs work
- No code-aware features
- Single-project unless you wrap it
Context7
★ 53,600 · Official · TypeScript · devtools · upstash/context7
Upstash's context7 isn't strictly a memory server — it's a live docs context server that pulls up-to-date library docs into your coding agent. We're including it because most users who search for 'memory MCP' actually need *up-to-date context*, and context7 solves that better than a knowledge graph.
- Always fresh — no stale memory to invalidate
- 53k+ GitHub stars (huge community)
- Works alongside any other memory MCP
- Read-only — you can't write your own facts
- Limited to library docs Upstash has indexed
Our recommendation
FAQ
Do I need a memory MCP at all?
Can I run multiple memory MCPs at the same time?
context7 (read-only library docs) + codebase-memory (your own code) + a generic memory server for free-form notes. Claude routes the right query to the right server.