记忆定制
该项目为 MCP 团队提供的内存服务器添加了新功能。它允许创建和管理通过语言模型 (LLM) 捕获交互的知识图谱。
新功能
1. 自定义内存路径
用户现在可以为不同的项目指定不同的内存文件路径。
为什么? :此功能增强了内存数据的组织和管理,允许特定于项目的内存存储。
2.时间戳
服务器现在为交互生成时间戳。
为什么? :时间戳可以追踪每个内存的创建或修改时间,为存储的数据提供更好的背景和历史记录。
入门
先决条件
Node.js(版本 16 或更高版本)
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装知识图谱内存服务器:
安装
克隆存储库:
git clone git@github.com:BRO3886/mcp-memory-custom.git cd mcp-memory-custom安装依赖项:
npm install
配置
在运行服务器之前,您可以设置MEMORY_FILE_PATH环境变量来指定内存文件的路径。如果未设置,服务器将默认使用与脚本位于同一目录中的memory.json文件。
运行服务器
更新 mcp 服务器 json 文件
将其添加到您的claude_desktop_config.json / .cursor/mcp.json文件中:
系统提示变更:
本地运行服务器
要启动知识图谱内存服务器,请运行:
服务器将通过标准输入/输出监听请求。
API 端点
服务器公开了几个可以通过特定参数调用的工具:
获取当前时间
设置内存文件路径
创建实体
创建关系
添加观察结果
删除实体
删除观察结果
删除关系
读图
搜索节点
开放节点
致谢
受到 Anthropic 的内存服务器的启发。
local-only server
The server can only run on the client's local machine because it depends on local resources.
定制的 MCP 内存服务器,可以创建和管理知识图谱,具有自定义内存路径和时间戳等功能,可通过语言模型捕获交互。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityThis project is based on the Knowledge Graph Memory Server from the MCP servers repository and retains its core functionality.Last updated -44301MIT 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 -994,3915
- -securityAlicense-qualityEnhances the MCP memory server by implementing PouchDB for robust document storage and enabling the creation and management of a knowledge graph that captures interactions via language models.Last updated -4MIT License
- -securityFlicense-qualityAn advanced MCP server providing RAG-enabled memory through a knowledge graph with vector search capabilities, enabling intelligent information storage, semantic retrieval, and document processing.Last updated -3532