Memory (Reference)
Official MCP reference server — a knowledge-graph memory of entities, relations, and observations; 9 tools verified.
Specs
Verified:
- Transport
- stdio (local subprocess)
- Package
- @modelcontextprotocol/server-memory (npm)
- Probed version
- 2.2.1
- Tools
- 9 (verified via tools/list)
- Auth
- None
Official reference server maintained in the modelcontextprotocol/servers repo, npm package `@modelcontextprotocol/server-memory` (handshake verified at 2.2.1 on 2026-11-20; tools/list returned **9 tools**). Knowledge-graph-based persistent memory: entities, relations, and observations stored in a local JSON file by default.
Key features
- Official reference implementation (servers repo)
- Entity/relation/observation graph primitives
- Local JSON persistence
Use cases
Cross-session memory — let the agent store project facts, preferences, and decisions as a queryable graph.
Install
`codex mcp add memory -- npx -y @modelcontextprotocol/server-memory`. The store defaults to `memory.jsonl` in the server directory; `MEMORY_FILE_PATH` overrides (`~` expands), and `MEMORY_MAX_*` vars cap the graph.
Caveats
The memory file is plaintext JSON — don't let secrets get recorded; concurrent agents can race on writes.
Added
Updated
Verified