Memory
Official MCP reference server providing persistent, knowledge-graph-based memory across conversations using entities, relations, and observations stored locally.
Install Memory
- Published by
- Official (vendor)
- Transport
- Local process (stdio)
- Authentication
- None
- Package
- @modelcontextprotocol/server-memory
Claude Desktop, Claude Code and Cursor
Add this to the mcpServers object in your client's
config file, then restart the client.
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}
VS Code uses a different key — show that config
Identical entry, filed under servers rather than
mcpServers. Put it in
.vscode/mcp.json for one workspace.
{
"servers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}
Before it will answer
Knowledge-graph memory held locally. Nothing to authenticate; nothing leaves the machine.
Tools
add_observations
Append new discrete observations (facts) to one or more existing entities in the graph.
create_entities
Create one or more new entities (nodes) in the knowledge graph, each with a type and associated observations.
create_relations
Create directed relations between existing entities to describe how they are connected.
delete_entities
Delete entities from the knowledge graph along with any relations that reference them.
delete_observations
Remove specific observations (facts) from an entity without deleting the entity itself.
delete_relations
Delete specific directed relations between entities in the knowledge graph.
open_nodes
Retrieve specific entities by name along with the relations that connect them.
read_graph
Return the entire knowledge graph, including all entities, their observations, and relations.
search_nodes
Search the knowledge graph for entities matching a query across names, types, and observations.