Productivity

Memory

A simple knowledge graph your AI client can write to and search, so it can remember people, projects and facts between chats. Set MEMORY_FILE_PATH to a file you own, because the default location can be wiped when npx reinstalls.

Beginner by Model Context Protocol (reference server) Claude CodeClaude DesktopCursor

Install

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

Add the JSON config below to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop.

Cursor

Add the JSON config below to .cursor/mcp.json (this project) or ~/.cursor/mcp.json (all projects).

JSON config

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