mcp-memory-libsql
by spences10·★ 84·综合分 46
高性能 MCP 持久化内存系统,支持向量搜索和知识图谱功能。
ai-llmknowledge-graphdatabase
17
Forks
12
活跃 Issue
本月
最近提交
2 天前
收录于
概述
mcp-memory-libsql 是一个基于 TypeScript 的 MCP 服务器,使用 libSQL 作为数据库后端提供持久化内存系统。它提供高性能的相关性排名文本搜索、实体和关系管理,并针对 LLM 上下文效率进行了优化。该服务器支持本地 SQLite 和远程 libSQL 数据库,具有安全认证功能,适用于 AI 代理和知识图谱应用。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
你:构建具有持久内存和知识图谱的 AI 代理
你:实现高效的语义搜索和检索系统
你:为 LLM 应用创建优化的上下文内存存储
你:支持哪些数据库?
你:如何与远程 libSQL 数据库进行身份验证?
什么时候选它
当您需要为 AI 智能体提供具有向量搜索功能的持久化内存系统时,尤其是如果您已经在使用 libSQL 或 SQLite 数据库。
什么时候不要选它
如果您需要读写现有数据库或需要比基本向量搜索和关系管理更高级的语义搜索功能,请避免使用。
此 server 暴露的工具
从 README 抽取出 7 个工具create_entityCreate or update an entity with observations
delete_entityDelete an entity
search_entitiesSearch entities by text with relevance ranking
explore_entity_relationshipsExplore relationships between entities
create_relationCreate a relation between entities
delete_relationDelete a relation between entities
query_related_entitiesQuery entities related to a specific entity
可对比工具
semantic-memory-mcpvectordb-mcppostgres-mcpsqlite-mcp
安装
安装
- 安装服务器包:
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)
FAQ
- 支持哪些数据库?
- 该服务器支持本地 SQLite 数据库和远程 libSQL 数据库(如 Turso),通过 LIBSQL_URL 环境变量进行配置。
- 如何与远程 libSQL 数据库进行身份验证?
- 连接远程数据库时,请使用 LIBSQL_AUTH_TOKEN 环境变量设置您的认证令牌。
mcp-memory-libsql 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。