Hebbian Vault logo

Hebbian Vault

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

Install Hebbian Vault

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hebbian-vault": {
      "command": "uvx",
      "args": [
        "hebbian-vault"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx hebbian-vault

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Tools7

What Hebbian Vault lets your agent do. Expand a tool for its parameters.

Self-reported~109 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · hebbian-vault (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit7mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed7Callable tools this server registers over MCP.

From the project 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

Terminal
pip install hebbian-vault

Usage

Claude Code

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

Claude Desktop

Add to claude_desktop_config.json:

config.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:

server.ts
# 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

Code
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

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Hebbian Vault

hebbian-vault is an MCP server that provides usage-adaptive search for Obsidian vaults. It combines BM25 keyword relevance, personalized PageRank, Hebbian usage signals, and Reciprocal Rank Fusion to rank notes. It accesses vault files directly, requires no running Obsidian instance or cloud service, and exposes search, reading, graph, usage, and health tools through MCP.

Install hebbian-vault with `pip install hebbian-vault`, then run `hebbian-vault --vault ~/my-vault`. For Claude Code, use `claude mcp add hebbian-vault -- hebbian-vault --vault ~/my-vault`; for Claude Desktop, configure the server with the `uvx` command and a vault path.

hebbian-vault ranks notes by merging BM25 keyword relevance, personalized PageRank, and Hebbian usage signals with Reciprocal Rank Fusion. Frequently retrieved files receive a usage and recency boost, while files untouched for weeks decay; graph hubs can also surface prominently.

The server provides `vault_search` for hybrid ranking, `vault_read` for note content and metadata, `vault_neighbors` for linked notes, `vault_hot` for frequently used files, `vault_stats` for vault analytics, `vault_health` for broken-link and orphan checks, and `configure_vault` for runtime vault configuration.

By default, hebbian-vault stores tracking data in a `.hebbian/` sidecar directory inside the vault without modifying Markdown files. Pro users can enable `--inline-tracking` to write `retrieval_count` into note YAML frontmatter.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHebbian Vault AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hebbian-vault?style=directory)](https://allmcps.com/mcp/hebbian-vault)
HTML Embed
<a href="https://allmcps.com/mcp/hebbian-vault"><img src="https://allmcps.com/api/badge/hebbian-vault?style=directory" alt="Hebbian Vault on AllMCPs" /></a>