
Obsidian Mcp Secure
io.github.dewtech-technologies由 GitHub 帳號 dewtech-technologies 發布v1.0.4更新於 Oct 24, 2026
Secure MCP server for Obsidian with OWASP Top 10 controls and full audit logging.
概覽
本機 MCP 橋接服務,讓 AI 助理透過 Local REST API 外掛讀取、搜尋、建立、編輯與刪除 Obsidian 儲存庫中的筆記,並留下稽核記錄
- 可以做什麼
- 讀取筆記,列出儲存庫或子目錄中的檔案與資料夾,依部分名稱或路徑尋找筆記,大小寫不敏感,使用 Obsidian 內建搜尋引擎進行全文與標籤搜尋,並列出所有標籤及使用次數,建立新的 Markdown 筆記,覆寫既有筆記,並在帶入明確確認旗標時刪除筆記,在筆記的相關章節加入雙向連結,為每次工具呼叫寫入稽核記錄,包含動作、去識別化參數、成功與否、錯誤與時間戳
- 適用情境
- 適合以 Claude Desktop 等桌面 MCP 用戶端為主要工作介面、希望把 Obsidian 儲存庫當成眾多脈絡之一的使用者,以一套範圍窄、經過驗證的工具與稽核記錄取代 shell 存取。適合筆記查找、摘要與交叉比對類工作流程,而非在 Obsidian 側邊欄內操作。
- 執行需求
- 需要執行 Obsidian 桌面版並開啟儲存庫,安裝並啟用 Local REST API 社群外掛,開啟其非加密 HTTP 伺服器。需要 Node.js 18+ 以透過 npx 執行此 npm 套件。必須在 OBSIDIAN_API_KEY 中提供外掛產生的 API 金鑰;OBSIDIAN_HOST(僅接受 127.0.0.1 或 localhost)、OBSIDIAN_PORT(預設 27123)與 LOG_DIR(預設 ./logs)為選用項目。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Obsidian Mcp Secure,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
obsidian-mcp-secure
[npm version] [npm downloads] [MCP Registry] [license] [npm audit] [CI] [coverage] [Smithery]
Secure Model Context Protocol server that turns your Obsidian vault into a reliable data source for any MCP-compatible AI client — built from scratch with OWASP Top 10 controls and full audit logging.
Listed on the official Anthropic MCP Registry as io.github.dewtech-technologies/obsidian-mcp-secure.
🧭 Positioning — this is NOT a plugin for Obsidian
It's the opposite: it's a bridge that lets Claude Desktop (or any MCP client) read and write inside Obsidian safely. Your AI assistant stays where it lives; your vault becomes a structured, auditable datasource it can reach.
One-liner: Claude is the brain, this MCP is the arm, Obsidian is the memory.
Why another Obsidian + AI integration?
There are plugins that put Claude inside Obsidian. This is the inverse, and it exists because:
- Your assistant is Claude Desktop — that's where the general-purpose conversations happen. Your notes become one of many contexts Claude can reach, alongside web, GitHub, filesystems, etc.
- Security is a first-class concern — deliberate attack surface, no shell access, path traversal blocked, inputs validated with Zod, every call audited.
- Zero build, zero account —
npx obsidian-mcp-secureand done. Works on Windows, macOS, Linux the same way. - Composability — combine this MCP with fetch, filesystem, git, GitHub, etc., and Claude can cross-reference your vault with external sources in a single conversation.
🛠️ Available Tools
🔒 Security — OWASP Top 10
Every tool call emits an audit line with action, params (sanitized), success, error, and timestamp.
⚡ Installation
Prerequisites
- Obsidian Desktop with a vault open
- The Local REST API plugin (by Adam Coddington) — install from Community Plugins, enable it, and:
- Turn on "Enable Non-encrypted (HTTP) Server" (simpler than HTTPS self-signed certs)
- Copy the API Key shown in the plugin settings
- Node.js 18+
- Claude Desktop (or another MCP-compatible client)
Configure Claude Desktop
Open %APPDATA%\Claude\claude_desktop_config.json on Windows (or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add:
Windows tip: if
npxfails silently, switch"command": "npx"to"command": "npx.cmd". Some Claude Desktop builds don't resolve barenpxon PATH.
Restart Claude Desktop (tray → Quit, then reopen) and the 9 tools will show up under obsidian-secure.
🤝 Recommended companions
The real power of MCPs is composability. To reproduce the "read my note → fetch a URL → tell me if I'm applying it correctly" workflow, add the official fetch MCP alongside this one:
Now Claude has both your vault and the live web in a single conversation.
💬 Example prompts
With obsidian-secure + fetch enabled:
"Read my note
Projeto API Atendimento.md, then fetch https://developers.facebook.com/docs/whatsapp and tell me if my implementation matches the latest best practices."
"Search my vault for the tag
#ideiaand summarize the three ideas that appear most often. Then create a new note calledIdeias recorrentes.mdwith the summary."
"Read
Atomic Habits - Resumo.md, fetch https://jamesclear.com/atomic-habits, and point out where my notes drifted from the original."
Claude will orchestrate the tool calls automatically — no manual chaining.
🧩 Comparison with in-Obsidian plugins
If your workflow lives inside Obsidian's sidebar, plugins like obsidian-claude-code are the right fit. This MCP targets a different shape:
Both are valid — they occupy different niches.
🔧 Environment variables
🗺️ Roadmap
✅ Shipped in v1.2.1
- Bug fix:
find_note_by_namesearches full path (folder + filename) - Bug fix:
list_tagsnormalizes all API response formats (object, array of strings, array of objects withtagCount/taggedFilesCount)
✅ Shipped in v1.2.0
- DXT package for one-click install in Claude Desktop (
npm run build:dxt)
✅ Shipped in v1.1.0
-
find_note_by_name— partial, case-insensitive name match across the entire vault -
create_backlinks— connect related notes with[[wikilinks]](explicit, auditable) -
list_tags— enumerate all tags in the vault with usage count - Unit test suite (70 tests — utils, handlers, HTTP client) with Vitest
- CI pipeline on every PR: tests + coverage +
npm audit+ static security analysis
🔜 Up next
- Smithery listing
- Read-only mode flag for shared / multi-user setups
Ideas and PRs welcome — see CONTRIBUTING.md.
📜 License
MIT — see LICENSE.
🙏 Credits
- Model Context Protocol by Anthropic
- Local REST API plugin by Adam Coddington — the foundation that makes this possible
- Built at Dewtech by Wanderson Leandro
Security issues? See SECURITY.md for disclosure instructions.
來源:README.md,提交 da3c03a
工具
0版本歷史
1- v1.0.4最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。