Obsidian Brain MCP Server
Obsidian MCP server: semantic search, knowledge graph, and vault editing. No plugin required.
Obsidian Brain scores 45 (Fair), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Search, Productivity. GitHub shows 14 stars. Package registries report about 220 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: apache-2.0.
License, quality and maintenance
Where the 45 comes from
0 + 20 + 8 + 10 + 4 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "sweir1-obsidian-brain": { "command": "npx", "args": [ "-y", "obsidian-brain@1.8.5" ], "env": { "VAULT_PATH": "", "DATA_DIR": "", "EMBEDDING_PRESET": "english", "EMBEDDING_MODEL": "", "EMBEDDING_PROVIDER": "transformers", "OLLAMA_BASE_URL": "http://localhost:11434", "OLLAMA_EMBEDDING_DIM": "", "OLLAMA_NUM_CTX": "", "OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL": "", "OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL": "", "EMBEDDING_BASE_URL": "http://localhost:8080", "EMBEDDING_DIM": "", "EMBEDDING_API_KEY": "", "OBSIDIAN_BRAIN_NO_WATCH": "", "OBSIDIAN_BRAIN_NO_CATCHUP": "", "OBSIDIAN_BRAIN_IGNORE": "", "OBSIDIAN_BRAIN_HONOR_EXCLUDED_FILES": "", "OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS": "3000", "OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS": "60000", "OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS": "30000", "OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS": "", "OBSIDIAN_BRAIN_CONFIG_DIR": "", "OBSIDIAN_BRAIN_DEBUG": "", "OBSIDIAN_BRAIN_LOG_FORMAT": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
VAULT_PATH | Required | Absolute path to your Obsidian vault (or any folder of .md files). |
DATA_DIR | Optional | Where to store the SQLite index. Defaults to $XDG_DATA_HOME/obsidian-brain or ~/.local/share/obsidian-brain. (Downloaded embedding models live in the transformers.js cache — set TRANSFORMERS_CACHE to move it.) |
EMBEDDING_PRESET | Optional | Preset name: english (default, bge-small-en-v1.5), english-fast, english-quality, multilingual, multilingual-quality, multilingual-ollama, multilingual-openai. Ignored when EMBEDDING_MODEL is set. |
EMBEDDING_MODEL | Optional | Power-user override: any transformers.js checkpoint, Ollama model id, or — for EMBEDDING_PROVIDER=openai-compatible — the id of the model the server has loaded. Takes precedence over EMBEDDING_PRESET. Switching auto-reindexes. |
EMBEDDING_PROVIDER | Optional | Embedding backend. 'transformers' (local, default), 'ollama' (requires a running Ollama server), or 'openai-compatible' (any server speaking POST /v1/embeddings — llama.cpp's llama-server, LM Studio, vLLM, text-embeddings-inference, or OpenAI itself). Aliases for the last one: openai, llamacpp, llama-cpp, llama.cpp, lmstudio, lm-studio, vllm, tei. |
OLLAMA_BASE_URL | Optional | Base URL of a local Ollama server. Only used when EMBEDDING_PROVIDER=ollama. |
OLLAMA_EMBEDDING_DIM | Optional | Override the embedding dimensionality when EMBEDDING_PROVIDER=ollama. If unset, the server probes the model on startup. |
OLLAMA_NUM_CTX | Optional | 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 imposes a hard cap and may silently truncate longer inputs — see https://github.com/ollama/ollama/issues/14259. Ollama's own default is 2048 which truncates for any model trained on a larger context. See also https://github.com/ollama/ollama/issues/7008. Fallback when both env is unset AND /api/show is unreachable: 8192. |
OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL | Optional | Auto-pull the configured Ollama model when /api/show returns 404 (model not present). Default ON — choosing an Ollama-backed preset is implicit consent to download its model. Streams /api/pull progress to stderr. Set to '0' to disable auto-pull entirely (master kill-switch) and fall back to the actionable error path (`HTTP 404 — try: ollama pull <model>`). |
OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL | Optional | Opt-in to auto-pull for BYOM (custom EMBEDDING_MODEL) Ollama models OUTSIDE Ollama's official `library/` namespace. Default OFF — third-party models (e.g. `user/custom-fork`, `myregistry.com/team/model`) require this env var to be set to `1` before they will auto-pull, to prevent silent downloads of arbitrary user-named artifacts. Preset-known models (via EMBEDDING_PRESET) and bare model ids in the official library (e.g. `qwen3-embedding:0.6b`, `library/llama3:8b`) continue to auto-pull by default per the existing OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL behavior. |
EMBEDDING_BASE_URL | Optional | Base URL of an OpenAI-compatible embedding server. Only used when EMBEDDING_PROVIDER=openai-compatible (or one of its aliases). A trailing '/v1' is optional — it is stripped so both spellings work. Example for llama.cpp: llama-server -m model.gguf --embedding --pooling last --port 8080. |
EMBEDDING_DIM | Optional | Override the embedding dimensionality when EMBEDDING_PROVIDER=openai-compatible. If unset, the server learns it by spending one throwaway embed at startup — the OpenAI protocol has no metadata endpoint to ask. Well-known dims: Qwen3-Embedding-0.6B = 1024, Qwen3-Embedding-4B = 2560, Qwen3-Embedding-8B = 4096, bge-m3 = 1024. |
EMBEDDING_API_KEY | Optional | Bearer token sent to an OpenAI-compatible embedding server. Only used when EMBEDDING_PROVIDER=openai-compatible. Leave unset for a local llama.cpp / LM Studio server, which needs no auth; required when pointing at a hosted endpoint. |
OBSIDIAN_BRAIN_NO_WATCH | Optional | Set to '1' to disable the live chokidar file watcher. Useful on SMB/NFS vaults where FSEvents/inotify don't fire reliably — fall back to running `obsidian-brain index` on a schedule (launchd/systemd). |
OBSIDIAN_BRAIN_NO_CATCHUP | Optional | Set to '1' to skip the startup catchup reindex pass that picks up edits made while the server was down. The live file watcher still starts (via OBSIDIAN_BRAIN_NO_WATCH=1 to disable that separately), and first-time indexing on an empty DB is unaffected — this knob only governs the post-restart `enqueueBackgroundReindex` walk. |
OBSIDIAN_BRAIN_IGNORE | Optional | Folders or files to keep out of the index, in .gitignore syntax: a comma- or newline-separated list, or a JSON array for names that contain commas (e.g. `Claude outputs/, Templates/`). Same rules as a `.obsidianbrainignore` file at the vault root, applied after it. Excluded notes stay on disk; already-indexed ones are removed on the next catch-up or reindex. |
OBSIDIAN_BRAIN_HONOR_EXCLUDED_FILES | Optional | Set to '1' to also skip everything listed in Obsidian's Settings → Files and links → Excluded files (read from `.obsidian/app.json`), matched the way Obsidian matches them. Off by default. |
OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS | Optional | Per-file reindex debounce for the live watcher, in milliseconds. |
OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS | Optional | Graph-wide community-detection (Louvain) debounce for the live watcher, in milliseconds. Louvain is the only expensive op — batching it prevents per-edit CPU spikes. |
OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS | Optional | Per-tool-call timeout in milliseconds. Tools exceeding this return an MCP error instead of hanging. Applies to every tool except `reindex`, which keeps its own 10-minute default unless OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS_REINDEX is set. |
OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS | Optional | Override the chunk-size budget (in tokens). When set, this beats the capacity probed from the model's tokenizer or Ollama /api/show, and the 512-token cap applied to models whose window exceeds 1,024 tokens. Use to choose larger chunks for a long-context model, or for models with stale tokenizer configs. |
OBSIDIAN_BRAIN_CONFIG_DIR | Optional | Override the per-user config directory where obsidian-brain stores model overrides (`model-overrides.json`) and the user-fetched seed (`seed-models.json`). Default is `$XDG_CONFIG_HOME/obsidian-brain` on macOS/Linux (or `~/.config/obsidian-brain`) and `%APPDATA%/obsidian-brain` on Windows. Both files survive `npm update obsidian-brain` because they live outside the package. |
OBSIDIAN_BRAIN_DEBUG | Optional | Set to "1" to print a verbose synchronous startup trace to stderr — every preflight, createContext, server.connect, and shutdown step is logged with a monotonic timestamp. The LAST line before any silent failure tells you exactly which step the server reached. No-op when unset (no overhead). Use to diagnose silent-crash failure modes. |
OBSIDIAN_BRAIN_LOG_FORMAT | Optional | Set to 'ndjson' for one-JSON-object-per-line stderr output (timestamp + level + message + structured fields). Default is human-readable plain text (`obsidian-brain: <message>`). Useful for piping logs into aggregators (Datadog, Loki, Vector, journald) that index structured fields. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Standalone Node MCP server: semantic search + knowledge graph + vault editing for Obsidian, no plugin required
Frequently asked questions
What is Obsidian Brain MCP Server?
Obsidian MCP server: semantic search, knowledge graph, and vault editing. No plugin required.
How do I install Obsidian Brain MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Obsidian Brain MCP Server runs locally from the npm package obsidian-brain with the command npx -y obsidian-brain@1.8.5.
Is Obsidian Brain MCP Server free and open source?
Yes. Obsidian Brain MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Obsidian Brain MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Obsidian Brain MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Obsidian Brain MCP Server's trust score calculated?
Obsidian Brain MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.