Skip to main content
Glama
CSOAI-ORG

Memory Search MCP Server

by CSOAI-ORG

MEOK AI Labs 开发 — 为每个人提供主权 AI 工具。

内存搜索 MCP 服务器

为 AI 智能体和助手提供的持久化内存系统。通过关注权重和情感效价记录情景记忆,利用全文本相关性排名进行搜索,维护事实和参考资料的知识库,追踪时间链,并自动整合旧记忆。

mcp 包外无外部依赖 —— 使用带有 FTS5 的 SQLite 实现快速全文本搜索。数据持久化存储在 ~/.mcp-memory/memories.db 中。

工具

工具

描述

record_memory

存储带有关注权重、重要性、情感和标签的记忆片段

search_memory

带有关注权重和标签过滤的全文本语义搜索

add_knowledge

向知识库添加持久化事实/参考资料

search_knowledge

按主题或内容搜索知识库

list_memories

按时间、重要性或访问次数浏览近期记忆

get_memory_stats

内存存储统计信息:计数、平均值、存储大小

get_temporal_chain

从任何记忆向前/向后追踪时间线

consolidate_memories

归档旧的低访问频率记忆以节省空间

安装

pip install mcp

使用方法

运行服务器

python server.py

Claude Desktop 配置

{
  "mcpServers": {
    "memory-search": {
      "command": "python",
      "args": ["/path/to/memory-search-mcp/server.py"]
    }
  }
}

调用示例

记录记忆:

Tool: record_memory
Input: {"content": "User prefers dark mode and compact layouts", "source_agent": "preferences", "memory_type": "insight", "care_weight": 0.8, "tags": ["preferences", "ui"]}
Output: {"success": true, "episode_id": "a3f2b1c8d9e0", "timestamp": "2026-04-13T10:30:00"}

搜索记忆:

Tool: search_memory
Input: {"query": "user interface preferences", "limit": 5, "care_weight_min": 0.5}
Output: {"results": [...], "count": 3, "query": "user interface preferences"}

添加知识:

Tool: add_knowledge
Input: {"topic": "Python asyncio", "content": "Use asyncio.gather() for concurrent coroutines...", "confidence": 0.9}
Output: {"success": true, "knowledge_id": "k1a2b3c4d5e6", "topic": "Python asyncio"}

追踪时间链:

Tool: get_temporal_chain
Input: {"episode_id": "a3f2b1c8d9e0", "direction": "backward", "max_steps": 10}
Output: {"chain": [...], "direction": "backward", "steps": 7}

数据存储

所有数据均存储在 ~/.mcp-memory/memories.db (SQLite) 中。如需重置,直接删除此文件即可。如需备份,请复制该文件。

定价

层级

限制

价格

免费版

100 次调用/天

$0

专业版

无限制 + 向量嵌入 + 云同步

$9/月

企业版

定制 + 团队共享 + 静态加密

联系我们

许可证

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CSOAI-ORG/memory-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server