
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 分
请在仓库或注册中心条目中声明许可证。