Servers › Memory & Reasoning › Memory (Knowledge Graph)

● MaintainedMemory & Reasoning

Memory (Knowledge Graph) MCP Server

Official reference server that gives the model persistent memory as a local knowledge graph (entities, relations and observations stored in a file). Version 2.2.2 (Nov 27, 2026, reference servers v2.6.0) is a security fix, so update to 2.2.2 or later: a save can no longer change the permissions of a file outside the memory path through a swapped temporary file (GHSA-48j5-hj63-c82c). If you are on a date version (2025.x or 2026.x), npm will not offer 2.2.2 as an upgrade, so request @modelcontextprotocol/[email protected] explicitly. Version 2.2.1 (Nov 18, 2026, reference servers v2.5.0) adds opt-in size limits (MEMORY_MAX_ENTITIES, MEMORY_MAX_RELATIONS, MEMORY_MAX_FILE_BYTES) and releases its file locks when it exits or is stopped. Since v2.5.0 every reference server can also serve Streamable HTTP on this computer with --transport streamable-http (127.0.0.1:3001 by default); stdio stays the default. Version 2.1.1 (Nov 11, 2026, reference servers v2.4.0) stops the file-lock heartbeat refreshing a lock it no longer owns, describes every tool input, says when to use each list and delete tool, and documents Docker upgrade steps that keep the container working. Version 2.1.0 (Nov 4, 2026) added lightweight read modes and warns when the memory file sits inside node_modules (set a durable MEMORY_FILE_PATH). It supports the 2026-07-28 MCP spec while still working with older clients, and needs Node 24 or newer.

Install

npx -y @modelcontextprotocol/server-memory

Example config (Cursor / Claude Desktop)

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ]
    }
  }
}

The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).

At a glance

Repositorymodelcontextprotocol/servers/tree/main/src/memory
GitHub stars92,372 (shared monorepo)
Last commit2026-11-27 (3 days ago)
Statusmaintained
Security advisoriesLatest advisory published 2026-11-27: GHSA-48j5-hj63-c82c (medium), fixed in 2.2.2. 1 published advisory found as of 2026-11-30. Details
Clients mentioned in READMEClaude Desktop, VS Code
AuthNone detected in README
Language / LicenseTypeScript / NOASSERTION

Security advisories

Latest: GHSA-48j5-hj63-c82c, published 2026-11-27 medium
Memory saveGraph temp-path race exposes protected files through symlinked chmod
Fixed in: 2.2.2 or later. Update before using it.

Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for @modelcontextprotocol/server-memory (npm). This server lives in a shared repository, so only advisories that mention it are counted. No advisory doesn't prove a server is safe. How to stay updated.

Common problems

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.