Back to MCP ServersOfficial documentation
@modelcontextprotocol/server-memory
OFFICIALReference knowledge-graph memory. Stores entities, relations, and observations so agents remember context across sessions.
Category: Core · Works with: Claude Code, Grok Build, Claude Desktop, Cursor
What it does
Persistent memory between conversations: facts, decisions, and relationships survive after the context window is gone.
Install
npx -y @modelcontextprotocol/server-memory
Setup Instructions
claude Code
claude mcp add memory -- npx -y @modelcontextprotocol/server-memory
claude Desktop
Add the memory server so long-running projects retain important context between sessions.
Compatible Agents
Claude CodeGrok BuildClaude DesktopCursor
Related MCP Servers
@modelcontextprotocol/server-filesystem
Reference filesystem access for agents. Read, write, list, move, and search files within explicitly allowed directories.
GitHub MCP Server
GitHub's official MCP server. Manage issues, PRs, branches, workflows, and code scanning — or just let the agent read your repos.
mcp-server-git
Reference Git server. Status, diff, log, branch, commit, and search — structured Git operations for repos the agent works in.