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 集成