knowledge graph.com
knowledge graph.com logo

Knowledge Graph

Provides persistent memory for Claude through a local knowledge graph that stores entities with observations and relatio...

Created byApr 22, 2025

Knowledge Graph Memory Server

An improved implementation of persistent memory using a local knowledge graph with a customizable memory path.
This lets Claude remember information about the user across chats.
[!NOTE] This is a fork of the original Memory Server and is intended to not use the ephemeral memory npx installation method.

Server Name

screen-of-server-name
read-function

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
  • Creation date and version tracking
The version tracking feature helps maintain a historical context of how knowledge evolves over time.
Example:

Relations

Relations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other. Each relation includes:
  • Source and target entities
  • Relationship type
  • Creation date and version information
This versioning system helps track how relationships between entities evolve over time.
Example:

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:

API

Tools

  • create_entities
  • create_relations
  • add_observations
  • delete_entities
  • delete_observations
  • delete_relations
  • read_graph
  • search_nodes
  • open_nodes

Usage with Cursor, Cline or Claude Desktop

Setup

Add this to your mcp.json or claude_desktop_config.json:

Installing via Smithery

To install Knowledge Graph Memory Server for Claude Desktop automatically via Smithery:

Custom Memory Path

You can specify a custom path for the memory file in two ways:
  1. Using command-line arguments:
  1. Using environment variables:
If no path is specified, it will default to memory.jsonl in the server's installation directory.

System Prompt

The prompt for utilizing memory depends on the use case. Changing the prompt will help the model determine the frequency and types of memories created.
Here is an example prompt for chat personalization. You could use this prompt in the "Custom Instructions" field of a Claude.ai Project.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Knowledge Graph Memory Server

An improved implementation of persistent memory using a local knowledge graph with a customizable memory path.
This lets Claude remember information about the user across chats.
[!NOTE] This is a fork of the original Memory Server and is intended to not use the ephemeral memory npx installation method.

Server Name

screen-of-server-name
read-function

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
  • Creation date and version tracking
The version tracking feature helps maintain a historical context of how knowledge evolves over time.
Example:

Relations

Relations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other. Each relation includes:
  • Source and target entities
  • Relationship type
  • Creation date and version information
This versioning system helps track how relationships between entities evolve over time.
Example:

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:

API

Tools

  • create_entities
  • create_relations
  • add_observations
  • delete_entities
  • delete_observations
  • delete_relations
  • read_graph
  • search_nodes
  • open_nodes

Usage with Cursor, Cline or Claude Desktop

Setup

Add this to your mcp.json or claude_desktop_config.json:

Installing via Smithery

To install Knowledge Graph Memory Server for Claude Desktop automatically via Smithery:

Custom Memory Path

You can specify a custom path for the memory file in two ways:
  1. Using command-line arguments:
  1. Using environment variables:
If no path is specified, it will default to memory.jsonl in the server's installation directory.

System Prompt

The prompt for utilizing memory depends on the use case. Changing the prompt will help the model determine the frequency and types of memories created.
Here is an example prompt for chat personalization. You could use this prompt in the "Custom Instructions" field of a Claude.ai Project.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.