Obsidian Semantic Search logo

Obsidian Semantic Search

Read-only MCP retrieval for Obsidian vaults, combining local Ollama embeddings with SQLite-backed semantic and keyword search.

Install Obsidian Semantic Search

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "obsidian-semantic-search": {
      "command": "npx",
      "args": [
        "-y",
        "--package",
        "@dalecb/obsidian-semantic-mcp",
        "obsidian-semantic-mcp-setup"
      ],
      "env": {
        "OBSIDIAN_VAULT_ROOT": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

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.

npx -y --package @dalecb/obsidian-semantic-mcp obsidian-semantic-mcp-setup

Process exited before answering 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

Obsidian Semantic Search MCP server indexes Markdown notes from an Obsidian vault and exposes read-only retrieval tools over MCP. It uses Ollama embeddings, SQLite, heading-based chunks, and hybrid semantic/keyword ranking to return file paths, snippets, headings, and line ranges. Use it when an agent needs to locate and read vault content without write, edit, delete, or Obsidian plugin access. The server runs locally through Node.js and can incrementally update its index after Markdown changes.

Use cases

  • Find notes related to a project decision
  • Search for past technical discussions by meaning
  • Read a selected note or line range
  • Index changed Markdown files incrementally
  • Inspect vault content without allowing mutations

Key features

  • Read-only Obsidian vault access
  • Hybrid semantic and keyword search
  • Local Ollama embeddings
  • External SQLite index
  • Heading-aware chunks and line ranges
  • Incremental vault indexing

Tools4

What Obsidian Semantic Search lets your agent do. Expand a tool for its parameters.

Self-reported~59 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.

32/32 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @dalecb/obsidian-semantic-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads385Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed4Callable tools this server registers over MCP.
Directory activity13 viewsConfig copies, upvotes, and views on AllMCPs.

How Obsidian Semantic Search works

What Obsidian Semantic Search MCP server does

Obsidian Semantic Search MCP server gives MCP clients a read-only way to search and inspect an Obsidian vault. It reads Markdown files directly from the filesystem, so Obsidian does not need to be open and no plugin runtime or REST API is required. The vault remains the source of truth; the server keeps a separate SQLite index that can be rebuilt or deleted.

The available operations are limited to status, indexing, searching, and reading. There are no tools for creating, editing, moving, renaming, or deleting notes. This makes the server suitable when an agent should retrieve supporting context while leaving the vault unchanged.

Search results are grouped at the file level and can include the vault-relative path, title, score, matching headings, snippets, and line ranges. Queries can target topics expressed in different words from the note text, or use exact keyword-oriented matching when that is more appropriate.

How it works

The indexing process scans Markdown files below OBSIDIAN_VAULT_ROOT, checks path boundaries, rejects symlink escapes, and divides notes using Markdown headings. It also creates a summary chunk for each file. Chunks are embedded through Ollama, using the configured embedding model, and stored with note metadata, full-text-search rows, and vectors in SQLite.

search_notes can trigger incremental indexing on the first search and after detected Markdown changes. In hybrid mode, it combines vector similarity with SQLite FTS5 keyword scores and metadata boosts based on titles, paths, and headings. Semantic-only and keyword-only modes are also available. Matching chunks are regrouped into file-level results for the MCP client.

The default database location is ~/.obsidian-semantic-mcp/data/semantic.sqlite. Embeddings and index data remain local by default, although the Ollama endpoint can be configured.

Setup and configuration

Obsidian Semantic Search MCP server requires Node.js 24 or newer, Ollama, and an Obsidian vault. Install an embedding model such as bge-m3 with Ollama before using search or indexing. The package can be started through npx using @dalecb/obsidian-semantic-mcp.

Set OBSIDIAN_VAULT_ROOT to the vault directory. The examples also configure OBSIDIAN_SEMANTIC_MCP_HOME for index storage, OLLAMA_BASE_URL for the local Ollama service, OBSIDIAN_EMBED_MODEL for the embedding model, and OBSIDIAN_SEMANTIC_AUTO_INDEX to control automatic indexing behavior.

After configuration, restart the client where required and use index_status to verify the connection and index state.

Tools and capabilities

  • index_status reports index metadata and safety settings.
  • index_vault builds or updates the external SQLite index. It supports incremental indexing and can target specific vault-relative paths.
  • search_notes searches notes using hybrid, semantic, or keyword modes and accepts a result limit.
  • read_note reads a complete note or a selected line range from a vault-relative path.

The main retrieval flow is to index the vault, search for a topic or phrase, then read the relevant note or line range returned by the search.

Limitations and notes

This is an early preview, version 0.3.1, so ranking behavior and tool schemas may change before version 1.0. It is not an Obsidian interface plugin, an automatic note-generation system, or a write-capable vault automation tool. Its scope is retrieval from Markdown notes, with indexing performed outside the vault in SQLite.

The server depends on a working local Ollama installation and an available embedding model. It is intended for local, read-only retrieval rather than synchronized cloud storage or broader multi-source knowledge compilation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Obsidian Semantic Search

Obsidian Semantic Search is an MCP server that connects AI clients to an Obsidian vault through local filesystem reads, Ollama embeddings, and a SQLite index. Its main tools are index_status, index_vault, search_notes, and read_note, providing read-only indexing, hybrid search, and note or line-range retrieval without write access.

Install and run it with Node.js 24 or newer through npx using the @dalecb/obsidian-semantic-mcp package. Install Ollama and an embedding model such as bge-m3, then configure the server in your MCP client with OBSIDIAN_VAULT_ROOT and the relevant Ollama settings.

Yes, Cursor can use the server through the same JSON-style stdio MCP configuration shown for Claude Desktop. Configure the npx command and environment variables, including the vault path and Ollama settings, then reconnect or restart Cursor as needed.

No, it exposes read-only retrieval and indexing operations. The available tools search, read, index, and report status; they do not create, edit, patch, move, rename, or delete notes.

Hybrid mode combines vector similarity from Ollama embeddings with SQLite FTS5 keyword matching and metadata boosts for titles, paths, and headings. The server also supports semantic-only and keyword-only modes, then groups matching chunks into file-level results.

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 PreviewObsidian Semantic Search AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/obsidian-semantic-search?style=directory)](https://allmcps.com/mcp/obsidian-semantic-search)
HTML Embed
<a href="https://allmcps.com/mcp/obsidian-semantic-search"><img src="https://allmcps.com/api/badge/obsidian-semantic-search?style=directory" alt="Obsidian Semantic Search on AllMCPs" /></a>