
Memory-Plus
by Yuchen20·★ 58·综合分 43
轻量级本地RAG记忆存储,支持记录、检索、更新和可视化AI代理的持久记忆。
概述
Memory-Plus 是基于Python的MCP服务器,为AI代理提供本地检索增强生成(RAG)记忆存储。它允许开发者记录、检索、更新、删除和可视化跨会话的持久记忆。服务器使用Google的Gemini Embedding API处理记忆,并保留记忆的版本以提供历史上下文。特别适合使用多个AI编程工具的开发者,希望他们的AI助手在会话间保持上下文。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要为 AI 代理提供一个本地、注重隐私的内存解决方案,能在多个会话和 IDE 中工作且无需外部服务时,选择 Memory-Plus。
什么时候不要选它
如果您需要跨设备的云内存共享,需要超越基本关键词匹配的搜索功能,或者想要没有外部 API 依赖(如 Google)的解决方案,不要选择 Memory-Plus。
此 server 暴露的工具
从 README 抽取出 7 个工具record_memorySave user data, ideas, and important context.
retrieve_memorySearch by keywords or topics over past entries.
get_recent_memoriesFetch the last N memory items.
update_memoryAppend or modify existing memory entries.
visualize_memoriesCreate interactive graph clusters revealing relationships between memories.
import_fileIngest documents directly into memory.
delete_memoryRemove unwanted memory entries.
可对比工具
安装
安装步骤
**先决条件:**
- Google API密钥(用于Gemini Embedding API)
- 从[Google AI Studio](https://aistudio.google.com/apikey)获取 - 设置为环境变量中的GOOGLE_API_KEY
**使用UV Runtime设置:**
# 安装UV
pip install uv
# 添加到VS Code/settings.json
{
"mcpServers": {
"memory-plus": {
"command": "uvx",
"args": [
"-q",
"memory-plus@latest"
],
"env": {
"GOOGLE_API_KEY": "<YOUR_API_KEY>"
}
}
}
}**VS Code一键安装:** [](https://insiders.vscode.dev/redirect/mcp/install?name=memory-plus&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22-q%22%2C%22memory-plus%40latest%22%5D%7D)
FAQ
- 为什么memory-plus无法工作?
- memory-plus的依赖项首次下载可能较慢(约1分钟)。安装后,后续使用会快很多。
- 如何在真实的聊天会话中使用memory-plus?
- 将MCP JSON配置添加到您的MCP设置中。添加后,memory-plus会在需要时自动激活。
Memory-Plus 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。