Obsidian Semantic Search

Semantic search across your Obsidian vaults using local embeddings (Ollama + pgvector). 10 MCP tools: hybrid/semantic/keyword search, file CRUD, batch reads, live re-indexing, and a monitoring dashboard. Fully local — no API keys, no cloud, zero cost.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Obsidian Semantic Search" with this command: npx skills add celstnblacc/obsidian-semantic-search

Obsidian Semantic Search

Search your Obsidian vault by meaning, not just keywords. This skill installs and configures obsidian-semantic-mcp — a local-first MCP server that indexes your vault with vector embeddings (Ollama + pgvector) and exposes 10 tools to any MCP-compatible AI assistant.

What You Get

10 MCP Tools

ToolWhat it does
search_vaultSemantic, keyword, or hybrid search with similarity scores
simple_searchFast exact-text search across all files
list_filesBrowse vault directories
get_fileRead a single file
get_files_batchRead multiple files in one call
append_contentAppend text to a file (creates if missing)
write_fileOverwrite a file completely
recent_changesList recently modified files
list_indexed_notesSee all indexed notes with timestamps
reindex_vaultForce a full re-index

Monitoring Dashboard (port 8484)

  • Real-time service health (PostgreSQL, Ollama, embedding model)
  • Indexed notes count, vault coverage %, database size
  • Search testing UI — test queries without leaving your browser
  • Manual re-index trigger

Search Modes

  • Hybrid (default): Combines semantic meaning + keyword matching for best results
  • Semantic: Search by meaning only — finds related content even with different wording
  • Keyword: Exact text matching via PostgreSQL full-text search

Installation

Prerequisites

  • Docker Desktop (running)
  • uv (Python package manager): curl -LsSf https://astral.sh/uv/install.sh | sh
  • An Obsidian vault on your local filesystem

One-Liner Install

bash <(curl -fsSL https://raw.githubusercontent.com/celstnblacc/obsidian-semantic-mcp/main/install.sh) --mode 2 --vault /path/to/your/vault

This clones the repo to ~/.local/share/obsidian-semantic-mcp, installs the osm CLI, and runs the setup wizard in Docker mode.

Manual Install

git clone https://github.com/celstnblacc/obsidian-semantic-mcp.git
cd obsidian-semantic-mcp
uv sync
uv run osm init

The wizard detects your OS and offers setup modes:

macOS (4 modes):

  • Mode 1: Native (Homebrew — no Docker needed)
  • Mode 2: Docker + host Ollama (if Ollama already installed)
  • Mode 3: Full Docker (recommended — everything in containers)
  • Mode 4: Docker + remote Ollama (SSH tunnel to a GPU server)

Linux (3 modes):

  • Mode 1: Docker + host Ollama
  • Mode 2: Full Docker (recommended)
  • Mode 3: Docker + remote Ollama

Verify Installation

osm status

Should show: Docker containers running, Ollama healthy, embedding model loaded, vault indexed.

Register with Claude Desktop

The wizard auto-configures this, but if you need to do it manually:

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or ~/.config/Claude/claude_desktop_config.json (Linux):

{
  "mcpServers": {
    "obsidian-semantic": {
      "command": "docker",
      "args": ["exec", "-i", "obsidian-semantic-mcp-mcp-server-1", "python3", "src/server.py"]
    }
  }
}

Restart Claude Desktop after adding.

Configuration

Set these in .env or as environment variables:

VariableRequiredDefaultNotes
OBSIDIAN_VAULTYesPath to your vault
OBSIDIAN_VAULTSNoComma-separated paths for multi-vault
POSTGRES_PASSWORDYes (Docker)Database password
EMBEDDING_MODELNonomic-embed-textOllama model (~7GB)
RERANK_MODELNoOptional cross-encoder for better ranking
DASHBOARD_PORTNo8484Monitoring dashboard port

Usage Examples

Once installed, your AI assistant can use these tools naturally:

Semantic search:

"Search my vault for notes about authentication patterns" → Uses search_vault with hybrid mode, returns top 5 matches ranked by meaning

Find and read:

"Find my meeting notes from last week and summarize them" → Uses recent_changes to find files, get_files_batch to read them

Append to a note:

"Add this action item to my project-x.md file" → Uses append_content to add text without overwriting

Re-index after bulk changes:

"I just reorganized my vault, re-index everything" → Uses reindex_vault to rebuild the full index

Maintenance

osm status       # Check health
osm rebuild      # Rebuild Docker images after updates
osm remove       # Stop and clean up everything

Architecture

  • PostgreSQL 17 + pgvector: Stores 768-dim vector embeddings, IVFFlat index for fast cosine similarity search
  • Ollama (nomic-embed-text): Local embedding model — no API keys, no cloud calls
  • Watchdog file watcher: Auto-re-indexes when vault files change (0.5s debounce)
  • LRU cache: 256 entries, 10-min TTL — skips redundant Ollama calls for repeated queries

Troubleshooting

ProblemFix
"Ollama not responding"Run osm status — if Ollama is down, the dashboard has a "Start Ollama" button
Slow first searchFirst query loads the model into memory (~5s). Subsequent queries are <1s
Missing notes in searchRun osm status to check indexing coverage. Use dashboard to trigger re-index
Docker errorsEnsure Docker Desktop is running. Try osm rebuild to rebuild images
VirusTotal "suspicious" warning on installThis is a false positive — the skill describes searching vault content, which triggers pattern detection. Use clawhub install obsidian-semantic-search --force to proceed. The skill is MIT-0 licensed and contains no executable code beyond documentation.

Links


Built by celstnblacc — 207 unit tests, Docker + native install, multi-vault support.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Multi Edge-TTS CN

Edge-TTS 在线语音合成 skill。基于微软 Edge TTS 引擎,生成速度快(1-2秒),支持多种音色和输出格式。同时支持飞书(OGG/Opus)和企业微信(AMR)。默认音色 xiaoxiao_lively。需联网。

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated
General

One Person Company OS

Build a visual operating cockpit for an AI-native one-person company across promise, buyer, product, delivery, cash, learning, and assets. / 为 AI 一人公司建立可视化经营...

Registry SourceRecently Updated
General

健康追踪

健康追踪技能 - 追踪饮水、睡眠、步数等健康数据,JSON存储。

Registry SourceRecently Updated