axsDocs
Guides

MCP memory servers compared: axs brain, Mem0, Zep and more

Compare MCP memory servers for Claude Code, Codex and Cursor. Hosting, team sharing, how memories reach the agent, rules, pricing and license.

For one person who wants memory offline and free, start with a local open source server: the official reference memory server or Basic Memory. If you want hosted memory with an API for your own app, look at Mem0 or Zep. If a team of coding agents should share memory, get it pushed in without asking and follow team rules, use axs brain.

Checked November 2026.

Comparison

HostingTeam sharingHow memories reach the agentRule enforcementPriceLicense
axs brainHostedTeam spaces with read and write accessPushed by hooks at session start, first work on a project and every prompt; agent can also searchRules block, ask first or remind from hooks€12 a month, Team €20 per person a month, 14 day trial, no free tierHosted service
MCP reference memory serverLocal JSONL fileNot built inAgent calls tools such as search_nodes and read_graph; a suggested system prompt tells it toNoneFreeMIT
OpenMemory MCPLocal, Docker, OpenAI keyNot statedAgent calls add_memories, search_memory, list_memoriesNot statedFreeNot stated
Mem0 Platform MCPHostedNot statedAgent calls tools such as add_memory and search_memoriesNot statedFree plan with usage limits, Custom planMem0 library Apache 2.0
Zep Context MCP ServerHosted or in your cloudPer user graphs, shared Context GraphsAgent calls tools such as search_graph; a plugin skill tells it whenNot statedFree 10,000 credits a month, Flex from $125 a monthNot stated
Graphiti MCP serverSelf-hosted, Neo4j, LLM keyNot statedAgent calls toolsNo auth in the reference serverFreeApache 2.0
Basic MemoryLocal Markdown, or CloudBasic Memory Teams (cloud)Agent calls bm_* toolsNot statedLocal free, Cloud $15 a monthAGPL-3.0

axs brain

axs brain is shared long term memory for Claude Code, Codex, Cursor and any MCP client. Its main difference is how memories arrive. Agents rarely search for what they do not know they are missing, so hooks push memories in: always-on rules at session start, a project's memories the first time the agent works on it, and matching memories on every prompt. When you correct the agent, it is asked to save the lesson, and the next session starts with it.

Rules run in the same hooks, so the agent cannot skip them. A rule can block a command, stop and ask you first, or remind the agent at the right moment. In a team, owners confirm rules and spaces control who reads and writes what.

Hooks need Claude Code, Codex or Cursor. Other clients connect over MCP and load memories with memory_context, but nothing is pushed and block rules do not apply there.

Pick it when a team of agents should share what they learn and follow the same rules. Skip it if you want free, offline or self-hosted memory: it is a paid hosted service with no free tier. See Plans and billing.

MCP reference memory server

The official server in modelcontextprotocol/servers stores a knowledge graph of entities, relations and observations in a local memory.jsonl file. It runs over stdio with npx or Docker, and has an optional local HTTP mode. It is MIT licensed and has no account or cost.

The agent has to call the tools itself. The README gives a system prompt that tells the model to read memory at the start of each chat and save new facts.

Pick it when you work alone, want zero setup cost and are fine with the agent deciding when to remember.

Mem0 and OpenMemory MCP

Mem0 is a memory layer for AI apps: a Python library, a self-hosted server and a hosted platform. The library is Apache 2.0. The hosted Mem0 MCP server at mcp.mem0.ai gives the agent memory tools and lets it decide when to save or look something up. The free plan has unlimited end users and monthly limits on adds and retrievals; graph memory, SSO and on-prem are on the Custom plan.

OpenMemory MCP is Mem0's local option: it runs on your machine with Docker and an OpenAI key, with a UI to see your memories.

Pick Mem0 when you build your own app and need a memory API with per-user memory. Pick OpenMemory as a local Mem0 setup for one person.

Zep and Graphiti

Graphiti is Zep's open source temporal knowledge graph, Apache 2.0. Its reference MCP server is self-hosted with Neo4j and an LLM (OpenAI by default). The README says the reference server has no authentication, so keep it local.

Zep is the hosted service on top. Its Context MCP Server works with Claude, ChatGPT, Claude Code, Codex and Cursor. Memory is per user; admins can share Context Graphs across users. The free tier has 10,000 credits a month.

Pick Graphiti if you want a graph you run yourself. Pick Zep if you need graph memory at production scale.

Basic Memory

Basic Memory keeps knowledge as Markdown files you can read and edit, with a local SQLite index. It works with Claude Desktop, Claude Code, Codex, Cursor, VS Code and Obsidian. Local use is free under AGPL-3.0; Basic Memory Cloud adds sync across devices and a Teams workspace for $15 a month (regular $19), with a 7 day trial.

Pick it when you want notes a human can read and edit next to the agent, offline and open source.

Letta

Letta (formerly MemGPT) is a platform for stateful agents, with Letta Code as its coding agent. It is Apache 2.0, with self-hosting and Letta Cloud. It is not an MCP memory server for other agents. Pick it if you want to switch to an agent built around memory, not add memory to Claude Code.

How to choose

  • Solo, offline, free: the MCP reference memory server, or Basic Memory if you want readable Markdown.
  • Open source you can audit: reference server (MIT), Graphiti (Apache 2.0), Basic Memory (AGPL-3.0).
  • Memory inside your own product: Mem0 or Zep.
  • A team of coding agents with shared memory: axs brain, Zep or Basic Memory Teams. See shared memory for AI coding agents.
  • Memories that arrive without the agent asking, and rules it cannot skip: axs brain. See Claude Code team memory.

FAQ

What is an MCP memory server?

A server that speaks the Model Context Protocol and gives an AI agent tools to save and find memories across sessions. Most expose tools the agent must call; some add hooks or skills that tell it when.

What is the best MCP memory server for Claude Code?

For a solo developer on a budget, the reference memory server or Basic Memory. For a team that wants memories pushed in by hooks and rules enforced, axs brain. Claude Code supports hooks, so axs brain works there in full.

Is there a free Mem0 alternative?

Yes. The MCP reference memory server, Graphiti and Basic Memory are open source and free to run locally. OpenMemory is Mem0's own local option. axs brain is not free: it has a 14 day trial, then a paid plan.

Does the agent have to call a tool to remember?

With most servers, yes: the agent decides when to search and save. axs brain pushes memories in from hooks in Claude Code, Codex and Cursor, so the agent gets them even when it does not think to ask.

Can my team share one memory?

Some can. axs brain has team spaces with access control, Zep has shared Context Graphs and Basic Memory has a Teams cloud workspace. The reference server keeps one local file.

On this page