Memory MCP server
MIT
Knowledge-graph based persistent memory, letting an assistant retain entities, relations and observations across sessions.
At a glance
Memory is the official MCP reference server in the AI & Memory category. It runs locally over stdio via `npx -y @modelcontextprotocol/server-memory`, and declares no required credentials. It exposes 9 tools, including create_entities, create_relations and add_observations. It scores A (93/100) on the MCP Skills Hub health score as of Oct 27, 2026.
One-click install
Opens your editor and pre-fills the config. Your editor will ask before adding it.
How to install Memory in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install Memory in Claude CodeAnthropic's agentic CLI
Add the server
bashclaude mcp add memory -- npx -y @modelcontextprotocol/server-memoryVerify it's connected
bashclaude mcp listSharing it with your team?
Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).
Use it in a session
Ask Claude to use the tools this server exposes (e.g. create_entities, create_relations, add_observations). It discovers them automatically.
How to install Memory in Claude DesktopDesktop app (MCP config)
Open your MCP config
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this server
json{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }Restart Claude Desktop
The tools appear under the 🔌 menu once the app reloads.
How to install Memory in CursorAI-first code editor
Create / edit .cursor/mcp.json in your project
json{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }Enable it
Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.
How to install Memory in Codex CLIOpenAI coding agent
Add to ~/.codex/config.toml
toml[mcp_servers.memory] command = "npx" args = ["-y", "@modelcontextprotocol/server-memory"]Run Codex
Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.
How to install Memory in WindsurfCodeium's agentic IDE
Edit ~/.codeium/windsurf/mcp_config.json
json{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }Reload
Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.
How to install Memory in ClineVS Code autonomous agent
Open Cline → MCP Servers → Configure
Adds to cline_mcp_settings.json.
Add the server
json{ "mcpServers": { "memory": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }
How to install Memory in VS CodeCopilot / MCP support
Create .vscode/mcp.json
json{ "servers": { "memory": { "type": "stdio", "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-memory" ] } } }Start it
VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.
What tools does Memory expose? (9)
Taken from the project's README — the server itself was not queried, so check its docs for the exact schemas.
- create_entitiesCreate multiple new entities in the knowledge graph
- create_relationsCreate multiple new relations between entities
- add_observationsAdd new observations to existing entities
- delete_entitiesRemove entities and their relations
- delete_observationsRemove specific observations from entities
- delete_relationsRemove specific relations from the graph
- read_graphRead the entire knowledge graph
- search_nodesSearch for nodes based on query
- open_nodesRetrieve specific nodes by name
What the code can do
Read from the published package source — never executed. Parsed 2 of 2 source files.
This server can read and write files, read your environment variables and read system information.
How it was published
- Published by a verified CI identity (github trusted publishing) rather than a personal token.
- Has a provenance attestation tying this artifact to the commit it was built from.
- 6 npm maintainers · last published by GitHub Actions.
Maintainer of this package and think something here is wrong? Tell us and we'll correct it.
Before you install
Signals gathered from the source repo and package registry — not a safety verdict.
What it can reach
- Runs code on your machine — Executes as a local process with your user's permissions, including filesystem access.
- Downloads at launch — The package is fetched from its registry each run unless you pin a version.
- Last commit today — Actively maintained.
- 92k GitHub stars — Community adoption signal.
- 158k weekly downloads — Regularly installed by other developers.
Client compatibility
Health score
A · 93Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated
- Maintenance30%100%
Last commit 0 days ago.
- Adoption20%100%
91630 stars, 157765 weekly downloads.
- Transparency20%100%
4/4: ✓ public source repo, ✓ declared license, ✓ documentation, ✓ discoverable tool list.
- Provenance15%100%
Official reference implementation, maintained by the MCP steering group.
- Packaging15%50%
No pinned version — installs resolve to whatever is latest at launch.
Documentation
Full READMEKnowledge Graph Memory Server
A basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.
Published on npm as `@modelcontextprotocol/server-memory`.
Core Concepts
Entities
Entities are the primary nodes in the knowledge graph. Each entity has:
- A unique name (identifier)
- An entity type (e.g., "person", "organization", "event")
- A list of observations
Example:
{
"name": "John_Smith",
"entityType": "person",
"observations": ["Speaks fluent Spanish"]
}Relations
Relations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other.
Example:
{
"from": "John_Smith",
"to": "Anthropic",
"relationType": "works_at"
}Observations
Excerpt — the full document is on GitHub.
Alternatives to Memory
- Cathedral — Persistent Memory for AI AgentsB · 73Persistent memory and drift detection for AI agents across session restarts.
- ReasonGraph Cloud memoryB · 75Graph memory for AI agents: entities, cause-effect links, cross-session recall, time travel.
- Brain MemoryB · 70Persistent memory for AI agents: one brain shared across Claude, Cursor, Codex and more.
- AiAkiv MemoryB · 63Shared long-term memory for AI agents: save and recall context as a searchable knowledge graph.
Maintain Memory? Add a badge to your README
Shows its health grade, and links readers to install steps for every client.
[](https://mcp-skills-hub.vercel.app/mcps/official-memory)Catalog data refreshed . Something wrong? Report it.