Obsidian MCP server: semantic search, knowledge graph, and vault editing. No plugin required.
registry version 1.7.24
npm
npx -y obsidian-brainnpm
npx -y obsidian-brain@1.7.24
Pick your client β the config below is generated for this server (local stdio). Copy respects the βPin versionβ switch above.
claude_desktop_config.json
{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain@1.7.24"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}Format verified against the official Claude Desktop docs β.
terminal
claude mcp add --env VAULT_PATH=<YOUR_VAULT_PATH> obsidian-brain -- npx -y obsidian-brain
claude mcp add --env VAULT_PATH=<YOUR_VAULT_PATH> obsidian-brain -- npx -y obsidian-brain@1.7.24
Format verified against the official Claude Code docs β.
.cursor/mcp.json
{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain@1.7.24"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}Format verified against the official Cursor docs β.
.vscode/mcp.json
{
"servers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}{
"servers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain@1.7.24"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}Format verified against the official VS Code docs β.
mcp_config.json
{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": [
"-y",
"obsidian-brain@1.7.24"
],
"env": {
"VAULT_PATH": "<YOUR_VAULT_PATH>"
}
}
}
}Format verified against the official Windsurf docs β.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_β¦> placeholders in the configs above.
VAULT_PATH required β Absolute path to your Obsidian vault (or any folder of .md files).DATA_DIR β Where to store the SQLite index + embedding cache. Defaults to $XDG_DATA_HOME/obsidian-brain or ~/.local/share/obsidian-brain.EMBEDDING_PRESET β Preset name: english (default, bge-small-en-v1.5), english-fast, english-quality, multilingual, multilingual-quality, multilingual-ollama. Ignored when EMBEDDING_MODEL is set.EMBEDDING_MODEL β Power-user override: any transformers.js checkpoint or Ollama model id. Takes precedence over EMBEDDING_PRESET. Switching auto-reindexes.EMBEDDING_PROVIDER β Embedding backend. 'transformers' (local, default) or 'ollama' (requires a running Ollama server).OLLAMA_BASE_URL β Base URL of a local Ollama server. Only used when EMBEDDING_PROVIDER=ollama.OLLAMA_EMBEDDING_DIM β Override the embedding dimensionality when EMBEDDING_PROVIDER=ollama. If unset, the server probes the model on startup.OLLAMA_NUM_CTX β Override Ollama's num_ctx for embed requests. Leave UNSET to let obsidian-brain auto-detect via `/api/show`'s `context_length` (e.g. nomic-embed-text=2048, bge-m3=8192, qwen3-embedding:0.6b=32 768). Setting this manuallyβ 12 stars Β· ζθΏζ΄ζ°δΊ 91 倩ε Β· Apache-2.0 license
obsidian brain A standalone Node MCP server that gives Claude (and any other MCP client) semantic search + knowledge graph + vault editing over an Obsidian vault. Runs as one local stdio process β no plugin, no HTTP bridge, no API key, nothing hosted. Your vault content never leaves your machine. πβ¦
Summary from the project README β github.com/sweir1/obsidian-brain
Distributed as npm, listed under Productivity. Review our MCP security guide before granting access to real data.
obsidian brain A standalone Node MCP server that gives Claude (and any other MCP client) semantic search + knowledge graph + vault editing over an Obsidian vault. Runs as one local stdio process β no plugin, no HTTP bridge, no API key, nothing hosted. Your vault content never leaves your machine. π
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/sweir1/obsidian-brain. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site β copy either snippet.
Markdown
[](https://mcpnav.net/server/obsidian-brain/)
HTML
<a href="https://mcpnav.net/server/obsidian-brain/"><img src="https://mcpnav.net/badge/obsidian-brain.svg" alt="Listed on MCPNav" height="20"></a>