Ad space · Your tool here
PluginStack
MCP Servers · by Model Context Protocol

Memory MCP Server

Memory MCP Server official site ↗

Last checked against the official docs:

What it does

Reference MCP server that gives an AI basic persistent memory: a local knowledge graph of entities, relations and observations that survives across chats. The current version needs Node 24 or later.

Who it's for

People who want their assistant to remember preferences and facts across chats.

How to set it up

  1. Install Node.js 24 or later (the README's requirement for running through npx).

  2. Add the server (or run the mcp/memory Docker image). Optionally set MEMORY_FILE_PATH to choose where the memory .jsonl file is stored. If you leave it out, the file (memory.jsonl) is created inside the server's own package directory, so an absolute path is easier to find and back up:

    json
    {
      "mcpServers": {
        "memory": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-memory"
          ],
          "env": {
            "MEMORY_FILE_PATH": "<absolute-path-to-memory.jsonl>"
          }
        }
      }
    }
  3. On Windows, the README launches npx through cmd /c:

    json
    {
      "mcpServers": {
        "memory": {
          "command": "cmd",
          "args": [
            "/c",
            "npx",
            "-y",
            "@modelcontextprotocol/server-memory"
          ],
          "env": {
            "MEMORY_FILE_PATH": "C:\\Users\\you\\memory.jsonl"
          }
        }
      }
    }
  4. Two clients pointed at the same MEMORY_FILE_PATH run two server processes on one file. The write tools take a lock file next to the memory file so they don't overwrite each other, which assumes a local filesystem rather than a network share.

  5. Add a system prompt or custom instructions telling the assistant when to save and recall memories. The README includes an example prompt.

Check the official Memory MCP Server docs for the latest steps.

Install Memory MCP Server in your client

Runs on your computer. Needs: Node.js 24 or later. Sign-in or keys: None.

No one-click install for this one: the snippet has a placeholder (like an API key or a folder path) that you need to fill in first, so copy it below and edit it.

Claude Code

Run in a terminal

bash
claude mcp add --env MEMORY_FILE_PATH='<absolute-path-to-memory.jsonl>' --transport stdio memory -- npx -y @modelcontextprotocol/server-memory

Everything after -- is the server command. Run /mcp inside Claude Code to check it connected.

Claude Desktop

Settings → Developer → Edit Config (claude_desktop_config.json)

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

Fully quit and reopen Claude Desktop after saving.

Cursor

.cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects

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

.vscode/mcp.json (note the top-level "servers" key)

json
{
  "servers": {
    "memory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ],
      "env": {
        "MEMORY_FILE_PATH": "<absolute-path-to-memory.jsonl>"
      }
    }
  }
}
Codex

Run in a terminal, or edit ~/.codex/config.toml

CLI

bash
codex mcp add memory --env MEMORY_FILE_PATH='<absolute-path-to-memory.jsonl>' -- npx -y @modelcontextprotocol/server-memory

Or in ~/.codex/config.toml

toml
[mcp_servers.memory]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-memory"]

[mcp_servers.memory.env]
MEMORY_FILE_PATH = "<absolute-path-to-memory.jsonl>"

Checked against the official docs. Snippets use placeholders; keep real keys out of files you commit. Windsurf is not listed because we have not verified its format.

Set it up / Fixes

Step-by-step guides for getting Memory MCP Server running and fixing common errors.

Example prompts

prompt
Remember that my main project uses Next.js and Supabase.
prompt
What do you remember about my coding preferences?
prompt
Store that my teammate Sam owns the billing code.

Made Memory MCP Server? Add the badge

If you like, show that Memory MCP Server is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/memory-mcp/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/memory-mcp/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all MCP Servers on PluginStack