# Obsidian Hybrid Search

> Obsidian Hybrid Search is an open-source MCP server for knowledge and memory. Local hybrid search over an Obsidian vault for AI agents, CLI and plugin. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/flowing-abyss/obsidian-hybrid-search
- **MCP Registry name:** io.github.flowing-abyss/obsidian-hybrid-search
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Obsidian Hybrid Search indexes a vault into SQLite and blends BM25 full text, fuzzy title and alias matching, and semantic embeddings, merged with reciprocal rank fusion. It also understands tags, folders, frontmatter, wikilinks and backlinks, so an agent can search by idea, phrase or relationship instead of exact wording.

Embeddings run locally by default with a multilingual E5 model, so no API key is needed. You can point it at an OpenAI-compatible endpoint such as OpenRouter or Ollama instead, and optionally add an ONNX cross-encoder reranker. Indexing is incremental and watches for edits. Setting an environment prefix lets one agent run several vaults side by side.

The same engine ships as an npm CLI called ohs and a separate Obsidian plugin. The README reports benchmark numbers on the Obsidian Help vault, a set of evergreen notes and a larger LongMemEval-derived vault; treat these as the author's own results.

## Features

- **Hybrid ranking:** Combines BM25, fuzzy title and semantic scores with reciprocal rank fusion.
- **Graph traversal:** Follows links and backlinks to related notes at a chosen depth.
- **Multi-query fan-out:** Merges results from several queries so differently worded notes still surface.
- **Local or remote embeddings:** Runs offline by default, or uses an OpenAI-compatible API.
- **Optional reranking:** Re-scores results with a cross-encoder for conceptual and multilingual queries.
- **Scoped filtering:** Restricts search by folder or tag, with exclusions.
- **Incremental indexing:** Re-indexes only changed files and watches for edits.

## Good for

- Let a coding agent pull cited context from personal notes
- Find notes related to the one you are writing
- Search a multilingual vault by meaning rather than keywords
- Run separate searches across several vaults
- Script vault lookups from the command line

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add obsidian-hybrid-search --env OBSIDIAN_VAULT_PATH='<OBSIDIAN_VAULT_PATH>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- npx -y obsidian-hybrid-search
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add obsidian-hybrid-search --env OBSIDIAN_VAULT_PATH='<OBSIDIAN_VAULT_PATH>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- npx -y obsidian-hybrid-search
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.obsidian-hybrid-search]
command = "npx"
args = ["-y", "obsidian-hybrid-search"]
env = { OBSIDIAN_VAULT_PATH = "<OBSIDIAN_VAULT_PATH>", OPENAI_API_KEY = "<OPENAI_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e OBSIDIAN_VAULT_PATH='<OBSIDIAN_VAULT_PATH>' -e OPENAI_API_KEY='<OPENAI_API_KEY>' obsidian-hybrid-search npx -- -y obsidian-hybrid-search

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "obsidian-hybrid-search": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-hybrid-search"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>",
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 1 tool only read data. From the server's own tool labels and tool names; not verified by us.

- `read` (name suggests: reads): Fetches one or more notes by vault-relative path with title, aliases, tags, links and backlinks.

## FAQ

### Does Obsidian Hybrid Search need an API key?

No. It uses local embeddings by default; an OpenAI-compatible key is optional.

### What must I configure?

OBSIDIAN_VAULT_PATH, the absolute path to the vault.

### Can Obsidian Hybrid Search exclude files?

Yes. Ignore patterns default to .obsidian, templates and canvas files, and it can also respect .gitignore.

### How do I install Obsidian Hybrid Search?

Run npm install -g obsidian-hybrid-search, then ohs reindex to build the index.

### Is Obsidian Hybrid Search free?

Yes. Obsidian Hybrid Search is open source, so you can use and self-host it for free.

### How do I add Obsidian Hybrid Search to Claude Code?

Run this command in your terminal: claude mcp add obsidian-hybrid-search --env OBSIDIAN_VAULT_PATH='<OBSIDIAN_VAULT_PATH>' --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- npx -y obsidian-hybrid-search

### What are the best alternatives to Obsidian Hybrid Search?

The closest alternatives to Obsidian Hybrid Search are Codebase Memory, XERJ, Ha MCP, Claude Code Ultimate Guide and Concord MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/obsidian-hybrid-search
