Memory MCP Server
Reference MCP server giving agents persistent memory as a local knowledge graph of entities, relations and observations.
- Author
- Model Context Protocol
- Works with
- Any MCP client
- License
- MIT
- Documented
- Oct 2, 2026
What Memory MCP Server is
A basic persistent memory implementation using a local knowledge graph, so a model can remember information about the user across chats. Published on npm as @modelcontextprotocol/server-memory.
What it does
- Create entities and relations
- Add observations to entities
- Delete entities, relations and observations
- Read the full graph
- Search nodes by name, type or observation content, and open nodes by name
When to use it
Good fit
- Letting an assistant remember facts across sessions
- Simple local, file-based memory
Not for
- Large-scale or shared memory: it is a basic local implementation
- Production use without review: The root README says these are reference implementations meant as educational examples, not production-ready solutions.
How to install Memory MCP Server
You need: Node.js (npx) or Docker
- Make sure Node.js is available
- Add the npx command to your MCP client config
- Optionally set MEMORY_FILE_PATH for a custom storage file
- Restart the client
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}Permissions and security
What it can access
- Reads and writes a local memory file (path configurable via MEMORY_FILE_PATH)
Security notes from the maintainers
- The root README says these are reference implementations meant as educational examples, not production-ready solutions.
Review the source before granting an agent access to credentials or production systems. We document what the maintainers state; we do not audit code.
Limitations
- Described as a basic implementation
Frequently asked questions
Where does the Memory MCP server store data?
In a local file; the path can be set with MEMORY_FILE_PATH. source
What is stored in the Memory MCP server?
Entities, directed relations between them, and atomic observations. source
What is the npm package for the Memory MCP server?
@modelcontextprotocol/server-memory. source
Related guides
Sources and gaps
- https://raw.githubusercontent.com/modelcontextprotocol/servers/main/src/memory/README.md readme, checked Oct 2, 2026
- https://raw.githubusercontent.com/modelcontextprotocol/servers/main/README.md readme, checked Oct 2, 2026
Not stated by the maintainers: Hosts other than generic MCP clients are not individually named as supported for Claude Code/Cursor/Windsurf/Codex in this README; last_release date not visible in the checked README.