
okooo5km/memory-mcp-server 是从 https://github.com/okooo5km/memory-mcp-server. 导入的 MCP 服务器候选
概览
okooo5km/memory-mcp-server 是从 https://github.com/okooo5km/memory-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个提供知识图谱管理功能的模型上下文协议服务器。该服务器使大型语言模型能够创建、读取、更新和删除持久知识图谱中的实体和关系,帮助人工智能助手在对话间保持记忆。这是官方TypeScript内存MCP服务器的Swift实现。
注意: 此 Swift 版本要求 macOS 14.0 或更高版本。如需更广泛的平台支持(包括 Windows、Linux 和 macOS 11.0+),请查看 Go 语言实现:memory-mcp-server-go。
✨ 特色
- 知识图谱存储:维护实体及其关系的持久图
- 实体管理:创建、检索、更新和删除带有自定义类型的实体
- 关系追踪:定义和管理主动语态中实体之间的关系
- 观察系统:随时间添加和移除实体的观察值
- 强力搜索:按名称、类型或观察内容查找相关节点
- 持久存储:数据以简单的JSON格式在会话间持久化
可用工具
create_entities- 在知识图谱中创建多个新实体
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Memory MCP Server
A Model Context Protocol server that provides knowledge graph management capabilities. This server enables LLMs to create, read, update, and delete entities and relations in a persistent knowledge graph, helping AI assistants maintain memory across conversations. This is a Swift implementation of the official TypeScript Memory MCP Server.
Note: This Swift version requires macOS 14.0 or later. For broader platform support (including Windows, Linux, and macOS 11.0+), check out the Go language implementation: memory-mcp-server-go.
✨ Features
- Knowledge Graph Storage: Maintain a persistent graph of entities and their relationships
- Entity Management: Create, retrieve, update, and delete entities with custom types
- Relation Tracking: Define and manage relationships between entities in active voice
- Observation System: Add and remove observations about entities over time
- Powerful Search: Find relevant nodes by name, type, or observation content
- Persistent Storage: Data persists between sessions in a simple JSON format
Available Tools
-
create_entities- Create multiple new entities in the knowledge graphentities(array, required): Array of entity objects to createname(string): The name of the entityentityType(string): The type of the entityobservations(array of strings): Observations associated with the entity
-
create_relations- Create multiple new relations between entitiesrelations(array, required): Array of relation objectsfrom(string): The name of the entity where the relation startsto(string): The name of the entity where the relation endsrelationType(string): The type of the relation (in active voice)
-
add_observations- Add new observations to existing entitiesobservations(array, required): Array of observation additionsentityName(string): The name of the entity to add observations tocontents(array of strings): The observations to add
-
delete_entities- Delete multiple entities and their associated relationsentityNames(array, required): Array of entity names to delete
-
delete_observations- Delete specific observations from entitiesdeletions(array, required): Array of observation deletionsentityName(string): The name of the entity containing the observationsobservations(array of strings): The observations to delete
-
delete_relations- Delete multiple relations from the knowledge graphrelations(array, required): Array of relation objects to deletefrom(string): The source entity nameto(string): The target entity name
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
"mcpServers": {
"memory": {
"command": "memory-mcp-server",
"env": {
"MEMORY_FILE_PATH": "/path/to/your/memory.json"
}
}
}