Memory MCP

open sourcestdio

Persistent knowledge graph memory for AI agents across sessions

Updated 2026-03-01

MemoryFree· Open source, self-hosted. Stores data in a local JSON file.GitHubDocs

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-memory

Runtime: node

Tools (9)

create_entities

Create multiple new entities in the knowledge graph

entities
create_relations

Create multiple new relations between entities in the knowledge graph

relations
add_observations

Add new observations to existing entities in the knowledge graph

observations
delete_entities

Delete multiple entities and their associated relations from the knowledge graph

entityNames
delete_observations

Delete specific observations from entities in the knowledge graph

deletions
delete_relations

Delete multiple relations from the knowledge graph

relations
read_graph

Read the entire knowledge graph

search_nodes

Search for nodes in the knowledge graph based on a query

query
open_nodes

Open specific nodes in the knowledge graph by their names

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.

Take the quiz

Machine-Readable

This MCP is available as structured JSON via the API.

GET /api/v1/mcps/memory