Memory

io.github.sharedmemoryai由 GitHub 账号 sharedmemoryai 发布v2.1.1更新于 Oct 24, 2026

Persistent memory for AI agents. Remember, recall, and explore a shared knowledge graph.

发布方自己的服务:Memory.fit

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

SharedMemory 的本地 MCP 服务器为助手提供持久记忆:可存储事实、按语义检索回忆,并浏览共享知识图谱。

可以做什么
存储单条或批量记忆,按 ID 更新或删除记忆,并对检索结果提交相关性反馈。在回答前通过语义检索获取上下文,读取指定记忆,并获取可直接用于提示词的上下文块或自动生成的用户画像。按名称搜索实体,查看实体详情与关系,并浏览知识图谱概览。列出可访问的卷、已上传文档和生效中的指令,并设置所有代理都会遵循的持久规则。使用知识图谱资源,以及汇总某个卷内容或查询某主题已知信息的提示词。
适用场景
适合希望助手跨会话、跨客户端保留知识的场景,例如让编码助手记住项目事实、偏好或团队规则。也适合团队在 Claude Code、Claude Desktop、Cursor、VS Code Copilot 或 Windsurf 之间共享同一个记忆卷。
运行要求
以 npm 包形式通过 npx 在本地运行,需要 Node.js。需要在 SHAREDMEMORY_API_KEY 中提供 SharedMemory API 密钥;可选的 SHAREDMEMORY_API_URL 和 SHAREDMEMORY_VOLUME_ID 用于指定接口地址和默认卷。需要能访问 SharedMemory API 的网络。
安装前请注意
SHAREDMEMORY_API_KEY 是有效凭据,不要写入共享配置文件,建议使用环境变量引用。助手可以写入、更新和删除记忆,并设置该卷内所有代理都会遵循的指令,请审阅这类改动。存储的记忆和查询内容会发送到 SharedMemory 云端服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Memory,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@sharedmemory/mcp-server

Model Context Protocol server for SharedMemory. Gives Claude Code, Claude Desktop, Cursor, VS Code Copilot, and other MCP-compatible tools persistent memory.

Quick Install (Recommended)

The fastest way to set up SharedMemory — one command, no JSON editing:

bash
# Interactive — picks your client, asks for your API keynpx -y @sharedmemory/mcp-server install
# Or specify everything inlinenpx -y @sharedmemory/mcp-server install --cursor --api-key sm_live_... --volume your-volume-id
# Install for all supported clients at oncenpx -y @sharedmemory/mcp-server install --all --api-key sm_live_...

Supported clients: --claude-code, --claude, --cursor, --vscode, --windsurf, --all

Manual Setup

If you prefer to edit config files yourself:

Claude Code

One command:

bash
claude mcp add sharedmemory -- npx -y @sharedmemory/mcp-server

Or with env vars:

bash
claude mcp add --env SHAREDMEMORY_API_KEY=sm_live_... \  --env SHAREDMEMORY_VOLUME_ID=your-volume-id \  sharedmemory -- npx -y @sharedmemory/mcp-server

Or create .mcp.json in your project root to share with your team:

json
{  "mcpServers": {    "sharedmemory": {      "command": "npx",      "args": ["-y", "@sharedmemory/mcp-server"],      "env": {        "SHAREDMEMORY_API_KEY": "${SHAREDMEMORY_API_KEY}",        "SHAREDMEMORY_API_URL": "https://api.sharedmemory.ai",        "SHAREDMEMORY_VOLUME_ID": "${SHAREDMEMORY_VOLUME_ID}"      }    }  }}

Tip: Copy the included CLAUDE.md into your project root to teach Claude Code when and how to use SharedMemory proactively.

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "sharedmemory": {      "command": "npx",      "args": ["-y", "@sharedmemory/mcp-server"],      "env": {        "SHAREDMEMORY_API_KEY": "sm_live_...",        "SHAREDMEMORY_API_URL": "https://api.sharedmemory.ai",        "SHAREDMEMORY_VOLUME_ID": "your-volume-id"      }    }  }}

Cursor

.cursor/mcp.json in your project root:

json
{  "mcpServers": {    "sharedmemory": {      "command": "npx",      "args": ["-y", "@sharedmemory/mcp-server"],      "env": {        "SHAREDMEMORY_API_KEY": "sm_live_...",        "SHAREDMEMORY_API_URL": "https://api.sharedmemory.ai",        "SHAREDMEMORY_VOLUME_ID": "your-volume-id"      }    }  }}

VS Code Copilot

.vscode/mcp.json:

json
{  "servers": {    "sharedmemory": {      "command": "npx",      "args": ["-y", "@sharedmemory/mcp-server"],      "env": {        "SHAREDMEMORY_API_KEY": "sm_live_...",        "SHAREDMEMORY_API_URL": "https://api.sharedmemory.ai",        "SHAREDMEMORY_VOLUME_ID": "your-volume-id"      }    }  }}

Windsurf

~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "sharedmemory": {      "command": "npx",      "args": ["-y", "@sharedmemory/mcp-server"],      "env": {        "SHAREDMEMORY_API_KEY": "sm_live_...",        "SHAREDMEMORY_API_URL": "https://api.sharedmemory.ai",        "SHAREDMEMORY_VOLUME_ID": "your-volume-id"      }    }  }}

Configuration

VariableRequiredDefaultDescription
SHAREDMEMORY_API_KEYYes—Agent API key
SHAREDMEMORY_API_URLNohttps://api.sharedmemory.aiAPI endpoint
SHAREDMEMORY_VOLUME_IDNo—Default volume

Available tools

ToolDescription
rememberStore a fact or note
queryRetrieve context BEFORE answering — semantic search over memories
get_entityGet entity details and relationships
search_entitiesSearch entities by name
get_graphKnowledge graph overview
list_volumesList accessible volumes
delete_memoryDelete a memory by ID
update_memoryUpdate a memory by ID
feedbackSubmit feedback on memory relevance
batch_rememberStore multiple memories at once
get_memoryRetrieve a specific memory by ID
get_profileAuto-generated user profile from memories
get_contextGet a context block for LLM prompting
set_instructionStore a persistent rule all agents will follow
list_instructionsList all active instructions for a volume
list_documentsList uploaded documents

Resources

URIDescription
memory://graphKnowledge graph for the default volume

Prompts

NameDescription
summarize-knowledgeSummarize all knowledge in a volume
what-do-you-know-aboutRetrieve everything known about a topic

Documentation

https://docs.sharedmemory.ai/sdks/mcp-server

License

MIT

来源:README.md,提交 64a42ff

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v2.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Memory 集成