Best MCP Memory Servers for Claude, Cursor and Codex
An MCP memory server gives Claude, Cursor, Codex and other MCP clients long-term memory that lasts between sessions and is shared across tools. These are 6 memory servers worth trying, from plain local files to hosted knowledge graphs, with the exact way to connect each one. Checked Nov 23, 2026.
Quick Picks
- Memory you can read and edit: Basic Memory (Markdown files).
- Lightest setup, no keys: the official Memory server.
- Facts that change over time: Graphiti.
- Documents into memory: Cognee.
- Hosted, shared across apps: Mem0 or Supermemory.
Run It Yourself
| Name | How It Stores Memory | Connect | Cost | Pick It If |
|---|---|---|---|---|
| Basic Memory Swarmnest Listing | Plain Markdown files on your disk, linked into a knowledge graph you can open, edit and grep | claude mcp add basic-memory -- uvx --prerelease=allow basic-memory mcp | Free locally (AGPL-3.0). Optional cloud sync from $15 a month, 7-day free trial. | You want memory a human can read and fix |
| Memory (official reference server) Swarmnest Listing | Entities, relations and observations in a local JSONL file (set MEMORY_FILE_PATH) | npx -y @modelcontextprotocol/server-memory | Free, open source | You want the simplest possible memory with no accounts or keys |
| Graphiti MCP Server Swarmnest Listing | Temporal knowledge graph in FalkorDB (default) or Neo4j, so facts carry when they were true | docker compose up, then point your client at http://localhost:8000/mcp/ | Free, Apache-2.0. Needs an LLM API key for extraction. | Facts change over time and you want history, not just the latest value |
| Cognee MCP Swarmnest Listing | Knowledge graph plus vectors built from your documents and conversations | Docker image cognee/cognee-mcp, or run from source over stdio, SSE or HTTP | Free, Apache-2.0. Needs an LLM API key. | You want to turn a pile of documents into memory the agent can query |
Hosted
| Name | How It Stores Memory | Connect | Cost | Pick It If |
|---|---|---|---|---|
| Mem0 MCP Swarmnest Listing | Facts and preferences extracted from conversations, stored on the Mem0 Platform | Remote: https://mcp.mem0.ai with a Mem0 API key | Hobby: free, 10,000 adds and 1,000 retrievals. Paid from $19 a month. | You want memory shared across Claude, Cursor and your own app with no servers to run |
| Supermemory MCP Swarmnest Listing | Hosted memory and context engine with connectors to your apps | Remote: https://mcp.supermemory.ai/mcp | Free plan with $5 of credit a month. A free self-hosted local version covers up to 10,000 documents. | You want one memory across several AI apps and a hosted option |
Example Setup
Most clients take the same JSON. For Cursor, put it in ~/.cursor/mcp.json; for Claude Desktop, in its config file. Set an absolute file path so memory survives updates:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"],
"env": { "MEMORY_FILE_PATH": "/Users/you/agent-memory.jsonl" }
}
}
}Then tell the agent when to use it, for example in CLAUDE.md or AGENTS.md: "Save decisions and user preferences to memory, and check memory before starting a task."
Tips
- Tell the agent what to remember. Without instructions, most agents rarely call memory tools.
- Prefer memory you can inspect. When the agent recalls something wrong, you need to find and fix the entry.
- One memory per scope. Keep work and personal projects in separate files or projects so facts do not leak between them.
For SDK-level memory, see Mem0 vs Zep vs Letta. Browse all Agent Memory tools and MCP Servers.
FAQ
What is an MCP memory server?
It is an MCP server that gives an AI client tools to save and recall information, such as create_entities or search_nodes. Because it runs outside the chat, what the agent saves is still there in the next session, and every MCP client you connect can read the same memory.
What is the best MCP memory server for Claude Code?
For one developer, Basic Memory is a good default: memory is plain Markdown you can read and edit, and it installs with one claude mcp add command. Use the official Memory server for the lightest setup, Graphiti when facts change over time, and Mem0 or Supermemory when you want hosted memory shared across tools.
Do Claude and ChatGPT already have memory?
Yes, both apps have built-in memory, but it stays inside that one app. An MCP memory server works across clients, such as Claude Code, Cursor and Codex, and you control where the data is stored.
Is it safe to store memory in an MCP server?
Keep memory local, or with a provider you trust, and never let the agent save secrets such as API keys. Memory content goes back into the model on later turns, so anything written there from untrusted web pages can steer the agent later. Review what gets saved now and then.
How is this different from Mem0 vs Zep vs Letta?
That guide compares memory layers you build into your own agent with an SDK. This page covers MCP servers you plug into existing clients like Claude, Cursor and Codex. Some products, such as Mem0, offer both.
Sources (Checked Nov 23, 2026)
- Basic Memory README
- Memory server README
- Graphiti MCP server README
- Cognee MCP README
- Mem0 MCP docs
- Mem0 pricing
- Supermemory README
- Supermemory pricing
Updated Nov 23, 2026. Prices and limits come from each provider's site on that day and can change. Sponsorship never affects which tools appear in a guide or their order. Questions or corrections: hello@swarmnest.ai.
More Guides
All GuidesSmithery Alternatives
Smithery's hosted MCP proxy, CLI and API stop on Oct 31, 2026. How to migrate, plus 12 registries and hosts compared.
Best MCP Servers for Claude Code and Cursor
14 official MCP servers worth installing for coding agents, with the exact URL or command for each.
Mem0 vs Zep vs Letta
How the three best-known agent memory layers differ in design, open source, self-hosting and price.
Best Vector Databases for RAG
Pinecone, Qdrant, Weaviate, Milvus, Chroma, pgvector, LanceDB and more: open source, free tiers and pricing.