M

Memory (reference)

A simple knowledge-graph memory the agent can add to and search across sessions, stored in a local JSON file.

💭 Memory & reasoningGitHub stars for modelcontextprotocol/servers, shared by several tools92,022shared repoUpdated 2026-11-12Auth: noneGitHub ↗
Best for memory & reasoning · tested 2026-10-21

Saved a code in one session and recalled it in a fresh session in both Claude Code and Cursor (3 calls in total), using one local JSON file with no network or account. Context-mode also passed recall in both (4 calls) but needs Node 22.5+. Sequential Thinking passed its reasoning task in both, but it has no storage, so it isn't judged on recall. On Oct 14 Memory and context-mode also passed recall in Claude Desktop and ChatGPT (Codex); in Claude Desktop, Memory also listed older codes left in the shared test file by earlier runs. On Oct 19 Memory 2.0.0 (new major, Node 24+) was retested and passed recall again in Claude Code and Cursor. Confirmed Oct 21, 2026: second runs on 2.0.0 passed in all 4 clients (Claude Code and Cursor Oct 19, ChatGPT (Codex) Oct 20, Claude Desktop Oct 21). First runs were on 1.0.0.

Test results

Last passed 2026-10-21
Claude CodePassed2026-10-19 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · @modelcontextprotocol/server-memory 2.0.0 (pinned in the command we ran) · connect time not recorded
CursorPassed2026-10-19 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.16-e3cb207 · @modelcontextprotocol/server-memory 2.0.0 (pinned in the command we ran) · connect time not recorded
Claude DesktopPassed2026-10-21 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · @modelcontextprotocol/server-memory 2.0.0 · no connect within 60s
ChatGPT (Codex)Passed2026-10-20 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · @modelcontextprotocol/server-memory 2.0.0 · connect time not recorded

Server package tested: @modelcontextprotocol/server-memory 2.0.0 (npm, Node v24.22.0; resolved 2026-10-21)

Direct and key dependencies as resolved: @modelcontextprotocol/server 2.3.1 · zod 4.6.7

All 3 resolved dependencies
@modelcontextprotocol/core==2.3.1
@modelcontextprotocol/server==2.3.1
zod==4.6.7

Captured with: npm ls --all --json in the npx env.

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: 9 tools + tool call OK · 2026-10-19 · connected in 0.6s
🧪 Test-box note: 2.0.0 needs Node 24+ (npm engines >=24). Box system Node is 20.19.2; since the Oct 19, 2026 retest the harness runs it with a user-local Node 24.22.0 (~/opt/node24) and pins 2.0.0 for the test (the harness folder still has 1.0.0 installed locally). Published snippet uses plain npx. On Node 20, 2.0.0 still started and answered a basic protocol check, with only an npm EBADENGINE warning (unsupported setup).
🔁 New major version 2.0.0 shipped Oct 19, 2026 (needs Node 24+). Retested on Oct 19, 2026 on 2.0.0 with Node 24.22.0: passed again in Claude Code and Cursor (saved a fresh code, recalled it in a new session). Both clients also listed older codes left in the shared test file by earlier runs. ChatGPT (Codex) retested on Oct 20, 2026 on 2.0.0: passed (saved a fresh code and recalled it in a new session). Claude Desktop retested on Oct 21, 2026 on 2.0.0: passed (the first try hit a slow first start, about 67 s, past the app's 60 s limit; it passed on one quick rerun). On Node 20.19.2, 2.0.0 still started and answered a basic protocol check with only an npm "Unsupported engine" warning, but Node 20 is not a supported setup for 2.0.0.

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
Claude Desktop · Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0)
Date
Oct 21, 2026
The task we gave
Using only the ref-memory MCP tools, save this so it can be found in a later session: the toolpassed test code is TP-8608AD. Reply 'stored' when done.
Using only the ref-memory MCP tools, look up the toolpassed test code that was saved in an earlier session and reply with it.
What it promised
details not recorded for this run
What happened

1 tool call recorded. The name was not stored on this run.

Tool result

{"content": [{"type": "text", "text": "{\n  \"entities\": [\n    {\n      \"name\": \"toolpassed-test-code\",\n      \"entityType\": \"reference\",\n      \"observations\": [\n        \"The toolpassed test code is TP-F42B55.\",\n        \"The toolpassed test code is TP-A0E2A4.\"\n      ]\n    },\n    {\n      \"name\": \"toolpassed test code\",\n      \"entityType\": \"credential\",\n      \"observations\": [\n        \"TP-220F1B\",\n        \"The toolpassed test code is TP-F2D3E1\",\n        \"TP-E355A4\",\n        \"TP-CA383D\"\n      ]\n    },\n    {\n      \"name\": \"toolpassed test code TP-9489E5\",\n      \"entityType\": \"test_code\",\n      \"observations\": [\n        \"The toolpassed test code is TP-9489E5.\"\n      ]\n    },\n    {\n      \"name\": \"toolpassed test code TP-8608AD\",\n      \"entityType\": \"test_code\",\n      \"observations\": [\n        \"Toolpassed test code is TP-8608AD (saved 2026-10-21 at user's request)\"\n      ]\n    }\n  ],\n  \"relations\": []\n}"}], "structuredContent": {"entities": [{"name": "toolpassed-test-code", "entityType": "reference", "observations": ["The toolpassed test code is TP-F42B55.", "The toolpassed test code is TP-A0E2A4."]}, {"name": "toolpassed test code", "entityType": "credential", "observations": ["TP-220F1B", "The toolpassed test code is TP-F2D3E1", "TP-E355A4", "TP-CA383D"]}, {"name": "toolpassed test code TP-9489E5", "entityType": "test_code", "observations": ["The toolpassed test code is TP-9489E5."]}, {"nam

Agent reply

The toolpassed test code saved in an earlier session is TP-8608AD. Its record says it was saved on 2026-10-21 at your request. The memory also holds several other toolpassed codes that aren't dated, including TP-9489E5, TP-F42B55, TP-A0E2A4, and a few more.
Verdict
Passed

Install

claude mcp add memory -e MEMORY_FILE_PATH=/path/to/dir/memory.jsonl -- npx -y @modelcontextprotocol/server-memory

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ],
      "env": {
        "MEMORY_FILE_PATH": "/path/to/dir/memory.jsonl"
      }
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ],
      "env": {
        "MEMORY_FILE_PATH": "/path/to/dir/memory.jsonl"
      }
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.memory]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-memory"]
env = { MEMORY_FILE_PATH = "/path/to/dir/memory.jsonl" }

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-21Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · @modelcontextprotocol/server-memory 2.0.0
2026-10-20ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · @modelcontextprotocol/server-memory 2.0.0
2026-10-20ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · @modelcontextprotocol/server-memory 2.0.0
2026-10-19Protocol (direct stdio)Protocol: 9 tools + tool call OKserver reported v2.0.0
2026-10-19Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · @modelcontextprotocol/server-memory 2.0.0 (pinned in the command we ran)
2026-10-19CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.16-e3cb207 · @modelcontextprotocol/server-memory 2.0.0 (pinned in the command we ran)
2026-10-19Protocol (direct stdio)Protocol: 9 tools + tool call OK2.0.0
2026-10-19Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded
2026-10-19CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.16-e3cb207 · package version not recorded
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: 9 tools + tool call OK1.0.0
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · package version not recorded
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of Memory (reference)? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-21. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/ref-memory.svg)](https://toolpassed.com/mcp/ref-memory/)

Tools seen by our harness (9)

create_entitiescreate_relationsadd_observationsdelete_entitiesdelete_observationsdelete_relationsread_graphsearch_nodesopen_nodes
Featured