What it is
The Memory server is a reference implementation that gives an agent a persistent knowledge graph of entities, relations and observations stored in a local JSONL file.
- Maintainer
- Reference server (MCP project)MCP project reference servers (github.com/modelcontextprotocol)
- Source
- modelcontextprotocol/servers92,573 GitHub stars · not stated on GitHub licence
- Transport
- stdio (default), Streamable HTTP (optional)
- Packages
- @modelcontextprotocol/server-memory npm · latest 2.2.3 · 1,208,544 downloads last month
- Latest release
- v2.7.0 2026-12-05
- Public advisories
- 3GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: yes
- Runs code: no
- Network: no
- Sends: no
It only touches its own memory file. It does not read your other files or call the network.
| Tool | What it can do | Notes |
|---|---|---|
read_graph | Reads | |
search_nodes | Reads | |
open_nodes | Reads | |
create_entities | Writes | |
create_relations | Writes | |
add_observations | Writes | |
delete_entities | Deletes | |
delete_relations | Deletes | |
delete_observations | Deletes |
Counted from the registerTool calls in src/memory/index.ts.
Credentials and least privilege
No credential. Optional environment variables: MEMORY_FILE_PATH, MEMORY_MAX_ENTITIES, MEMORY_MAX_RELATIONS and MEMORY_MAX_FILE_BYTES. The limits are unset by default.
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-72p8-6x4x-6673 | Moderate | memory: planted symlink at the memory file leaks its target on save | < 2.2.3 | 2.2.3 |
| GHSA-48j5-hj63-c82c | Moderate | Memory saveGraph temp-path race exposes protected files through symlinked chmod | >= 1.0.0, < 2.2.2 | 2.2.2 |
| GHSA-8qfg-5898-h84g | Low | memory: refreshLock symlink race touches any file the server user owns | < 2.2.3 | 2.2.3 |
What stands out
- Stored memory is model-written text that comes back as context in later sessions, which is a standing channel for prompt injection.
- The size limits (
MEMORY_MAX_*) are off by default, so a runaway agent can grow the file without a cap. delete_*tools can wipe the graph. They are annotated as such, but approving them is up to your client.
Safe-install checklist
Install command from the project's docs: npx -y @modelcontextprotocol/server-memory.
- Pin the version. Use an exact version, not
latest:npx -y @modelcontextprotocol/server-memory@2.2.3. Set MEMORY_FILE_PATH so the data lands where you expect. - Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
- Set
MEMORY_FILE_PATHto a per-project file andMEMORY_MAX_FILE_BYTESto a sensible cap. - Do not store secrets, tokens or personal data in memory. Review the JSONL file now and then for instructions you did not write.
- Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itmemory:{ "permissions": { "deny": [ "mcp__memory__create_entities", "mcp__memory__create_relations", "mcp__memory__add_observations", "mcp__memory__delete_entities", "mcp__memory__delete_relations", "mcp__memory__delete_observations" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Memory MCP server do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data. It only touches its own memory file. It does not read your other files or call the network.
Does Memory MCP server need a token or API key?
No credential. Optional environment variables: `MEMORY_FILE_PATH`, `MEMORY_MAX_ENTITIES`, `MEMORY_MAX_RELATIONS` and `MEMORY_MAX_FILE_BYTES`. The limits are unset by default.
Has Memory MCP server had public security advisories?
Yes. 3 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep Memory MCP server from changing under me?
Pin the version, for example npx -y @modelcontextprotocol/server-memory@2.2.3. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
