memory vs mcp-memory-libsql
并排对比,帮你在这两个 MCP server 之间做选择。
memory by modelcontextprotocol | mcp-memory-libsql by spences10 | |
|---|---|---|
| Stars | ★ 85,748 | ★ 84 |
| 30天用量 | — | — |
| 综合分 | 77 | 46 |
| 官方 | ✓ | — |
| 分类 | 知识库 / RAGAI / LLM 工具效率工具 | AI / LLM 工具知识库 / RAG数据库 |
| 实现语言 | TypeScript | TypeScript |
| 最近提交 | 本月 | 本月 |
memory · 概述
一个实现持久化记忆的 MCP 服务器,使用本地知识图谱让 AI 模型能在聊天间记住用户信息。
mcp-memory-libsql · 概述
高性能 MCP 持久化内存系统,支持向量搜索和知识图谱功能。
memory · 使用场景
- 通过记住用户偏好、历史和关系来个性化 AI 助手交互
- 构建维护对话历史的上下文感知聊天应用
- 创建在 AI 模型会话间持久化的知识库
mcp-memory-libsql · 使用场景
- 构建具有持久内存和知识图谱的 AI 代理
- 实现高效的语义搜索和检索系统
- 为 LLM 应用创建优化的上下文内存存储
memory · 安装
安装
Claude Desktop
添加到你的 claude_desktop_config.json 文件中:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}VS Code
使用一键安装按钮或在 .vscode/mcp.json 中手动配置:
{
"servers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}Docker
{
"mcpServers": {
"memory": {
"command": "docker",
"args": ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"]
}
}
}mcp-memory-libsql · 安装
安装
- 安装服务器包:
npm install -g mcp-memory-libsql- 在您的 MCP 客户端中配置。对于 Claude Desktop:
{
"mcpServers": {
"mcp-memory-libsql": {
"command": "npx",
"args": ["-y", "mcp-memory-libsql"],
"env": {
"LIBSQL_URL": "file:/path/to/your/database.db"
}
}
}
}- 设置 LIBSQL_URL 环境变量以指定您的数据库位置(默认:file:/memory-tool.db)