Server data from the Official MCP Registry
Obsidian MCP server: semantic search, knowledge graph, and vault editing. No plugin required.
Obsidian MCP server: semantic search, knowledge graph, and vault editing. No plugin required.
Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (4/4 approved); 7 highly-trusted packages.
7 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: VAULT_PATH
Environment variable: DATA_DIR
Environment variable: EMBEDDING_PRESET
Environment variable: EMBEDDING_MODEL
Environment variable: EMBEDDING_PROVIDER
Environment variable: OLLAMA_BASE_URL
Environment variable: OLLAMA_EMBEDDING_DIM
Environment variable: OBSIDIAN_BRAIN_NO_WATCH
Environment variable: OBSIDIAN_BRAIN_NO_CATCHUP
Environment variable: OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS
Environment variable: OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS
Environment variable: OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-sweir1-obsidian-brain": {
"env": {
"DATA_DIR": "your-data-dir-here",
"VAULT_PATH": "your-vault-path-here",
"EMBEDDING_MODEL": "your-embedding-model-here",
"OLLAMA_BASE_URL": "your-ollama-base-url-here",
"EMBEDDING_PRESET": "your-embedding-preset-here",
"EMBEDDING_PROVIDER": "your-embedding-provider-here",
"OLLAMA_EMBEDDING_DIM": "your-ollama-embedding-dim-here",
"OBSIDIAN_BRAIN_NO_WATCH": "your-obsidian-brain-no-watch-here",
"OBSIDIAN_BRAIN_NO_CATCHUP": "your-obsidian-brain-no-catchup-here",
"OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS": "your-obsidian-brain-tool-timeout-ms-here",
"OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS": "your-obsidian-brain-watch-debounce-ms-here",
"OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS": "your-obsidian-brain-community-debounce-ms-here"
},
"args": [
"-y",
"obsidian-brain",
"-y"
],
"command": "npx"
}
}
}From the project's GitHub README.
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.
📖 Full docs → sweir1.github.io/obsidian-brain Companion plugin →
sweir1/obsidian-brain-plugin(optional — unlocksactive_note,dataview_query,base_query)
Contents — Why · Quick start · What you get · How it works · Companion plugin · Troubleshooting · Recent releases
.md files directly from disk. Obsidian can be closed; your vault is just a folder.bge-m3, nomic-embed-text, qwen3-embedding-8b, etc. with one env var.npx install — no clone, no build, no API key, no hosted endpoint. Vault content never leaves your machine.Requires Node 20+ and an Obsidian vault (or any folder of .md files — Obsidian itself is optional).
Wire obsidian-brain into your MCP client. Example for Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"obsidian-brain": {
"command": "npx",
"args": ["-y", "obsidian-brain@latest", "server"],
"env": { "VAULT_PATH": "/absolute/path/to/your/vault" }
}
}
}
Quit Claude Desktop (⌘Q on macOS) and relaunch. That's it.
[!NOTE] On first boot the server auto-indexes your vault and downloads a ~34 MB embedding model. Tools may take 30–60 s to appear in the client. Subsequent boots are instant.
[!TIP] Not a developer? The macOS walkthrough covers Homebrew, Node, the GUI-app PATH fix, and Full Disk Access step-by-step.
For every other MCP client (Claude Code, Cursor, VS Code, Jan, Windsurf, Cline, Zed, LM Studio, JetBrains AI, Opencode, Codex CLI, Gemini CLI, Warp): see Install in your MCP client.
→ Full env-var reference: Configuration → Model / preset / Ollama details: Embedding model → Migrating from aaronsb's plugin: Migration guide
17 MCP tools grouped by intent:
search, list_notes, read_notefind_connections, find_path_between, detect_themes, rank_notescreate_note, edit_note, apply_edit_preview, link_notes, move_note, delete_noteactive_note, dataview_query, base_queryreindex→ Arguments, examples, and response shapes: Tool reference
flowchart LR
Client["<b>MCP Client</b><br/>Claude Desktop · Claude Code<br/>Cursor · Jan · Windsurf · ..."]
subgraph OB ["obsidian-brain (Node process)"]
direction TB
SQL["<b>SQLite index</b><br/>nodes · edges<br/>FTS5 · vec0 embeddings"]
Vault["<b>Vault on disk</b><br/>your .md files"]
Vault -->|"parse + embed"| SQL
SQL -.->|"writes"| Vault
end
Client <-->|"stdio JSON-RPC"| OB
Retrieval and writes both go through a SQLite index: reads are microsecond-cheap, writes land on disk immediately and incrementally re-index the affected file. Embeddings are chunk-level (heading-aware recursive chunker preserving code + LaTeX blocks), and search's default hybrid mode fuses chunk-level semantic rank with FTS5 BM25 via Reciprocal Rank Fusion.
→ Deeper write-up — why stdio, why SQLite, why local embeddings: Architecture → Live watcher behaviour + debounces: Live updates → Scheduled reindex (macOS launchd / Linux systemd): Scheduled indexing (macOS) · (Linux)
An optional Obsidian plugin at sweir1/obsidian-brain-plugin exposes live Obsidian runtime state — active editor, Dataview results, Bases rows — over a localhost HTTP endpoint. When installed and Obsidian is running, active_note, dataview_query, and base_query light up. Install via BRAT with repo ID sweir1/obsidian-brain-plugin.
Ship plugin and server at the same major.minor (server 1.6.x ↔ plugin 1.6.x). Patch-version drift is fine.
→ Security model, capability handshake, Dataview / Bases feature coverage: Companion plugin
Four most common:
~/Library/Logs/Claude/mcp-server-obsidian-brain.log. Fix: npm install -g obsidian-brain@latest, quit Claude (⌘Q), relaunch.ERR_DLOPEN_FAILED / NODE_MODULE_VERSION mismatch — better-sqlite3 built against a different Node ABI. Fix: PATH=/opt/homebrew/bin:$PATH npm rebuild -g better-sqlite3.Vault path not configured — VAULT_PATH is unset. Set it in the env block of your client config or shell.npx (e.g. v1.2 when npm shows v1.6) — stale npx cache. Fix: rm -rf ~/.npm/_npx, then restart your client. Keeping @latest in your config prevents this.→ Full troubleshooting guide (watcher not firing, stale index, running multiple clients, timeouts, embedding-dim mismatch, log locations): docs/troubleshooting.md
[[X#Section]] and [[X^block]] now migrate to real notes like bare refs; new edges.target_fragment column.move_note: [[notes/BMW]] now updates to [[cars/BMW & Audi]] on a cross-folder rename.renameNode DB primitive; move_note preserves inbound edges, chunk embeddings, and graph membership across rename (no delete-then-upsert).move_note ghost-link fix: inbound edges targeting _stub/<name>.md are now rewritten through rename; watcher path migrates forward-reference stubs inline.→ Full changelog: docs/CHANGELOG.md · Forward plan: docs/roadmap.md · Build from source: docs/development.md
Thanks to obra/knowledge-graph and aaronsb/obsidian-mcp-plugin for the ideas and code this project draws on. Also Xenova/transformers.js (local embeddings), graphology (graph analytics), and sqlite-vec (vector search in SQLite).
MIT — see LICENSE.
Be the first to review this server!
by Modelcontextprotocol · Productivity
Knowledge graph-based persistent memory across sessions
by Modelcontextprotocol · Productivity
Time and timezone conversion capabilities for your AI assistant
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally