Let AI maintain long-term memory across applications, knowledge graph MCP Server

Let AI remember every detail about you and achieve long-term memory across applications.
Core content:
1. Knowledge graph technology and its application in AI memory
2. Memory MCP Server core functions and usage
3. Realizing context awareness through knowledge graph
Do I need to introduce myself again every time I talk to AI?
Want AI to remember your preferences and important details from past interactions?
Today I will introduce a solution to you - a knowledge graph memory system based on MCP.
Let’s first get to know the core technology of knowledge graph.
A knowledge graph is a structured database used to represent knowledge . It organizes information in the form of a graph consisting of nodes (entities) and edges (relationships).
Unlike traditional databases, knowledge graphs emphasize the associations between entities, and this structure is very suitable for describing complex relational networks.
For example, in the knowledge graph:
"Jack Ma" (node) → "founded" (relationship) → "Alibaba" (node)
"Alibaba" (node) → "headquartered in" (relationship) → "Hangzhou" (node)
AI can understand the logical relationship between information, thereby achieving more intelligent information retrieval and reasoning. Knowledge graphs have been widely used in search engines, recommendation systems, intelligent question answering and other fields.
The knowledge graph feature enables AI to build complex association networks in memory like humans, and quickly retrieve relevant information when needed, achieving true "context awareness" capabilities.
Memory MCP Server is an MCP Server based on knowledge graph, which is cleverly used as the "long-term memory bank" of AI.
Core Functions of Memory MCP Server
- Knowledge graph storage uses a graph structure to store knowledge, which contains three core elements: Entities : nodes in the graph, with names, types, and observation lists, Relations : connections between entities, expressed in active voice, and Observations: facts or details related to entities.
- Comprehensive entity and relationship management . The system provides a rich set of APIs, including: creating and deleting entities, establishing and managing relationships between entities, adding and removing observation records about entities, and powerful search functions.
- Persistent storage : All knowledge graph data is persistently stored in JSON format, ensuring that the AI assistant can retain memory between different sessions.
You can download prebuilt binaries from the GitHub Releases page, or build from source:
git clone https://github.com/okooo5km/memory-mcp-server-go.git cd memory-mcp-server-go make
Configuration
"mcpServers": { "memory": { "command": "memory-mcp-server-go", "env": { "MEMORY_FILE_PATH": "/Path/Of/Your/memory.json" } } }
You can use a knowledge graph memory system that can store and retrieve information across conversations. Use it to remember important details, preferences about the user.
The methods provided are as follows:
Memory MCP Serverr usage test (please do not use Trae, this MCP cannot be used)
Save graph information
Extracting information
Organize into readable information
Locally saved data
{ "type": "entity", "name": "Beijing Trip", "entityType": "Itinerary", "observations": ["The user plans to travel to Beijing on April 25, 2025"] }
"type": "entity" - indicates that this is an entity object, which will be created as a node in the knowledge graph
"name": "Beijing Trip" - the name of the entity, which is the unique identifier of the entity and is used to reference this entity in the knowledge graph
"entityType": "trip" - the type of the entity, indicating that this entity belongs to the "trip" category, which helps to classify and manage different types of entities
"observations": ["The user plans to go to Beijing on April 25, 2025"] - Observations or facts related to this entity, here it is recorded that the user plans to go to Beijing on April 25, 2025.
Memory MCP Server provides AI with true cross-application "long-term memory" capabilities.