原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Obsidian Brain

作者:sweir1版本 1.7.24i★ –i在你的电脑上运行
注册名称io.github.sweir1/obsidian-brain

安装

概览

作者提供的说明(英文原文)

Obsidian MCP server: semantic search, knowledge graph, and vault editing. No plugin required.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公
  • 你需要填写:VAULT_PATH

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: VAULT_PATH, DATA_DIR, EMBEDDING_PRESET, EMBEDDING_MODEL, EMBEDDING_PROVIDER, OLLAMA_BASE_URL, OLLAMA_EMBEDDING_DIM, OLLAMA_NUM_CTX, OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL, OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL, OBSIDIAN_BRAIN_NO_WATCH, OBSIDIAN_BRAIN_NO_CATCHUP, OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS, OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS, OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS, OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS, OBSIDIAN_BRAIN_CONFIG_DIR, OBSIDIAN_BRAIN_DEBUG, OBSIDIAN_BRAIN_LOG_FORMAT

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "obsidian-brain": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-brain",
        "server"
      ],
      "env": {
        "VAULT_PATH": "your-value",
        "DATA_DIR": "your-value",
        "EMBEDDING_PRESET": "your-value",
        "EMBEDDING_MODEL": "your-value",
        "EMBEDDING_PROVIDER": "your-value",
        "OLLAMA_BASE_URL": "your-value",
        "OLLAMA_EMBEDDING_DIM": "your-value",
        "OLLAMA_NUM_CTX": "your-value",
        "OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL": "your-value",
        "OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL": "your-value",
        "OBSIDIAN_BRAIN_NO_WATCH": "your-value",
        "OBSIDIAN_BRAIN_NO_CATCHUP": "your-value",
        "OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS": "your-value",
        "OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS": "your-value",
        "OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS": "your-value",
        "OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS": "your-value",
        "OBSIDIAN_BRAIN_CONFIG_DIR": "your-value",
        "OBSIDIAN_BRAIN_DEBUG": "your-value",
        "OBSIDIAN_BRAIN_LOG_FORMAT": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add obsidian-brain --env VAULT_PATH=your-value --env DATA_DIR=your-value --env EMBEDDING_PRESET=your-value --env EMBEDDING_MODEL=your-value --env EMBEDDING_PROVIDER=your-value --env OLLAMA_BASE_URL=your-value --env OLLAMA_EMBEDDING_DIM=your-value --env OLLAMA_NUM_CTX=your-value --env OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL=your-value --env OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL=your-value --env OBSIDIAN_BRAIN_NO_WATCH=your-value --env OBSIDIAN_BRAIN_NO_CATCHUP=your-value --env OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS=your-value --env OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS=your-value --env OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS=your-value --env OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS=your-value --env OBSIDIAN_BRAIN_CONFIG_DIR=your-value --env OBSIDIAN_BRAIN_DEBUG=your-value --env OBSIDIAN_BRAIN_LOG_FORMAT=your-value -- npx -y obsidian-brain server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "obsidian-brain": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-brain",
        "server"
      ],
      "env": {
        "VAULT_PATH": "your-value",
        "DATA_DIR": "your-value",
        "EMBEDDING_PRESET": "your-value",
        "EMBEDDING_MODEL": "your-value",
        "EMBEDDING_PROVIDER": "your-value",
        "OLLAMA_BASE_URL": "your-value",
        "OLLAMA_EMBEDDING_DIM": "your-value",
        "OLLAMA_NUM_CTX": "your-value",
        "OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL": "your-value",
        "OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL": "your-value",
        "OBSIDIAN_BRAIN_NO_WATCH": "your-value",
        "OBSIDIAN_BRAIN_NO_CATCHUP": "your-value",
        "OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS": "your-value",
        "OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS": "your-value",
        "OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS": "your-value",
        "OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS": "your-value",
        "OBSIDIAN_BRAIN_CONFIG_DIR": "your-value",
        "OBSIDIAN_BRAIN_DEBUG": "your-value",
        "OBSIDIAN_BRAIN_LOG_FORMAT": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "obsidian-brain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "obsidian-brain",
        "server"
      ],
      "env": {
        "VAULT_PATH": "your-value",
        "DATA_DIR": "your-value",
        "EMBEDDING_PRESET": "your-value",
        "EMBEDDING_MODEL": "your-value",
        "EMBEDDING_PROVIDER": "your-value",
        "OLLAMA_BASE_URL": "your-value",
        "OLLAMA_EMBEDDING_DIM": "your-value",
        "OLLAMA_NUM_CTX": "your-value",
        "OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL": "your-value",
        "OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL": "your-value",
        "OBSIDIAN_BRAIN_NO_WATCH": "your-value",
        "OBSIDIAN_BRAIN_NO_CATCHUP": "your-value",
        "OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS": "your-value",
        "OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS": "your-value",
        "OBSIDIAN_BRAIN_TOOL_TIMEOUT_MS": "your-value",
        "OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS": "your-value",
        "OBSIDIAN_BRAIN_CONFIG_DIR": "your-value",
        "OBSIDIAN_BRAIN_DEBUG": "your-value",
        "OBSIDIAN_BRAIN_LOG_FORMAT": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • VAULT_PATH 必填 env
    Absolute path to your Obsidian vault (or any folder of .md files).
  • DATA_DIR env
    Where to store the SQLite index + embedding cache. Defaults to $XDG_DATA_HOME/obsidian-brain or ~/.local/share/obsidian-brain.
  • EMBEDDING_PRESET env
    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 env
    Power-user override: any transformers.js checkpoint or Ollama model id. Takes precedence over EMBEDDING_PRESET. Switching auto-reindexes.
  • EMBEDDING_PROVIDER env
    Embedding backend. 'transformers' (local, default) or 'ollama' (requires a running Ollama server).
  • OLLAMA_BASE_URL env
    Base URL of a local Ollama server. Only used when EMBEDDING_PROVIDER=ollama.
  • OLLAMA_EMBEDDING_DIM env
    Override the embedding dimensionality when EMBEDDING_PROVIDER=ollama. If unset, the server probes the model on startup.
  • OLLAMA_NUM_CTX env
    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).…
  • OBSIDIAN_BRAIN_OLLAMA_AUTO_PULL env
    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 progre…
  • OBSIDIAN_BRAIN_OLLAMA_BYOM_AUTO_PULL env
    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/mod…
  • OBSIDIAN_BRAIN_NO_WATCH env
    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 env
    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),…
  • OBSIDIAN_BRAIN_WATCH_DEBOUNCE_MS env
    Per-file reindex debounce for the live watcher, in milliseconds.
  • OBSIDIAN_BRAIN_COMMUNITY_DEBOUNCE_MS env
    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 env
    Per-tool-call timeout in milliseconds. Tools exceeding this return an MCP error instead of hanging.
  • OBSIDIAN_BRAIN_MAX_CHUNK_TOKENS env
    Override the adaptive chunk-size budget (in tokens). When set, this beats the capacity probed from the model's tokenizer or Ollama /api/show. Use for debugging or for models with stale tokenizer conf…
  • OBSIDIAN_BRAIN_CONFIG_DIR env
    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…
  • OBSIDIAN_BRAIN_DEBUG env
    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 si…
  • OBSIDIAN_BRAIN_LOG_FORMAT env
    Set to 'ndjson' for one-JSON-object-per-line stderr output (timestamp + level + message + structured fields). Default is human-readable plain text (`obsidian-brain: `). Useful for piping logs into ag…

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 sweir1 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 2200 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2200 个服务器的 10% 更新
  • 基础检查结果等于或优于此分类中其他 2200 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Obsidian Brain 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:VAULT_PATH

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.7.24)于6个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT7天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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.

