Memory MCP
open sourcestdioPersistent knowledge graph memory for AI agents across sessions
Updated 2026-03-01
Official MCP server that gives AI agents a persistent, long-term memory store backed by a knowledge graph. Agents can create entities and relationships, store observations, and recall facts from previous sessions, enabling truly stateful AI agents that remember context over time.
Install
npx -y @modelcontextprotocol/server-memoryRuntime: node
Tools (9)
create_entitiesCreate multiple new entities in the knowledge graph
create_relationsCreate multiple new relations between entities in the knowledge graph
add_observationsAdd new observations to existing entities in the knowledge graph
delete_entitiesDelete multiple entities and their associated relations from the knowledge graph
delete_observationsDelete specific observations from entities in the knowledge graph
delete_relationsDelete multiple relations from the knowledge graph
read_graphRead the entire knowledge graph
search_nodesSearch for nodes in the knowledge graph based on a query
open_nodesOpen specific nodes in the knowledge graph by their names
Use Cases
- ·Build agents that remember users and preferences across sessions
- ·Enable agents to track project state and decisions over time
- ·Create personal assistant agents with long-term context
- ·Store and retrieve entity relationships for complex domains
Key Points
- •Knowledge graph model, entities, relations, and observations stored persistently
- •Agents can read, write, search, and delete from the graph
- •Stored in a local JSONL file, easy to inspect and back up
- •Official Anthropic-maintained server, the standard for agent memory
Do-Nothing Score
Find out how close you are to Ghost CEO.