# Best MCP Memory Servers in 2026: 9 Options Compared

Published: 2026-10-24 · Updated: 2026-11-17 · Author: Membase Team  
Source: https://membase.com/blog/best-mcp-memory-servers

> **Disclosure:** Membase is our product. We list it first because it’s the server we know best, and we say plainly where another server is the better fit. Licenses, pricing and setup were checked on vendor docs, pricing pages and GitHub in October 2026. See “How we compared” at the end.

**Quick links:** [Get a free Membase API key](https://app.membase.com/) · [Membase MCP setup](https://docs.membase.com/connect/clients/membase-mcp/) · [Docs](https://docs.membase.com/) · [GitHub](https://github.com/membaseai/membase) · [1-min Claude Code demo](https://www.youtube.com/watch?v=G6mH6uziDuM)

**TL;DR**

- An MCP memory server gives Claude Code, Cursor, Claude Desktop and other MCP clients a memory that lasts beyond one session.
- **[Membase](https://membase.com/):** the memory layer for AI agents. One memory shared by your own agents *and* your AI tools, hosted or local. Free, then $19/mo.
- **[Knowledge Graph server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory):** the official reference server. One npx command, a local file, free.
- **[Basic Memory](https://github.com/basicmachines-co/basic-memory):** memory as Markdown notes you can open in Obsidian.
- **[mcp-memory-service](https://github.com/doobidoo/mcp-memory-service):** self-hosted memory for several agents, with a REST API and dashboard.
- **[Mem0](https://mem0.ai/):** hosted MCP server for teams already on Mem0. OpenMemory is deprecated.
- **[Supermemory](https://supermemory.ai/):** hosted MCP with OAuth sign-in and data connectors.
- **[Graphiti](https://github.com/getzep/graphiti):** self-hosted temporal graph for facts that change over time.
- **[Cognee](https://www.cognee.ai/):** knowledge graph plus vectors, built from documents.
- **[Zep Context MCP](https://www.getzep.com/):** managed, per-user graphs and SSO for organizations.

![Comparison table of nine MCP memory servers by storage, where they run, best fit, license and cost to start](https://dmc2j1nsu0tnv.cloudfront.net/1792779102329-uKmQ-membase-best-mcp-memory-servers-2026.webp)

## What is an MCP memory server?

MCP memory is long-term memory that an AI tool reaches through the [Model Context Protocol](https://modelcontextprotocol.io/) (MCP), the standard way AI tools call external tools. A memory server is an MCP server whose tools save and search information, such as add_memory and search_memories. Connect one to Claude Code and it can remember project decisions next week; connect the same server to Cursor and both tools draw on the same memory.

Claude Code has built-in memory (CLAUDE.md and auto memory), but it stays on one machine and isn't shared with your other tools or teammates. A memory server is how you give it long-term recall that follows you across machines and tools, without writing code. For how Claude Code's own memory works, see [How to Add Persistent Memory to Claude Code](https://membase.com/blog/claude-code-memory).

## MCP memory servers at a glance

| Server | Stores memory as | Runs | Best for | License | Cost to start |
| --- | --- | --- | --- | --- | --- |
| [Membase](https://membase.com/) (beta) | Episodes and topic trees in Memories, with sources | Hosted endpoint, or local | One memory for your agents *and* AI tools | Proprietary; SDK, CLI and MCP server public | Free, then $19 and $69 a month |
| [Knowledge Graph](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) (official) | Entities and relations in a local JSONL file | Local (npx) | Trying MCP memory in minutes | MIT → Apache 2.0 | Free |
| [Basic Memory](https://github.com/basicmachines-co/basic-memory) | Markdown notes, Obsidian-compatible | Local, or cloud | Notes you can read and edit yourself | AGPL-3.0 | Free locally · Cloud per seat |
| [mcp-memory-service](https://github.com/doobidoo/mcp-memory-service) | Vector store with REST API and dashboard | Self-hosted | Several agents on your own server | Apache 2.0 | Free |
| [Mem0](https://mem0.ai/) (hosted MCP) | LLM-extracted facts, linked by entities | Hosted | Teams already on Mem0 | Apache 2.0 SDK; Platform is managed | Free · Custom |
| [Supermemory](https://supermemory.ai/) | Memories and connected sources | Hosted (OAuth) | Hosted memory with connectors | MIT repo; hosted API is paid | Free tier · from $19 |
| [Graphiti](https://github.com/getzep/graphiti) (by Zep) | Temporal knowledge graph | Self-hosted (Docker + graph DB) | Facts that change over time | Apache 2.0 | Free + LLM costs |
| [Cognee](https://www.cognee.ai/) | Knowledge graph plus vectors | Self-hosted, or cloud | Memory built from documents | Apache 2.0 | Free |
| [Zep](https://www.getzep.com/) (Context MCP) | Per-user temporal graphs | Managed | Organizations needing SSO | Proprietary | From $125/month |

## How we chose

We looked at five things that decide whether a memory server works for you:

1. **Where the memory lives**, and whether you can export it.
1. **What each write costs.** Some servers run an LLM on every save to extract facts; others store text as is.
1. **What happens when a fact changes.** Overwrite, keep both, or track history.
1. **Who can reach it.** One tool on one laptop, or several agents and teammates with their own access.
1. **Setup.** One command, or a database and Docker.

## 1. Membase: one memory for your agents and AI tools

[Membase](https://membase.com/) is the memory layer for AI agents. Teach it something once, and your own agents, Claude Code, Cursor, Codex and ChatGPT all remember it: AI tools connect over MCP, and your own agents use the Python or TypeScript SDK.

```bash
claude mcp add --transport http --scope local membase \
  https://api.app.membase.com/mcp-http \
  --header "Authorization: Bearer ${MEMBASE_API_KEY}"
```

![Claude Code registering Membase as an HTTP MCP server, with the key stored as REDACTED](https://dmc2j1nsu0tnv.cloudfront.net/1792779114816-LNix-membase-claude-code-mcp-add.webp)

- **Best for:** teams whose agents and AI tools should share one memory, such as a support bot writing call notes that Claude Code later answers from.
- **Strengths:**
  - One memory across your own code (SDK) and your AI tools (MCP).
  - Each key is scoped to specific memories and an access level, and can be revoked at any time. Connecting without a key signs you in with read-only access.
  - Every search result comes back with the source file it was learned from.
  - Local mode: membase --local mcp runs the same tools against memory on your own machine.
  - Core engine: 93.1% on LoCoMo and 92.6% on LongMemEval_S, using up to 11× fewer tokens than the full history (our own numbers; [method](https://membase.com/research)).
- **Watch out for:** it’s in beta; the core engine is proprietary; there’s no entity graph; isolation is per account rather than per user_id.
- **MCP tools:** search_memories, list_memories, get_memory, add_memory, add_document, list_documents, list_profile_facts, forget_memory, delete_document and more.
- **Pricing:** Free, then $19 and $69 a month.

![Claude Code answering from the Acme pilot memory, with each point traced to its source file](https://dmc2j1nsu0tnv.cloudfront.net/1792779111469-8H9U-membase-claude-code-answer.webp)

[Video: Give Claude Code permanent memory with Membase (MCP)](https://www.youtube.com/watch?v=G6mH6uziDuM)

## 2. Knowledge Graph Memory Server: the official starting point

The [reference memory server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) from the MCP project stores entities, relations and observations in a local JSONL file.

- **Best for:** trying MCP memory in a few minutes on one machine.
- **Strengths:** one npx -y @modelcontextprotocol/server-memory line in your client config; no account; free.
- **Watch out for:** search is simple text matching with no embeddings; one file on one machine, so no sharing.
- **License and pricing:** MIT, moving to Apache 2.0 with the rest of the MCP project · free.

## 3. Basic Memory: memory as Markdown you own

[Basic Memory](https://github.com/basicmachines-co/basic-memory) writes memory as Markdown notes with full-text and vector search, so you can open and edit them in Obsidian.

- **Best for:** people who want to read and correct what their AI remembers.
- **Strengths:** plain files you control; a cloud option adds remote MCP and a web editor.
- **Watch out for:** needs Python and uv locally; sync across machines is manual unless you use the cloud plan; AGPL-3.0.
- **Pricing:** free locally · cloud priced per seat.

## 4. mcp-memory-service: self-hosted memory for several agents

[mcp-memory-service](https://github.com/doobidoo/mcp-memory-service) is a self-hosted service with MCP, a REST API and a dashboard.

- **Best for:** teams that want several agents on one memory, on their own server.
- **Strengths:** open source, multi-agent, REST API alongside MCP.
- **Watch out for:** more setup than a single command; it binds to localhost by default, so remote access takes extra configuration.
- **License and pricing:** Apache 2.0 · free.

## 5. Mem0: hosted MCP for teams on Mem0

[Mem0](https://mem0.ai/) offers a hosted MCP server at https://mcp.mem0.ai/mcp, using browser sign-in or a Mem0 API key; its docs include a one-line npx mcp-add setup for Claude Code, Cursor, Windsurf, VS Code and OpenCode. Its older OpenMemory MCP has been deprecated, and the mem0-mcp repository was archived in March 2026.

- **Best for:** teams already storing memory in Mem0.
- **Strengths:** LLM-extracted facts with semantic, keyword and entity ranking; outdated facts are superseded automatically on Mem0 Platform; tools to add, search, update and delete memories; the free tier is enough to start.
- **Watch out for:** the hosted MCP server stores memory in Mem0’s cloud; retrievals are capped at 1K a month on the free plan; graph memory is on the contract plan, which has no published price.
- **Pricing:** Free · Custom (contact sales).

Comparisons with Membase: [Membase vs Mem0](https://membase.com/blog/membase-vs-mem0) · [Mem0 vs Zep vs Membase](https://membase.com/blog/mem0-vs-zep-vs-membase).

## 6. Supermemory: hosted MCP with connectors

[Supermemory](https://supermemory.ai/) runs a hosted MCP endpoint with OAuth sign-in, team spaces and data connectors.

- **Best for:** low-ops hosted memory that also pulls in other sources.
- **Strengths:** nothing to run; sign in from the client and go.
- **Watch out for:** the documented MCP endpoint is hosted only; self-hosting is on the Scale plan.
- **Pricing:** free tier · paid plans from $19/month.

Comparison with Membase: [Membase vs Supermemory](https://membase.com/blog/membase-vs-supermemory).

## 7. Graphiti: temporal graph you host yourself

[Graphiti](https://github.com/getzep/graphiti), Zep’s open-source engine, has an MCP server that keeps history when facts change.

- **Best for:** agents that must know what was true before and what is true now.
- **Strengths:** temporal knowledge graph; open source.
- **Watch out for:** runs in Docker with a graph database such as FalkorDB or Neo4j; the MCP server is labeled experimental; LLM costs on every write.
- **License and pricing:** Apache 2.0 · free plus LLM API costs.

## 8. Cognee: memory built from documents

[Cognee](https://www.cognee.ai/) builds a knowledge graph plus vectors and exposes tools to remember, recall and forget.

- **Best for:** memory that comes mostly from documents and internal knowledge.
- **Strengths:** open source; self-host or use its cloud free tier.
- **Watch out for:** more setup than file-based servers.
- **License and pricing:** Apache 2.0 · free self-hosted.

## 9. Zep Context MCP: managed memory for organizations

[Zep](https://www.getzep.com/)’s managed MCP server gives each user their own temporal graph, with single sign-on.

- **Best for:** organizations that need SSO and a managed service.
- **Strengths:** per-user graphs; enterprise features.
- **Watch out for:** someone has to build the data ingestion; proprietary.
- **Pricing:** from $125/month (Flex).

## Why some names are missing

- **Letta** is an agent platform that *connects to* MCP tools rather than a memory server other clients connect to.
- **OpenMemory** (Mem0) is deprecated; use Mem0’s hosted MCP instead.
- **Vendor note-taking and company-search tools** that expose an MCP endpoint are a different category: they serve existing company knowledge rather than memory your agents write.

## How to choose

- To try MCP memory in five minutes → Knowledge Graph server
- Memory you can read and edit as notes → Basic Memory
- One memory for your own agents *and* Claude Code, Cursor, ChatGPT → **Membase**
- Each agent with its own scoped, revocable access → **Membase**
- Answers that cite where each fact came from → **Membase**
- Hosted, nothing to run → **Membase**, Supermemory, Mem0
- Self-hosted on your own server → mcp-memory-service, Graphiti, Cognee
- Facts that change over time, with history → Graphiti, Zep
- Memory built from documents → Cognee
- SSO and a managed enterprise service → Zep Context MCP

## How to add an MCP memory server to Claude Code, Cursor and Claude Desktop

**Claude Code:** one command per server. For a hosted HTTP server like Membase, use claude mcp add --transport http … as shown above. For a local npx server, use claude mcp add &lt;name> -- npx -y &lt;package>.

**Cursor:** add the server under mcpServers in ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

```json
{
  "mcpServers": {
    "membase": {
      "url": "https://api.app.membase.com/mcp-http",
      "headers": { "Authorization": "Bearer mbk_..." }
    }
  }
}
```

**Claude Desktop:** local npx servers go in claude_desktop_config.json (Settings › Developer › Edit Config). Hosted servers like Membase are added as a custom connector under Settings › Connectors using the server URL; for Membase this signs you in with read-only access.

**Other tools:** step-by-step guides for [Codex](https://membase.com/blog/codex-memory), [OpenClaw](https://membase.com/blog/openclaw-memory) and [Hermes Agent](https://membase.com/blog/hermes-agent-memory).

Full steps for Membase in each client: [Connect your AI](https://docs.membase.com/connect/). For a full walkthrough with code, see [How to Add Long-Term Memory to an AI Agent](https://membase.com/blog/how-to-add-long-term-memory-to-ai-agent).

## Start building with Membase

- **Get an API key:** [Membase web app](https://app.membase.com/) → Connect › Developer keys
- **MCP server:** [setup guide](https://docs.membase.com/connect/clients/membase-mcp/) · endpoint [https://api.app.membase.com/mcp-http](https://api.app.membase.com/mcp-http)
- **Python SDK:** pip install membase-ai · **TypeScript SDK:** npm install @membaseai/membase
- **Videos:** [Give Claude Code permanent memory (MCP)](https://www.youtube.com/watch?v=G6mH6uziDuM) · [Add memory with the Membase SDK](https://www.youtube.com/watch?v=iN60c5j0vFY)
- **Docs:** [docs.membase.com](https://docs.membase.com/) · **Help:** [Discord](https://discord.gg/G6frJAJxdV)

## How we compared

We read each server’s docs, pricing page and GitHub license and Mem0’s current MCP documentation in October 2026, and re-checked pricing for Mem0, Supermemory and Zep in November 2026. We did not benchmark the servers against each other. Membase is our product, and its numbers come from our own [research page](https://membase.com/research). Spot an error? Email support@membase.com and we’ll fix it.

## Sources

- [Model Context Protocol](https://modelcontextprotocol.io/) and the [reference memory server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory)
- [Basic Memory on GitHub](https://github.com/basicmachines-co/basic-memory)
- [mcp-memory-service on GitHub](https://github.com/doobidoo/mcp-memory-service)
- [Mem0 pricing](https://mem0.ai/pricing) and [Mem0 MCP docs](https://docs.mem0.ai/platform/mem0-mcp)
- [Supermemory pricing](https://supermemory.ai/pricing) and [Zep pricing](https://www.getzep.com/pricing)
- [Graphiti on GitHub](https://github.com/getzep/graphiti)
- [Cognee](https://www.cognee.ai/)
- [Coworker: The 9 best MCP memory servers](https://coworker.ai/blog/best-mcp-memory-servers)
- [Hjarni: Best MCP memory servers in 2026](https://hjarni.com/blog/best-mcp-memory-server)
- [Membase MCP setup](https://docs.membase.com/connect/clients/membase-mcp/), [Membase research](https://membase.com/research) and the [Membase SDK on GitHub](https://github.com/membaseai/membase)

## Frequently Asked Questions

### What is MCP memory?

MCP memory is long-term memory that an AI tool reaches through the Model Context Protocol. A memory server exposes tools such as add_memory and search_memories, so Claude Code, Cursor, Claude Desktop and other MCP clients can save and recall information across sessions.

### What is the best MCP memory server?

It depends on who needs the memory. For one memory shared by your agents and AI tools, Membase. To try MCP memory quickly, the official Knowledge Graph server. For notes you can edit, Basic Memory. For facts that change over time, Graphiti.

### What is the best MCP memory server for Claude Code?

Any server here works with Claude Code. Membase connects with one claude mcp add command and shares the same memory with Cursor, Codex and your own agents; the official Knowledge Graph server is the simplest local option.

### Is there a free MCP memory server?

Yes. Membase is free to start. The Knowledge Graph server, Basic Memory (local), mcp-memory-service, Graphiti and Cognee are free to self-host.

### Can Claude, ChatGPT and Cursor share the same MCP memory?

Yes, if they connect to the same server. With Membase, each tool connects to the same endpoint and reads the same memory, with access set per key.

### Is Membase the same as membase.so or the Membase database?

No. Membase (membase.com) is a memory layer for AI agents and AI tools. It is not affiliated with membase.so or membase.dev, and it is unrelated to the Membase key-value database that became part of Couchbase.

### Can a team share one MCP memory server?

Yes. Hosted servers such as Membase, Supermemory and Zep support several users; self-hosted options such as mcp-memory-service can serve several agents on one machine or server.

### What happened to OpenMemory MCP?

Mem0 deprecated OpenMemory and archived the mem0-mcp repository in March 2026. Mem0's hosted MCP server is the current option.

### What is the difference between a knowledge graph and a vector memory server?

A knowledge graph stores entities and their relationships, which helps with multi-step questions and changing facts. A vector store finds passages by meaning. Some servers, such as Cognee, combine both.
