Back to MCP Servers

Memory Server

Persistent memory storage using a knowledge graph for long-term context retention

memoryknowledge-graphpersistenceofficial

Installation

npm install -g @anthropic-ai/mcp-server-memory

Configuration

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

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub