Adaptive Memory Graph

io.github.raskolnikovdd由 GitHub 帳號 raskolnikovdd 發布v1.1.1更新於 Oct 24, 2026

Persistent memory for Claude via weighted, interconnected knowledge nodes.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面檔案與儲存知識與記憶

概覽

AI 產生的概覽

一個本機 MCP 伺服器,為 Claude 提供跨工作階段的持久加權記憶圖譜,資料加密存於磁碟並隨時間衰減。

可以做什麼
工作階段開始時載入輕量圖譜索引,在主題相關時展開特定節點取得更完整脈絡,並可跨領域尋找關聯節點、依標題、摘要、標籤或內容搜尋節點。新增節點,並手動提升、衰減、封存或刪除節點。記錄工作階段摘要、處理待處理日誌並執行權重衰減,匯出可讀的圖譜報告。列出並讀取過去的 Claude Code 對話工作階段,從中擷取知識。
適用情境
適合希望 Claude 在不同對話之間記住事實、偏好和專案背景,並讓過時記憶自然淡出而非不斷累積的情境。最適用於使用 Claude Code 或 Claude Desktop、希望記憶保存在本機而非託管服務的 macOS 使用者。
執行需求
以本機程序執行,從 PyPI 安裝(pip 或 uv),以 amg-server 指令啟動;需要 Python 3.10 或更新版本。需要 macOS,因為加密金鑰存放在 macOS 鑰匙圈中。未宣告任何 API 金鑰或環境變數。
安裝前請注意
此伺服器會讀取過去的 Claude Code 對話工作階段,因此對話內容可能被寫入記憶圖譜。它會寫入、封存和刪除記憶節點,手動調整操作可直接刪除節點。記憶以加密形式存放在使用者家目錄下的檔案中,金鑰保存在 macOS 鑰匙圈;能存取該帳號的人即可解密。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Adaptive Memory Graph,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Adaptive Memory Graph

An MCP server plugin that gives Claude persistent, intelligent memory across sessions. It stores knowledge as weighted, interconnected nodes in a graph that evolves through conversation — nodes that get used gain weight, unused ones decay and eventually archive.

Works with Claude Code and Claude Desktop.

Features

  • Weighted memory nodes — Important memories stay prominent; stale ones fade
  • Cross-domain connections — Link related knowledge across topics
  • Time-based decay — Graph self-prunes so only relevant memories persist
  • Encrypted storage — AES-256-GCM encryption with macOS Keychain key storage
  • Session logging — Tracks which memories were accessed and how they were received
  • Domain organization — Nodes organized by domain (e.g. health_and_safety, personal, ideas_and_projects)
  • Chat history ingestion — Review and extract knowledge from past Claude Code sessions

Installation

bash
pip install adaptive-memory-graph

Or with uv:

bash
uv pip install adaptive-memory-graph

Setup

Claude Code

bash
claude mcp add adaptive-memory-graph -s user -- amg-server

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "adaptive-memory-graph": {      "command": "amg-server"    }  }}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Tools

ToolDescription
amg_load_indexLoad lightweight graph index at session start
amg_expand_branchFetch full node content when contextually relevant
amg_get_connected_nodesFind related nodes across domains
amg_log_sessionLog session summary at conversation end
amg_update_graphProcess pending logs and apply weight decay
amg_export_reportGenerate human-readable graph summary
amg_manual_adjustBoost, decay, archive, or delete nodes
amg_add_nodeAdd new nodes to the graph
amg_search_nodesSearch nodes by title, summary, tags, or content
amg_list_chat_sessionsList available Claude Code chat sessions for review
amg_read_chat_sessionRead a chat session's conversation content

How It Works

  1. Session start — Claude calls amg_load_index to get a lightweight summary of your memory graph
  2. During conversation — If a topic is relevant, Claude expands specific nodes for deeper context
  3. Session end — Claude silently logs which nodes were accessed and suggests new ones
  4. Between sessions — Weight decay runs, archiving memories that haven't been useful

Nodes are stored as encrypted JSON on disk (~/.amg/graph.json.enc). The encryption key is stored in your macOS Keychain.

Requirements

  • Python 3.10+
  • macOS (for Keychain-based encryption key storage)

License

MIT

來源:README.md,提交 9f5b0ad

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合