M

Memory (reference)

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

💭 Memory & reasoning★ 91,226Updated 2026-10-13Auth: noneGitHub ↗
Best for memory & reasoning · provisional · tested 2026-10-14

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.

Test results

Last passed 2026-10-14
Claude CodePassed2026-10-13 · install, connect, tools, agent task
CursorPassed2026-10-13 · install, connect, tools, agent task
Claude DesktopPassed2026-10-14 · install, connect, tools, agent task
ChatGPT (Codex)Passed2026-10-14 · install, connect, tools, agent task
Protocol: 9 tools + tool call OK · 2026-10-13

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

DateCheckResultVersion
2026-10-13Protocol (direct stdio)Protocol: 9 tools + tool call OK1.0.0
2026-10-13Claude CodePassed
install, connect, tools, agent task
2.1.296 (Claude Code)
2026-10-13CursorPassed
install, connect, tools, agent task
2026.10.12-d47ca18
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linu
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
codex-cli 0.162.0-alpha.17.2

Tools seen by our harness (9)

create_entitiescreate_relationsadd_observationsdelete_entitiesdelete_observationsdelete_relationsread_graphsearch_nodesopen_nodes
Sponsors