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 整合