
bepitulaz/obsidian-multivault-mcp 是从 https://github.com/bepitulaz/obsidian-multivault-mcp. 导入的 MCP 服务器候选
概览
bepitulaz/obsidian-multivault-mcp 是从 https://github.com/bepitulaz/obsidian-multivault-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP服务器,提供Claude读写权限访问存在于VPS上的Obsidian保险库 — 已构建 针对多个保险库和多个用户,来自单一部署。每个人都共享一台服务器;每个服务器 用户通过登录时使用的密码短语(HTTP模式)或以下方式被路由到自己的私人保险库 Claude Desktop 启动时使用的保险库路径(stdio 模式)。服务器通过 VPS 直接运行 文件系统访问保险库。
特色
- 多保险库,多用户——一台服务器服务多人,每个人映射到自己的保险库。在HTTP中 模式中,每个人都添加了相同的连接器URL,他们各自的登录密码短语决定了哪个保险库 它们会获得;在 stdio 模式下,每个 Claude Desktop 会通过自己的保险库路径。
- 来自一个代码库的两个传输 — stdio通过
ssh(Claude Desktop)和一个OAuth保护 可流式HTTP端点(Claude移动/网页/桌面远程连接器)。 - 具有严格路径安全的读写工具 — 仅限保险库相对路径;
..,绝对路径, 符号链接转义,空字节被拒绝;写入限制在扩展允许列表内。可选--read-only以及每用户readOnly。 - **自托管OAuth 2。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
obsidian-multivault-mcp
An MCP server that gives Claude read/write access to Obsidian vaults that live on a VPS — built for multiple vaults and multiple users from a single deployment. Everyone shares one server; each person is routed to their own private vault by the passphrase they log in with (HTTP mode) or by the vault path Claude Desktop launches with (stdio mode). The server runs on the VPS with direct filesystem access to the vaults.
Features
- Multi-vault, multi-user — one server serves many people, each mapped to their own vault. In HTTP mode everyone adds the same connector URL and their distinct login passphrase decides which vault they get; in stdio mode each Claude Desktop passes its own vault path.
- Two transports from one codebase — stdio over
ssh(Claude Desktop) and an OAuth-protected Streamable HTTP endpoint (Claude mobile/web/desktop remote connectors). - Read/write tools with strict path safety — vault-relative paths only;
.., absolute paths, symlink escapes, and null bytes are rejected; writes limited to an extension allowlist. Optional--read-onlyand per-userreadOnly. - Self-hosted OAuth 2.1 — passphrase login, PKCE, JWT access tokens, and Dynamic Client Registration, so no third-party auth service is needed.
- Single-file deploy — esbuild bundles everything to one
dist/index.js; deploy is a one-file copy.
There is no SSH library inside the server — SSH is only the transport Claude Desktop uses to start it and exchange JSON-RPC. Part of a “centralise the vaults on the VPS” setup:
Mac VPS (always-on)
┌ Obsidian app ──(obsidian-remote-ssh plugin)── SSH ─▶ Go daemon ─┐
│ ├─▶ a user's vault
└ Claude Desktop ─(ssh stdio → node index.js)── SSH ─▶ THIS server┘ ▲
Hermes agent (direct fs)
Tools
Read: list_notes, read_note, search_notes.
Write (disabled with --read-only): write_note, create_note, append_to_note, edit_note,
delete_note, move_note.
All paths are vault-relative and confined to the vault root — .., absolute paths, symlink
escapes, and null bytes are rejected; writes/deletes/moves are restricted to allowed extensions
(.md, .markdown, .canvas, .txt by default; override with --ext).
Build & test locally
npm install
npm run build # bundles to dist/index.js (single file)
npm run smoke # spins up the server against a temp vault and exercises every tool
npm run typecheck # optional: tsc --noEmit
You can also drive it interactively with the MCP Inspector:
npm run inspect -- /absolute/path/to/a/vault
Deploy to the VPS
Requires Node 20+ on the VPS.
VPS=user@your-vps DEST=obsidian-multivault-mcp ./scripts/deploy.sh
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"obsidian-multivault": {
"command": "ssh",
"args": [
"youruser@your-vps",
"node",
"/home/youruser/obsidian-multivault-mcp/index.js",
"/home/youruser/alice-vault"
]
}
}
}