nebula-memory

v1.5.0
io.github.yb-zhai/nebula-memory Checked 1 day ago Published 10 days ago

Zero-dependency offline memory MCP server.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

remember

写入一条记忆。可选 importance(0~1,1.0 表示置顶/永久事实,永不受时间衰减,用于存 API 密钥、用户称呼偏好等关键信息)、kind(episode/fact/note/profile)、tags。

ParameterTypeDescription
text *string要记住的内容
importancenumber重要性 0~1,1.0 = 永久置顶
kindstring记忆类型,默认 episode
namespacestring目标记忆库(可选)。不填=默认单库;填了写入独立子库,如 work/personal。仅字母数字、_、-,≤64字符。
tagsarray标签

recall

召回与 query 相关的记忆。本地四臂检索,返回按相关度排序的记忆列表。

ParameterTypeDescription
query *string要检索的内容
limitnumber最多返回条数,默认 6
namespacestring目标记忆库(可选)。不填=默认单库;填了只在该子库内检索。

stats

返回当前记忆库的统计信息(节点数、边数等)。

ParameterTypeDescription
namespacestring目标记忆库(可选)。不填=默认单库。

forget

按 id 删除一条记忆。

ParameterTypeDescription
id *string记忆 id
namespacestring目标记忆库(可选)。不填=默认单库。

compact

手动压缩记忆库文件:清理追加历史,磁盘显著变小、下次启动明显变快。实例保持可用,不影响读写。可选 namespace。

ParameterTypeDescription
namespacestring目标记忆库(可选)。不填=默认单库。