memory-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_cache_message | 缓存一条消息到记忆系统(自动检测实体候选) |
| memory_start_episode | 开始一个新的情景(任务/功能开发会话) |
| memory_close_episode | 关闭当前情景,生成摘要并归档 |
| memory_get_current_episode | 获取当前活跃的情景信息 |
| memory_add_entity | 添加一个实体(Decision/Preference/Concept/Habit/File/Architecture) |
| memory_confirm_entity | 确认一个待确认的实体候选 |
| memory_reject_candidateB | 拒绝一个误判的实体候选 |
| memory_deprecate_entityC | 废弃一个过时的实体 |
| memory_get_pendingB | 获取所有待确认的实体候选 |
| memory_recallA | 综合检索记忆(情景+实体)。【重要】当用户询问'我是谁'、身份信息、个人偏好、历史决策、之前讨论过的内容时,应主动调用此工具检索相关记忆,而不是凭空回答。 |
| memory_search_by_typeC | 按类型检索实体 |
| memory_get_episode_detailA | 获取情景详情(包含消息和关联实体) |
| memory_statsC | 获取记忆系统统计信息 |
| memory_encoder_statusA | 查询向量编码器状态。返回编码器是否已就绪,以及哪些操作当前可用。 |
| memory_clear_cacheA | 清空消息缓存日志(message_cache.jsonl)。警告:此操作不可逆! |
| memory_cleanup_messages | 清理超过指定天数的消息缓存,保留最近 N 天的消息 |
| memory_list_episodes | 列出所有历史情景(按时间排序,不依赖语义搜索)。当用户要查看'所有历史情景'时使用此工具,避免语义搜索遗漏。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Memory Stats | 记忆系统统计信息 |
| Current Episode | 当前活跃的情景 |
| Pending Entities | 待确认的实体候选 |
TDQS
Scored across 9 tools
各工具目标基本清晰:检索类、候选管理类、系统维护类之间的边界比较明显。不过 memory_recall 与 memory_search_by_type 都是检索入口,存在轻微功能重叠,但描述足以区分综合检索与按类型检索。
所有工具统一使用 memory_ 前缀且采用小写和下划线,整体命名风格一致。但 memory_stats 与 memory_encoder_status 是名词式命名,而大多数工具是动词加宾语形式,略有偏差。
9 个工具覆盖检索、候选管理、系统状态和缓存管理,数量处于 3-15 的合理区间,没有冗余的重复工具,范围适中。
检索和状态查询较完整,但候选实体管理只有获取待确认和拒绝,缺少确认/接受候选实体的操作,形成流程断点。此外没有显式的实体新增或编辑工具,生命周期覆盖不完整。