📖 Full docs → [sweir1.github.io/obsidian-brain](https://sweir1.github.io/obsidian-brain/)

Companion plugin → sweir1/obsidian-brain-plugin (optional — unlocks active_note, dataview_query, base_query)

Contents — Why · Quick start · What you get · How it works · Companion plugin · Troubleshooting · Recent releases

Why obsidian-brain?

  • Works without Obsidian running — unlike Local REST API-based servers, obsidian-brain reads .md files directly from disk. Obsidian can be closed; your vault is just a folder.
  • No Local REST API plugin required — nothing to install inside Obsidian for the core experience.
  • Chunk-level semantic search with RRF hybrid retrieval — embeddings at markdown-heading granularity, fused with FTS5 BM25 via Reciprocal Rank Fusion. Finds the exact chunk, ranks on meaning.
  • The only Obsidian MCP server with PageRank + Louvain + graph analytics — ask for your vault's most influential notes, bridging notes, theme clusters. Nobody else ships this.
  • Ollama provider for high-quality local embeddings — switch to qwen3-embedding:0.6b, nomic-embed-text, bge-m3, etc. with one env var.
  • All in one `npx` install — no clone, no build, no API key, no hosted endpoint. Vault content never leaves your machine.

Quick start

One-line install (macOS + Claude Desktop)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/sweir1/obsidian-brain/main/scripts/install.sh)"

