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 分