Model Context Protocol reference server that stores entities, relations and observations in a local knowledge-graph file so an assistant can recall them across sessions.
npx -y @modelcontextprotocol/server-memory
Review the package, arguments and permissions before adding it to your MCP client.
The Memory server is a Model Context Protocol reference server that keeps a simple knowledge graph (entities, relations and observations) in a local file, so an assistant can store and retrieve facts between sessions.
Maintained by the Model Context Protocol project (modelcontextprotocol/servers). The npm package @modelcontextprotocol/server-memory was current and not deprecated on 2026-11-05.
Run with npx (Node.js 24 or later per the README):
npx -y @modelcontextprotocol/server-memory
Client configuration with an explicit storage file:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"],
"env": {
"MEMORY_FILE_PATH": "/absolute/path/to/memory.jsonl"
}
}
}
}
A Docker image, mcp/memory, is also documented in the README.
stdio (local process).
MEMORY_FILE_PATH to an absolute path you own. The README warns the default memory.jsonl sits inside the package directory under npx, where cache clears or updates can delete it.create_entities, create_relations, add_observations, delete_entities, delete_observations, delete_relations, read_graph, search_nodes, open_nodes.Actively maintained reference server (checked 2026-11-05).
Follow the maintainer-specific setup, authentication and permissions in this entry. A remote endpoint is a connection URL, not a shell command. Client support varies by transport and authentication method.
Documentation checked 2026-11-05: Maintainer source. Status: supported method documented.