Skip to content
MCP server

Obsidian Hybrid Search

Local hybrid search over an Obsidian vault for AI agents, CLI and plugin

Runs locally

Obsidian Hybrid Search is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, macOS
Runs
Locally
What it can do
Read-only
Version
0.17.8
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a 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

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

Or share it with your project

Add to .mcp.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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "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

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OBSIDIAN_VAULT_PATHAbsolute path to the Obsidian vault to index and search.Required
  • OBSIDIAN_PREFIXOptional prefix for MCP tool names when configuring multiple vaults.
  • OBSIDIAN_IGNORE_PATTERNSComma-separated glob patterns to exclude from indexing.
  • OBSIDIAN_RESPECT_GITIGNORERead applicable .gitignore files and repository info/exclude rules when indexing; set to false, 0, or no to disable both.
  • OBSIDIAN_INCLUDE_PATTERNSComma-separated patterns to re-include notes ignored only by Git ignore rules.
  • OBSIDIAN_CONTENT_IGNORE_PATTERNSComma-separated regex rules for note body text to leave out of search, e.g. /%%[\s\S]*?%%/g. Original files and read stay unchanged.
  • OPENAI_API_KEYOptional API key for OpenAI-compatible remote embeddings; omit to use local embeddings.
  • OPENAI_BASE_URLOptional OpenAI-compatible API base URL for OpenRouter, Ollama, LM Studio, or similar providers.
  • OPENAI_EMBEDDING_MODELRemote embedding model name when using an OpenAI-compatible API.
  • LOCAL_EMBEDDING_MODELLocal embedding model used when no remote embedding API is configured.
  • RERANKER_MODELOptional ONNX cross-encoder reranker model used when reranking is requested.

About Obsidian Hybrid Search

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.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

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.

readName suggests: reads
Fetches one or more notes by vault-relative path with title, aliases, tags, links and backlinks.

What it does

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

Pricing

Open source

More servers for the same service

Obsidian Hybrid Search 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.

How AIPoweredBot checks servers