Sign in
Explore
Add-ons · MCP serverEveryday codingReviewedWrites files

memory

Persistent memory as a local knowledge graph of entities, relations and observations, kept across chats in a JSONL file.

Kind
MCP server
Works with
Any agent
Source
MCP Reference Servers @ 51b6382a3e82
Path
src/memory/README.md
License
Apache-2.0
Jobs
Context management
InstallAdd it as an MCP server.
npx -y @modelcontextprotocol/server-memory
# Knowledge 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`](https://www.npmjs.com/package/@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:
```json
{
  "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:
```json
{
  "from": "John_Smith",
  "to": "Anthropic",
  "relationType": "works_at"
}
```
### Observations
Observations are discrete pieces of information about an entity. They are:

- Stored as strings
- Attached to specific entities
- Can be added or removed independently
- Should be atomic (one fact per observation)

Example:
```json
{
  "entityName": "John_Smith",
…