Memory MCP Server
Give Claude a local knowledge graph of people, projects and facts that lasts across chats.
Reference serverby Model Context ProtocolRuns on your computerChecked November 18, 2026
The Memory MCP server is the official reference server for persistent memory: it saves people, projects and facts as a small knowledge graph in one JSONL file on your own computer, with no account and no cloud. Claude can add, search and delete those facts, so your preferences and project names carry over between chats. Set MEMORY_FILE_PATH to a folder you own, because the default file sits inside the npm cache and an update can wipe it.
Who is Memory MCP for?
- Anyone who wants Claude to remember context between chats without a cloud account
- Privacy-minded users who want memory kept on their own machine
- Developers learning how MCP memory works
What can you ask Memory MCP to do?
Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.
Remember that I prefer short answers and that my main project is called Bluebird.What do you remember about my coworker Dana and the projects she works on?Give me a short overview of your memory graph, then delete everything about my old job.How to add the Memory MCP server to Claude
MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:
New to MCP? Read what an MCP server is and how to add one.
Connect the Memory MCP server to Claude Code for me: run this command: claude mcp add --transport stdio memory -- npx -y @modelcontextprotocol/server-memory
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.Or do it yourself:
claude mcp add --transport stdio memory -- npx -y @modelcontextprotocol/server-memoryUnlock the setup steps
Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.
Good to know
Set MEMORY_FILE_PATH (for example --env MEMORY_FILE_PATH=/path/to/memory.jsonl) to an absolute path in a folder that already exists. Two apps can share the same file: each write takes a lock, so no update is lost.
How did we check Memory MCP?
Checked on November 18, 2026: the src/memory folder of the modelcontextprotocol/servers repo (92,089 stars), its README and the @modelcontextprotocol/server-memory npm package (2.2.1, published November 18, 2026, which added an optional HTTP mode and optional limits on graph size; our first check, on November 8, covered 2.1.0). We read the documentation only; we did not run the server for this check.
Source: github.com/modelcontextprotocol/servers/tree/main/src/memory
What do people ask about Memory MCP?
Where does the Memory MCP server store what it remembers?
In one JSONL file. By default that is memory.jsonl in the server's own folder, which under npx sits inside node_modules, so updating the server or clearing the npx cache can delete it. Set MEMORY_FILE_PATH to an absolute path you own; the folder must already exist.
Does it send my memories to a cloud service?
No. It is a local server with no account and no sign-in, and the graph stays in the file on your computer. Only what Claude reads from it during a chat goes to the AI model you are using.
Can Claude Desktop and Claude Code share one memory?
Yes, if both point MEMORY_FILE_PATH at the same file. Every write takes a lock file next to it, so two apps saving at once take turns and nothing is lost; a network drive that does not support exclusive file creation cannot be shared safely this way.
Will Claude use the memory on its own?
Only when it decides to call the tools. The README suggests a standing instruction, for example in a Claude Project's custom instructions, that tells Claude to read its memory at the start of each chat and to save new facts about you as it learns them.
What do I need to run the Memory server on Windows or in Docker?
Node.js 24 or later when it runs through npx. On Windows, the README starts npx through cmd /c, and Docker users can keep the graph in a named volume so it survives restarts.
Can one Memory server serve several apps at once?
Yes, since version 2.2.1 (November 18, 2026). Start it with --transport streamable-http and one process serves http://127.0.0.1:3001/mcp to any number of clients; each request reads the same graph file, so nothing is lost between requests, and HOST and PORT change the address. Setting HOST to 0.0.0.0 opens the graph to every machine that can reach yours, so do that only on purpose.
Does a big memory file slow it down?
Gradually, yes. Every write reads and rewrites the whole file, and the README measured about 0.4 seconds to add one entity to a graph of 100,000 entities (about 24 MB) on a laptop. Since 2.2.1 you can cap growth with MEMORY_MAX_ENTITIES, MEMORY_MAX_RELATIONS or MEMORY_MAX_FILE_BYTES: a write that would pass a limit is refused whole, and deleting always works.
We wrote these answers from the official pages of each product named, read on November 18, 2026.
More AI memory and reasoning servers
A memory server is one way to give Claude lasting context; for most business owners a short project file does more with less setup. Our Claude Code course takes you from install to a Claude Code set up with a CLAUDE.md file, skills and MCP servers, without coding (early access). Free first step: the CLAUDE.md file guide, which shows what to put in the file Claude reads at the start of every session.