
Memory MCP Server
Reference MCP server that keeps an AI client's memory in a local knowledge graph of entities and relations.
Memory MCP Server, titled Knowledge Graph Memory Server in its README, is a reference server in the modelcontextprotocol/servers GitHub repository that keeps persistent memory in a local knowledge graph, so Claude can remember information about the user across chats. Its README puts it under the MIT License.
About Memory MCP Server
Published on npm as @modelcontextprotocol/server-memory, the server stores entities, each with a unique name, an entity type and a list of observations; relations, directed connections between entities stored in active voice; and observations, discrete facts kept as strings that should be atomic. Its tools create entities and relations, add observations, delete any of the three, read the entire graph, search nodes by name, type or observation content, and open nodes by name.
The graph is saved to a JSONL file, memory.jsonl in the server directory unless the MEMORY_FILE_PATH environment variable names another path. Each MCP client starts its own server process, and two can share one file: every write tool takes an exclusive lock file next to it, so writes from different processes take turns and none is lost. A lock left by a crashed server is removed automatically, and a write that cannot get the lock within 60 seconds fails with a tool error rather than overwriting the file.
The README's claude_desktop_config.json entries run npx -y @modelcontextprotocol/server-memory, launched through cmd /c on Windows, or the mcp/memory Docker image with a claude-memory volume. In VS Code, the same entries go in your user mcp.json, opened with MCP: Open User Configuration, or in a workspace's .vscode/mcp.json. The README adds that the prompt helps the model determine how often and what kinds of memories it creates, and gives an example prompt for chat personalization.
The modelcontextprotocol/servers README lists Memory among a small number of reference servers maintained by the MCP steering group to demonstrate MCP features and the official SDKs, and says the repository is managed by Anthropic but built together with the community. The server's README puts it under the MIT License; the repository README puts new contributions under the Apache License 2.0 and existing code under MIT.
Sources: github.com/modelcontextprotocol/servers/tree/main/src/memory and /modelcontextprotocol/servers, read 2026-10-27
Memory MCP Server pros and cons
Pros
- The whole graph is also readable as the memory://knowledge-graph resource, and every change notifies subscribed clients, so they see live changes.
- It serves both 2026-07-28 clients, which open with server/discover, and 2025-era clients, which open with initialize, with the same tools and resource.
- The README's configuration entries need no API key or token.
Cons
- The repository README presents its servers as educational examples, not production-ready solutions, and tells developers to evaluate their own security requirements.
- Running it through npx or from source requires Node.js 24 or later.
- Search matches entity names, types and observation content; the README describes no semantic or embedding search.
- create_entities skips an entity whose name already exists and does not add its observations, so new facts about a known entity go through add_observations.
Tagged
- Self-hostable
- CLI
- MCP Support
- Open Source
Memory MCP Server alternatives
More from MCP Servers.
- 01→MentionDrop MCP
Give your AI agent live market signals
- 02→Skybridge
The full-stack open source React framework for MCP Apps
- 03→Cloudback MCP Server
Manage your backups from Claude, Cursor, and VS Code
- 04Paid →ClickUp MCP Server
Independent, paid MCP server for ClickUp: 150 tools for tasks, docs, chat, time tracking and workspace admin.
- 05Paid →Perplexity MCP Server
Perplexity's official MCP server for web search, reasoning and research through the Perplexity API.
- 06Free →Framelink MCP for Figma
MIT-licensed MCP server (Framelink MCP for Figma) that feeds Figma layout data to Cursor and other agents.
Related reading
Featured on Vibedonalds
Own Memory MCP Server? Add this badge to your site to show you’re listed — and link back to your profile here.
<a href="https://vibedonalds.com/tools/mcp-memory" target="_blank" rel="noopener nofollow">
<img src="https://vibedonalds.com/badge/featured-on-vibedonalds.svg" alt="Memory MCP Server — Featured on Vibedonalds" width="240" height="60" loading="lazy" />
</a>Frequently asked questions
- What is Memory MCP Server?
- Memory MCP Server is a reference MCP server that keeps an AI client's memory in a local knowledge graph of entities and relations.
- Is Memory MCP Server free?
- Memory MCP Server is free to use. There is no paid tier as of the last index update.
- What are the alternatives to Memory MCP Server?
- Similar tools in MCP Servers on vibedonalds: MentionDrop MCP, Skybridge, Cloudback MCP Server, ClickUp MCP Server.
- What are the downsides of Memory MCP Server?
- The repository README presents its servers as educational examples, not production-ready solutions, and tells developers to evaluate their own security requirements. Running it through npx or from source requires Node.js 24 or later. Search matches entity names, types and observation content; the README describes no semantic or embedding search. create_entities skips an entity whose name already exists and does not add its observations, so new facts about a known entity go through add_observations.
- How do I install the Memory MCP Server?
- Add an entry to your MCP client's configuration that runs npx -y @modelcontextprotocol/server-memory; on Windows, launch npx through cmd /c. For Claude Desktop the entry goes in claude_desktop_config.json, and the README also gives a Docker entry for the mcp/memory image. Running through npx or from source needs Node.js 24 or later.
- Where does the Memory MCP Server store its data?
- In a JSONL file: memory.jsonl in the server directory by default, or the path you set in the MEMORY_FILE_PATH environment variable. The read_graph tool returns the whole graph, and the same graph is readable as the memory://knowledge-graph resource in JSON.
- Can two MCP clients share one memory file?
- Yes, on local filesystems. Each client starts its own server process, and every write tool takes an exclusive lock file, so writes take turns and none is lost. A write that cannot get the lock within 60 seconds fails with a tool error, and a network filesystem that does not honour exclusive file creation cannot be shared safely.
- How do I get the model to use its memory?
- The README says changing the prompt helps the model determine how often and what kinds of memories it creates, and gives an example for chat personalization, meant for the Custom Instructions field of a Claude.ai Project, that has the model retrieve relevant information at the start of each chat and store new facts as entities, relations and observations.
- Is the Memory MCP Server free, and who maintains it?
- Its README says it is licensed under the MIT License, so you are free to use, modify and distribute it; the repository README puts new contributions under the Apache License 2.0. It is one of the reference servers in modelcontextprotocol/servers, maintained by the MCP steering group.