Skip to content

Context in practice For engineers

MCP memory servers compared: which one fits a coding team?

An MCP memory server gives Claude Code, Cursor or Codex a store it can read and write across sessions, and the options differ most in where that store lives and who can share it. For one engineer, CLAUDE.md, auto memory and Cursor rules often cover the need. Use the table below to shortlist one server, then test it for a week on real tasks.

Short answer: which MCP memory server should a coding team use?

Pick an MCP memory server by where its data lives and who needs to read it. The reference memory server keeps a local knowledge graph in one JSONL file. Mem0's MCP server stores memories in a hosted Mem0 account. Basic Memory writes Markdown files you can edit and commit. The Graphiti MCP server builds a temporal knowledge graph in a database you run.

For one engineer on one repository, start with the built-in options: a committed CLAUDE.md, Claude Code auto memory, or Cursor project rules. Add a memory server when you need notes that outlive one machine, or when several people and tools must read the same store. All facts below were checked against official docs and repositories on 23 November 2026.

How do MCP memory servers compare side by side?

The options differ most in where memory lives and who writes it: an agent during a session, a person on purpose, or both. The table uses the same six rows for every option. Each cell states only what the linked primary source says; where a source is silent, the cell says so.

ToolWhere memory livesWhat gets storedWho writes itTeam sharingSetup
Reference memory server (@modelcontextprotocol/server-memory)A local memory.jsonl file; MEMORY_FILE_PATH sets the pathEntities, relations and atomic observationsThe agent, through 9 graph toolsLocal clients can share one file (write lock); no multi-user access describednpx or Docker
Mem0 MCP serverYour hosted Mem0 account; nothing runs locallyText or conversation history saved as memories for a user or agentThe agent, through 11 memory toolsNot described on the MCP pageAdd the HTTPS endpoint; sign in or use an API key
Basic MemoryMarkdown files, ~/basic-memory by default, with a local SQLite indexNotes that form a knowledge graph in MarkdownThe agent and people, in the same filesPaid cloud workspace (Basic Memory Teams)Install with uv and run locally, or use the paid cloud
Graphiti MCP serverFalkorDB (default) or Neo4j that you runEpisodes, entities and facts with valid and invalid datesThe agent; an LLM API key is requiredNamespaces by group_id; no built-in authdocker compose up
Claude Code CLAUDE.md and auto memoryRepository files; auto memory in ~/.claude/projects/<project>/memory/Instructions you write; learnings Claude writesYou (CLAUDE.md); Claude (auto memory)CLAUDE.md via git; auto memory is machine-localBuilt in
Cursor rules.cursor/rules in the repository; user and team rules in CursorInstructions and conventionsYou or your adminsProject rules via git; team rules on Team and Enterprise plansBuilt in
ShifuDesktop app: on your Mac; web app: hosted storageDecisions, constraints and reasoning, each with a source and dateBuilt from the sources you connect; corrections trackedTeam setup through a demoConnect a coding tool through MCP and choose sources

What does the reference MCP memory server do?

The reference memory server is a basic implementation of persistent memory using a local knowledge graph, published in the modelcontextprotocol/servers repository under the MIT license. It stores entities with a type and a list of observations, plus directed relations between them such as works_at. The agent reads and writes through 9 tools, including create_entities, add_observations and search_nodes.

Its strength is that it is small and inspectable. The whole graph is one memory.jsonl file, and the memory://knowledge-graph resource returns it as JSON. Optional limits on entity count, relation count and file size are available and unset by default.

Its main limit is storage location. By default the file sits in the server's own directory, and the README warns that a path under node_modules can be deleted when the package is reinstalled or the npx cache is cleared. Set MEMORY_FILE_PATH to an absolute path you own. Several MCP clients on one machine can share the file, since a write lock makes their writes take turns, but the README describes no multi-user access or authentication. For a team it works as a personal scratchpad, not a shared record.

What does the Mem0 MCP server do?

Mem0's MCP server is a hosted endpoint at mcp.mem0.ai that connects a coding tool to memories stored in your Mem0 account. According to Mem0's docs, nothing runs on your machine. You authenticate with a browser sign-in or an API key sent as a bearer token, and the server exposes 11 tools, including add_memory, search_memories and update_memory.

Its strength is low setup cost across tools. The docs give the same one-line install for Claude Code and Cursor, and Mem0 publishes separate integration guides for Codex and Claude Code. Memories are saved for a user or an agent, and Mem0 also offers an open-source version you run yourself.

Two limits matter for a team. The MCP page does not describe project or organization scoping, so check how memories separate before two clients share an account. And the older self-hosted mem0-mcp repository was archived on 24 March 2026, with its README pointing to the hosted server. Plan for the hosted route if you choose Mem0 through MCP.

What does Basic Memory do?

Basic Memory is an open-source MCP server, licensed AGPL-3.0, that stores what you and an AI assistant record as Markdown files on your disk. Notes live in ~/basic-memory by default, with a local SQLite index for search. Its README lists Claude, Codex, Cursor and VS Code among the supported MCP clients.

Its strength is that people and agents write the same files. You can open the notes in Obsidian or any editor, review what the agent wrote, and fix it by hand. Because the store is plain Markdown, you can also put a project's notes under version control.

Its limit for a team is that sharing moves to a paid service. The README describes Basic Memory Teams as a shared cloud workspace where a teammate's notes are available to everyone and to their AI assistants. Without it, each engineer has a separate local folder unless you sync it yourself.

