The Memory Custom server enables the creation and management of a knowledge graph for LLM interactions with these capabilities:
- Create and Manage Entities: Add new nodes to the knowledge graph
- Establish Relations: Define connections between entities
- Add Observations: Append facts or attributes to existing entities
- Delete Data: Remove entities, observations, or relations
- Set Memory Paths: Customize file paths for storing memory data
- Search and Retrieve: Find nodes based on queries or access specific nodes by name
- Read Entire Graph: Access the complete knowledge graph structure
- Timestamping: Automatically track when changes occur
Memory Custom
This project adds new features to the Memory server offered by the MCP team. It allows for the creation and management of a knowledge graph that captures interactions via a language model (LLM).
New Features
1. Custom Memory Paths
- Users can now specify different memory file paths for various projects.
- Why?: This feature enhances organization and management of memory data, allowing for project-specific memory storage.
2. Timestamping
- The server now generates timestamps for interactions.
- Why?: Timestamps enable tracking of when each memory was created or modified, providing better context and history for the stored data.
Getting Started
Prerequisites
- Node.js (version 16 or higher)
Installing via Smithery
To install Knowledge Graph Memory Server for Claude Desktop automatically via Smithery:
Installation
- Clone the repository:
- Install the dependencies:
Configuration
Before running the server, you can set the MEMORY_FILE_PATH
environment variable to specify the path for the memory file. If not set, the server will default to using memory.json
in the same directory as the script.
Running the Server
Updating the mcp server json file
Add this to your claude_desktop_config.json
/ .cursor/mcp.json
file:
System Prompt changes:
Running the Server Locally
To start the Knowledge Graph Memory Server, run:
The server will listen for requests via standard input/output.
API Endpoints
The server exposes several tools that can be called with specific parameters:
- Get Current Time
- Set Memory File Path
- Create Entities
- Create Relations
- Add Observations
- Delete Entities
- Delete Observations
- Delete Relations
- Read Graph
- Search Nodes
- Open Nodes
Acknowledgments
- Inspired by the Memory server from Anthropic.
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
A customized MCP memory server that enables creation and management of a knowledge graph with features like custom memory paths and timestamping for capturing interactions via language models.
Related Resources
Related MCP Servers
- -securityAlicense-qualityThis project is based on the Knowledge Graph Memory Server from the MCP servers repository and retains its core functionality.Last updated -44107TypeScriptMIT License
- AsecurityAlicenseAqualityA custom Memory MCP Server that acts as a cache for Infrastructure-as-Code information, allowing users to store, summarize, and manage notes with a custom URI scheme and simple resource handling.Last updated -231PythonMIT License
- AsecurityFlicenseAqualityThis MCP server provides persistent memory integration for chat applications by utilizing a local knowledge graph to remember user information across interactions.Last updated -914,7001JavaScript
- -securityFlicense-qualityAn MCP server that allows Claude and other LLMs to manage persistent memories across conversations through text file storage, enabling commands to add, search, delete and list memory entries.Last updated -2TypeScript