Memory MCP 服务器
一个提供知识图谱管理功能的模型上下文协议服务器。
快速入门
安装
使用 curl 一键安装:
curl -fsSL https://raw.githubusercontent.com/okooo5km/memory-mcp-server/main/install.sh | bash
或者从源码构建:
-
克隆仓库: git clone https://github.com/okooo5km/memory-mcp-server.git cd memory-mcp-server
-
构建项目: swift build -c release
-
安装二进制文件: mkdir -p ~/.local/bin cp $(swift build -c release --show-bin-path)/memory-mcp-server ~/.local/bin/
并确保 ~/.local/bin 在 PATH 中。
基本用法
启动服务后,通过 API 创建实体、关系和观察记录。例如:
- 创建实体:指定名称、类型和观察记录。
- 创建关系:定义实体间的关联。
- 查询节点:通过关键词搜索相关信息。
更多示例和工具方法见 README。