What does the Graphiti MCP server do?

The Graphiti MCP server exposes Graphiti, a framework from the getzep organization for temporal knowledge graphs, to MCP clients. It stores episodes of text, messages or JSON, extracts entities and facts from them, and records when each fact was valid. That makes it the option in this comparison that tracks what was true before as well as what is true now.

Its cost is infrastructure. You run FalkorDB, which docker compose bundles by default, or Neo4j 5.26 or later, and you supply an LLM API key because extraction calls a model. The group_id parameter namespaces data, so one deployment can hold separate graphs per project.

The README calls the server experimental and a reference implementation not meant for production. It has no authentication, authorization or prompt-injection protection, so do not expose it to an untrusted network. A team that wants a shared Graphiti store has to add its own access controls.

Where native tools are enough

Native tools are enough when the facts are rules a person can write down and the team already shares a repository. In Claude Code, a committed CLAUDE.md loads in every session and reaches every teammate through git. Auto memory adds notes Claude writes from your corrections, and loads the first 200 lines or 25KB of MEMORY.md at session start.

Auto memory has one boundary that decides many cases. Anthropic's memory documentation says it is machine-local: files are not shared across machines or cloud environments. If a teammate needs a note, move it into CLAUDE.md or a .claude/rules/ file.

Cursor covers the same ground with rules. Project rules live in .cursor/rules and are version-controlled. User rules apply across your projects, and team rules, on Team and Enterprise plans, let admins require a rule for every member. Cursor also reads AGENTS.md. For a stable set of conventions, these files are simpler to review than any memory server.

How Claude Code memory works, scope by scope

How should you choose between memory options?

Choose by who reads the memory and who checks it. For a single developer, the reference server or Basic Memory keeps data on your disk, and Basic Memory lets you read and fix what the agent saved. If you work across machines and accept hosted storage, Mem0's hosted server needs no local install.

For a team, ask three questions before installing anything. Where does the store live, and does your security review allow it? Can a teammate see and correct what another engineer's agent saved? Does the memory record why a decision was made, or only what the rule is? A store that only one agent writes can end up holding preferences rather than reasoning.

Then test one option for a week on real work, not a demo. Pick tasks that depend on earlier decisions, and compare the first prompt of each task with and without the server.

What context engineering means for coding agents

  • Day 1: install one server with a storage path or account you control, and list its tools.
  • Days 1 to 3: work normally, then read the raw store and delete anything wrong or stale.
  • Day 4: ask the agent about a decision from day 1 in a fresh session, and check the answer against the source.
  • Day 5: have a second engineer, or a second tool, read the same store, and note what they cannot see.
  • End of week: keep the server only if it answered a question your CLAUDE.md or rules could not.

Where Shifu fits

The memory servers above store what an agent or a person chooses to save. Decisions and their reasons often sit elsewhere: a postmortem, a pull request review, a chat thread from months ago. Shifu is a context engine for AI coding teams. It is designed to retrieve the decisions, constraints and reasoning relevant to the task at hand, with sources, from the sources you connect, and serves them to Claude Code, Codex, Cursor and OpenCode through an MCP tool called get_work_context.

The limits are real. It is a paid service after a free first month, team use starts with a demo, and we have not published customer results. Retrieval still needs an applicability check against the current code.

Sources and verification date

Every tool fact on this page was checked against the official documentation or repository listed under Sources on 23 November 2026. OpenMemory and Cursor Memories are left out because their current official docs no longer describe them. Memory servers change quickly, so recheck setup steps and scoping before you adopt one.

Frequently asked questions

What is an MCP memory server?

An MCP memory server is a Model Context Protocol server that lets a coding tool such as Claude Code or Cursor save and retrieve information across sessions through tools like add_memory or create_entities. Options differ in where data lives: a local JSONL file, Markdown files, a graph database you run, or a hosted account. Check storage location and sharing before adopting one.

Does Claude Code need a memory MCP server?

Not always. Claude Code loads CLAUDE.md in every session and can keep auto memory, notes Claude writes from your corrections. Auto memory is machine-local, so teammates do not receive it. A memory MCP server helps when notes must follow you across machines or tools, or when several engineers must read the same store.

Can a team share one MCP memory server?

Some can, with conditions. Basic Memory offers a paid shared cloud workspace. The Graphiti MCP server namespaces data by group_id but has no built-in authentication, so a shared deployment needs your own access controls. The reference memory server describes no multi-user access, and Mem0's MCP page does not describe team scoping. Verify sharing in the current docs first.

Where does the reference MCP memory server store data?

The reference memory server stores its knowledge graph in a memory.jsonl file in the server's own directory by default. The README warns that this location can be deleted when the package is reinstalled or the npx cache is cleared, and recommends setting MEMORY_FILE_PATH to an absolute path you own. The file holds entities, relations and observations.

Does Cursor have a built-in memory feature?

Cursor's current documentation describes rules rather than a memory store. Project rules live in .cursor/rules and are version-controlled, user rules apply across your projects, and team rules on Team and Enterprise plans can be required by admins. Cursor also reads AGENTS.md. For memory that the agent writes itself, connect an MCP memory server.

Sources and further reading

Prepared with AI assistance and reviewed for source fidelity and practical usefulness. Examples marked fictional are illustrations, not customer results.

PUT THE CONTEXT TO WORK

Try it on one feature.

If your team keeps re-explaining decisions to coding agents, ask about a four-week team pilot for 2 to 4 engineers on one project.

Ask about a team pilot

Keep reading