PTS security notes / MCP servers / Memory MCP server

Is Memory MCP server safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

Low blast radius, but it is persistent. It writes a local JSONL file and has no network or credential needs. The catch is that whatever the model saves is fed back in later sessions, so a poisoned page can leave instructions behind. Pin a current version, set MEMORY_FILE_PATH to a project-specific file, and set the size limits.

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.

It only touches its own memory file. It does not read your other files or call the network.

ToolWhat it can doNotes
read_graphReads
search_nodesReads
open_nodesReads
create_entitiesWrites
create_relationsWrites
add_observationsWrites
delete_entitiesDeletes
delete_relationsDeletes
delete_observationsDeletes

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.

AdvisorySeveritySummaryAffectedFixed in
GHSA-72p8-6x4x-6673Moderatememory: planted symlink at the memory file leaks its target on save< 2.2.32.2.3
GHSA-48j5-hj63-c82cModerateMemory saveGraph temp-path race exposes protected files through symlinked chmod>= 1.0.0, < 2.2.22.2.2
GHSA-8qfg-5898-h84gLowmemory: refreshLock symlink race touches any file the server user owns< 2.2.32.2.3

What stands out

Safe-install checklist

Install command from the project's docs: npx -y @modelcontextprotocol/server-memory.

  1. 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.
  2. Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
  3. Set MEMORY_FILE_PATH to a per-project file and MEMORY_MAX_FILE_BYTES to a sensible cap.
  4. Do not store secrets, tokens or personal data in memory. Review the JSONL file now and then for instructions you did not write.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it memory:
    {
      "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"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages