Knowledge Graph Memory MCP Server logo

Knowledge Graph Memory MCP Server

by modelcontextprotocol

2,165 forks
21,270 stars
Free
## Knowledge Graph Memory MCP Server Overview

### Introduction

The Knowledge Graph Memory MCP Server is a basic implementation of persistent memory, leveraging a local knowledge graph to enable Claude to retain user information across different chats. This capability is essential for personalized and context-aware interactions, enhancing the user experience.

### Core Concepts

- **Entities**: Serve as the fundamental nodes in the knowledge graph, characterized by a unique name, type (e.g., person, organization), and a list of observations.
- **Relations**: Define directed connections between entities, illustrating interactions or associations.
- **Observations**: Represent specific facts about entities, allowing dynamic updating and maintenance of information.

### API Tools

The server provides several API tools, including:
- `create_entities` and `create_relations` for adding new data.
- `add_observations`, `delete_entities`, `delete_observations`, `delete_relations` for managing existing data.
- `read_graph`, `search_nodes`, and `open_nodes` for accessing and querying the knowledge graph.

### Integration

For easy setup with Claude Desktop, the server supports deployment via Docker or NPX, with customizable settings through environment variables. This flexibility allows seamless integration into existing workflows.

### System Prompt

The server is designed to facilitate chat personalization by using memory to recall user-specific information, such as identity, behaviors, preferences, and goals, thereby creating more engaging and meaningful interactions.

### Licensing

The server is open-source under the MIT License, offering freedom to use, modify, and distribute the software.

This server is ideal for developers seeking to enhance chat applications with memory retention and context-aware capabilities.

How to Use

To use the Knowledge Graph Memory MCP Server, follow these steps:

  1. Visit https://github.com/modelc...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using Knowledge Graph Memory MCP Server capabilities within your Claude conversations

Additional Information

Created

March 12, 2025

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More