MemStack MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_API_KEY | No | API key for the OpenAI-compatible LLM endpoint used when MEMSTACK_LLM_MODEL is set. Optional. | |
| OPENAI_BASE_URL | No | Base URL for a non-OpenAI OpenAI-compatible endpoint. Optional. | |
| MEMSTACK_API_KEY | No | API key override for configured model endpoints. Optional. | |
| MEMSTACK_LLM_BASE | No | Named built-in model base to use, for example qwen35-9b-local. Optional. | |
| MEMSTACK_LLM_MODEL | No | OpenAI-compatible model name. Setting this together with OPENAI_API_KEY enables LLM-based extraction, summarization, and query decomposition. Optional; the MCP server runs without it. | |
| MEMSTACK_REASONING_EFFORT | No | Reasoning effort override for OpenAI-compatible endpoints. Optional. |
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 | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_searchC | 检索与当前任务相关的长期记忆,返回带来源与置信度的上下文片段。 |
| memory_addA | 把一段对话、事件或文档写入长期记忆;系统会自动抽取事实、去重与处理冲突。 |
| memory_forgetB | 按 id 或查询软删除记忆;默认保留审计记录,hard=true 才物理删除。 |
| memory_profileA | 读取用户画像块与记忆库统计,适合在会话开始时加载。 |
| memory_consolidateA | 离线巩固:去重、冲突消解、生成会话摘要、刷新画像。建议在会话结束后调用。 |
| agent_registerB | 注册一个 agent(多 agent 协作的前提),返回档案;重复注册会更新角色与元数据。 |
| team_createA | 创建团队共享记忆空间。closed 团队仅成员可读;open 团队任何人可读。 |
| agent_rememberC | 以 agent 身份写入记忆;team_id 存在时同步写入团队共享空间。 |
| agent_recallC | 以 agent 身份检索:私有记忆 + 有权限的团队共享记忆 + 被授权(grant)的他人记忆,返回带来源段落的上下文。 |
| agent_grantC | 把某个 agent 的私有记忆授权给另一个 agent(或 team:id)读取。 |
| event_postC | 向团队发布事件(agent 间消息);as_memory=true 时同步存入共享记忆。 |
| event_pullC | 增量拉取团队事件流(since_id 之后的事件)。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
每个工具都明确针对一个资源与动作的组合,但有两组功能重叠:memory_add 与 agent_remember(两者都写入记忆,区别只在身份和团队同步),memory_search 与 agent_recall(都返回上下文,区别只在作用域)。描述说明了区别,但代理仍可能选错。其余工具(profile、consolidate、forget、grant、event_post/pull)各自界限分明。
所有 12 个工具都采用一致的 noun_verb 命名模式(memory_*、agent_*、team_*、event_*),并使用 snake_case,命名空间前缀恰好对应相关资源族。没有风格混用。
12 个工具在较单一领域的合理范围内,每个工具都对应一个明确能力(记忆增删查改与巩固、agent 身份、团队空间、事件流)。稍显庞杂的是 agent_* 和团队相关工具集,但对于多代理记忆系统,数量仍无可厚非。
记忆生命周期和事件流有良好的增删改查覆盖,但团队空间存在死胡同:team_create 会生成 closed 团队(仅成员可读),却没有用于添加/移除成员、列出团队或删除团队的工具。同样也没有 agent 列表/注销或直接按 ID 获取记忆的工具,迫使代理只能依赖搜索。