Swarmnest Search

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

Run It Yourself

NameHow It Stores MemoryConnectCostPick It If
Basic Memory
Swarmnest Listing
Plain Markdown files on your disk, linked into a knowledge graph you can open, edit and grepclaude mcp add basic-memory -- uvx --prerelease=allow basic-memory mcpFree 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-memoryFree, open sourceYou 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 truedocker 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 conversationsDocker image cognee/cognee-mcp, or run from source over stdio, SSE or HTTPFree, Apache-2.0. Needs an LLM API key.You want to turn a pile of documents into memory the agent can query

Hosted

NameHow It Stores MemoryConnectCostPick It If
Mem0 MCP
Swarmnest Listing
Facts and preferences extracted from conversations, stored on the Mem0 PlatformRemote: https://mcp.mem0.ai with a Mem0 API keyHobby: 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 appsRemote: https://mcp.supermemory.ai/mcpFree 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

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)

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 Guides