
Obsidian MCP
io.github.seynurmammad0v由 GitHub 帳號 seynurmammad0v 發布v1.0.3更新於 Oct 25, 2026
Turns Obsidian vaults into AI-queryable knowledge graphs with 12 tools
概覽
一個本機 MCP 伺服器,把 Obsidian 筆記庫索引成連結圖譜,讓助理讀取、搜尋、遍歷並編輯筆記及其雙向連結。
- 可以做什麼
- 讀取與探索筆記:筆記庫統計、含 frontmatter、連結、反向連結與各章節的完整內容,以及標籤、資料夾、frontmatter 與關鍵字的組合搜尋。遍歷連結圖譜:直接相鄰筆記、指定深度的 BFS/DFS、兩篇筆記間的最短連結路徑,以及連通分量、孤立筆記、橋接、樞紐與失效連結分析。寫入與整理:建立筆記,附加、前置或取代章節,更新 frontmatter,移動或重新命名筆記並自動更新反向連結,刪除筆記,以及全庫新增、移除或重新命名標籤。
- 適用情境
- 適合以 Obsidian 筆記庫累積知識、並希望助理跨連結筆記回答問題、梳理筆記間關係,或執行移動筆記並修正引用這類批次修改的情境。它著重於個人知識庫的圖譜式探索,而非一般檔案管理。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js。必須以 --vault 參數指定筆記庫路徑。不需要資料庫、執行中的 Obsidian、API 金鑰或環境變數;選用設定放在筆記庫根目錄的 .obsidian-mcp.json 檔案中。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Obsidian MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
obsidian-mcp
MCP server that turns any Obsidian vault into an AI-queryable knowledge graph.
What makes this different from the 24+ existing Obsidian MCP servers:
- Graph-first — BFS, shortest path, connected components, bridge detection via
[[wikilinks]] - Zero infrastructure — No database, no Obsidian running, no API keys
- Vault-agnostic — Works with any existing vault, no required structure
- Backlink-aware writes —
move_noteauto-updates all references across the vault - Tiny — 4 runtime dependencies, ~42KB bundle
Quick Start
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Claude Code
Tools (12)
Reading & Discovery
Graph Traversal
Writing & Manipulation
Configuration
Zero-config by default. Optional .obsidian-mcp.json in vault root:
CLI Flags
How It Works
- On startup, scans all
.mdfiles and builds an in-memory graph (~1-3s for 1k notes) - File watcher detects changes and updates the graph incrementally (~5ms per change)
- Claude queries the graph via MCP tools — no re-scanning needed
- Write operations update both the filesystem and the graph atomically
Hardcoded exclusions: .obsidian/, .trash/, node_modules/
Development
License
MIT
來源:README.md,提交 8008844
工具
0版本歷史
1- v1.0.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分