Hebbian Vault

io.github.onetrueclaude-creator由 GitHub 账号 onetrueclaude-creator 发布v0.2.0更新于 Oct 25, 2026

Usage-adaptive Obsidian vault search: Hebbian + PageRank + BM25 hybrid ranking.

概览

AI 生成的概览

一个本地 MCP 服务器,让助手对 Obsidian 笔记库进行混合排序、随使用习惯自适应的搜索,融合关键词、链接图谱与使用信号。

可以做什么
以混合排序搜索笔记库,综合关键词相关性、链接图谱中心度和历史使用情况,并带时间衰减。读取单篇笔记,包括 frontmatter、链接和使用元数据。沿 wikilink 探索一跳或两跳内的关联笔记。列出最常使用的文件,并获取文件数、链接数、孤立笔记和枢纽页等笔记库统计。执行结构健康检查,找出失效链接和孤立笔记。若启动时未指定路径,可在运行时指定笔记库。
适用场景
适合用 Obsidian 管理笔记、并希望助手以优于纯关键词搜索的方式查找和阅读笔记的场景,尤其是笔记库较大或链接密集时。也适合检查笔记库中的失效链接和孤立笔记。
运行要求
以 Python 包形式在本地运行(需 Python 3.10 及以上),通常通过 uvx 或 pip 启动。需要提供 Obsidian 笔记库路径,可在启动时指定或通过配置工具设置。无需运行 Obsidian 应用,也不依赖云服务。Pro 许可证 JWT 为可选项,可通过 HEBBIAN_VAULT_LICENSE 环境变量、命令行参数或配置文件提供。
安装前请注意
搜索和读取调用会增加各文件的检索计数,默认将跟踪数据写入笔记库内的 sidecar 目录;Pro 的 inline-tracking 选项则会把检索计数写入笔记的 frontmatter。Pro 许可证是付费凭证,且购买渠道尚未开放。服务器会直接读取磁盘上的笔记库文件。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

hebbian-vault

MCP server for intelligent, use-adaptive Obsidian vault search.

Your vault remembers what matters. Files you use strengthen. Unused files fade. Hub pages surface first. Search gets better over time.

What it does

Unlike standard Obsidian search (keyword matching), hebbian-vault uses four signals merged via Reciprocal Rank Fusion:

  • BM25 -- keyword relevance (like standard search, but ranked)
  • Personalized PageRank -- graph centrality biased toward your query (hub pages surface first)
  • Hebbian usage -- files you actually use rank higher, with recency decay
  • RRF merge -- combines all signals without weight tuning

Works with any Obsidian vault. No cloud. No Obsidian running required. Direct filesystem access.

Install

bash
pip install hebbian-vault

Usage

Claude Code

bash
claude mcp add hebbian-vault -- hebbian-vault --vault ~/my-vault

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "hebbian-vault": {      "command": "uvx",      "args": ["hebbian-vault", "--vault", "/path/to/vault"]    }  }}

Direct

bash
hebbian-vault --vault ~/my-vault

MCP Tools

ToolDescription
configure_vaultPoint the server at a vault at runtime (if not set via --vault)
vault_searchHybrid ranked search (BM25 + PageRank + Hebbian)
vault_readRead a note with frontmatter, links, and Hebbian metadata
vault_neighborsFind connected notes by wikilinks (1-hop or 2-hop)
vault_hotTop-N most-used files by Hebbian score
vault_statsVault analytics (files, links, orphans, hubs)
vault_healthStructural integrity check (broken links, orphans)

How Hebbian learning works

Every time vault_search or vault_read returns a file, that file's retrieval count increments. Files accessed recently get a recency boost. Files untouched for weeks decay. Over time, the vault develops a "heat signature" -- frequently useful files strengthen, rarely useful files fade.

This is Hebbian learning applied to information retrieval: "neurons that fire together wire together." Your vault adapts to how you actually use it.

Storage

By default, tracking data is stored in a .hebbian/ sidecar directory inside your vault. Your markdown files are not modified.

Pro users can enable --inline-tracking to write retrieval_count directly into YAML frontmatter (visible natively in Obsidian, queryable via Dataview).

Pro tier

The free tier is fully featured for most use. Pro unlocks convenience features for power users:

  • --inline-tracking — write retrieval counts into note frontmatter instead of sidecar files
  • Priority email support from the developer
  • Future premium features ship Pro-unlocked by default

License activation — any one of these works:

bash
# 1. Environment variable (good for shell profiles)export HEBBIAN_VAULT_LICENSE="eyJhbGc..."
# 2. CLI flag (good for one-off testing)hebbian-vault --license-key "eyJhbGc..." --vault ~/my-vault
# 3. Config file (good for permanent install)echo "eyJhbGc..." > ~/.hebbian-vault/license.jwt

Licenses are verified fully offline — no phone-home, no activation server. Get a license: [coming soon — Dodo Payments storefront in verification].

Options

hebbian-vault --vault PATH          Path to Obsidian vault              --inline-tracking     [Pro] Write tracking to file frontmatter              --license-key KEY     Pro license JWT (also reads HEBBIAN_VAULT_LICENSE env)              --transport TYPE      stdio (default) or streamable-http              --port PORT           Port for HTTP transport (default: 8000)

Requirements

  • Python 3.10+
  • An Obsidian vault (any size, wikilinks recommended for graph features)

License

MIT

来源:README.md,提交 57a9569

工具

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

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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