
MCP 工具允许 Open WebUI 或 Claude Desktop 从你的保险库中检索文件
概览
该 Obsidian 插件直接在 Obsidian 内部运行 MCP(模型上下文协议)服务器,允许外部 LLM 工具访问您的保险库。原生支持 HTTP 传输(Open WebUI,远程 LLM)。可选的桥接脚本提供从 HTTP 到 stdio(Claude 桌面)的桥接。 - : 该插件在你的机器上运行本地 HTTP 服务器,以接受入站的 MCP 连接。它不会单独将你的保险库数据发送到外部 LLM 服务。- : 该插件允许你通过 Obsidian API 和路径 ACL 控制保险库访问,而不是直接给外部工具文件系统访问。- : 该插件需要桌面环境,无法在移动设备上工作。
概述(AI 翻译)
该 Obsidian 插件在 Obsidian 内部直接运行 MCP(模型上下文协议)服务器,允许外部 LLM 工具访问你的保险库。原生支持 HTTP 传输(Open WebUI,远程 LLM)。可选的 bridge 脚本提供从 HTTP 到 stdio(Claude 桌面)的桥接。
重要说明
- 网络使用:该插件在你的机器上运行本地HTTP服务器,以接受入站的MCP连接。它不会单独将你的保险库数据发送到外部LLM服务。
- 隐私:该插件允许您通过 Obsidian API 和路径 ACL 控制保险库访问,而非直接给外部工具文件系统访问。
- 仅桌面:该插件需要桌面环境,无法在移动设备上运行。
特色
- 基于HTTP的MCP服务器:运行实现MCP协议的Fastify服务器
- 状态栏指示器:显示服务器状态(停止/运行/错误),并具备点击切换功能
- 可配置设置:调整服务器端口、自动启动行为、日志和路径ACL以控制对保险库区域的访问
- CORS 支持:通过 Tailscale 或本地网络实现远程机器访问
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Vault as MCP
This Obsidian plugin runs an MCP (Model Context Protocol) server directly inside Obsidian, letting external LLM tools access your vault. Supports HTTP transport natively (Open WebUI, remote LLMs). An optional bridge script provides a bridge from HTTP to stdio (Claude Desktop).
Important Notes
- Network Use: This plugin runs a local HTTP server on your machine to accept inbound MCP connections. It does not send your vault data to external LLM services by itself.
- Privacy: This plugin lets you control vault access through Obsidian APIs and path ACLs instead of giving external tools direct filesystem access.
- Desktop Only: This plugin requires a desktop environment and will not work on mobile devices.
Features
- HTTP-based MCP server: Runs a Fastify server implementing the MCP protocol
- Status Bar Indicator: Shows server status (stopped/running/error) with click-to-toggle functionality
- Configurable Settings: Adjust server port, auto-start behavior, logging, and path ACLs to control access to areas of your vault
- CORS Support: Enables access from remote machines via Tailscale or local network
- MCP Tools: Read, search, list, create, edit, rename, and delete notes; templates and periodic notes — see MCP Tools Reference
Installation
Community Plugins
- Open Settings → Community Plugins
- Click “Browse” and search for “Vault as MCP”
- Install and enable the plugin
Manual Installation
- Download the latest release from GitHub
- Extract the files to your vault’s
.obsidian/plugins/vault-as-mcp/directory - Reload Obsidian
- Enable “Vault as MCP” in Settings → Community Plugins
Install with BRAT
Assuming you have the BRAT plugin installed and enabled:
- Open BRAT plugin settings
- Click ‘Add beta plugin’
- Use
https://github.com/ebullient/obsidian-vault-mcpas the URL, select the latest version and install - Enable “Vault as MCP”, either as part of installing via BRAT, or in Settings → Community Plugins
Usage
Starting the Server
The plugin provides three ways to control the server:
- Status Bar: Click the status indicator in the bottom-right to toggle the server on/off
- Commands: Use the command palette to:
- Start MCP server
- Stop MCP server
- Restart MCP server
- Auto-start: Enable in settings to automatically start the server when Obsidian loads
Configuration
Open Settings → Vault as MCP:
- Server Port: Port number for the MCP server (default: 8765)
- Bearer Token: Optional authentication token for secure access
- Auto-start Server: Automatically start when Obsidian loads
- Debug: Enable debug messages
Authentication
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"obsidian-vault": {
"command": "node",
"args": ["/absolute/path/to/mcp-bridge.js"],
"env": {
"VAULT_MCP_URL": "http://localhost:8765/mcp"
}
}
}
}