# Obsidian Semantic Search [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/DalecB/obsidian-semantic-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 385  
**Views:** 13  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/obsidian-semantic-search

## Description
Read-only semantic search MCP server for Obsidian vaults using local Ollama embeddings.

## Tools
Capabilities this server exposes over MCP:

- **index_status** — Returns index metadata and safety settings.
- **index_vault** — Builds or updates the external SQLite index.
- **search_notes** — Searches notes with hybrid semantic and keyword ranking.
- **read_note** — Reads a note or line range by vault-relative path.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "obsidian-semantic-search": {
    "command": "npx",
    "args": ["-y","--package","@dalecb/obsidian-semantic-mcp","obsidian-semantic-mcp-setup"],
    "env": {
      "OBSIDIAN_VAULT_ROOT": ""
    }
  }
}
```

**Requires environment variables:** `OBSIDIAN_VAULT_ROOT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/obsidian-semantic-search/readme_