Installs Homebrew + Node 20+ if you don't already have them, adds the /usr/local/bin symlinks that Claude Desktop needs, merges obsidian-brain into your claude_desktop_config.json, opens the Full Disk Access pane for you to toggle Claude on, and relaunches Claude. You'll be asked for your macOS password once (for Homebrew + the symlinks) and your vault path once. Everything else is automatic. Audit what it does: scripts/install.sh.

Manual install

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

What you get

18 MCP tools grouped by intent:

  • Find & read — search, list_notes, read_note
  • Understand the graph — find_connections, find_path_between, detect_themes, rank_notes
  • Write — create_note, edit_note, apply_edit_preview, link_notes, move_note, delete_note
  • Live editor (requires companion plugin) — active_note, dataview_query, base_query
  • Maintenance — reindex, index_status

→ Arguments, examples, and response shapes: Tool reference

How it works

flowchart LR

Client[" MCP Client Claude Desktop · Claude Code Cursor · Jan · Windsurf · ..."]

subgraph OB ["obsidian-brain (Node process)"] direction TB SQL[" SQLite index nodes · edges FTS5 · vec0 embeddings"] Vault[" Vault on disk 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)

Companion plugin (optional)

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 v1.7.x pairs with plugin v1.7.x. Patch-version drift is fine.

→ Security model, capability handshake, Dataview / Bases feature coverage: Companion plugin

Troubleshooting

Four most common:

  • "Connector has no tools available" in Claude Desktop — usually the server crashed at startup. Check ~/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.
  • Old version loading via `npx` (your client still shows the previous release after a publish) — 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

Recent releases

  • v1.7.24 (2026-05-16) — embeddings.md BYOM callout + 5 devDep bumps
  • v1.7.23 (2026-05-16) — BYOM Ollama auto-pull gate + logger sweep + SIGTERM unit test
  • v1.7.22 (2026-05-15) — structured stderr (NDJSON) + Ollama preparing-state + dependabot security bumps + SIGTERM drain integration test
  • v1.7.21 (2026-04-27) — install.sh vault-picker fix + auto ollama pull + docs/test polish
  • v1.7.20 (2026-04-27) — Ollama prefix-lookup bug + 13 audit polish items

→ Full changelog: docs/CHANGELOG.md · Forward plan: docs/roadmap.md · Build from source: docs/development.md

Credits

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).

Related projects

  • apple-notes-brain — sibling MCP server for Apple Notes on macOS: read, write, and search with full Markdown round-trip in both directions.

License

Apache License 2.0 — Copyright 2026 sweir1.

问 PopNx