Obsidian iCloud MCP
通过模型上下文协议 (MCP) 将存储在 iCloud Drive 中的 Obsidian Vaults 连接到 AI。
[!警告] Obsidian iCloud MCP 已在 MacOS 上全面测试。如果您使用的是 Windows 或 Linux,请进行测试并告知我是否正常运行。
与 Claude Desktop 一起使用
将其添加到您的claude_desktop_config.json中:
开发中的调试
{
"mcpServers": {
"obsidian-mcp": {
"command": "node",
"args": [
"/path/to/obsidian-mcp/build/index.js",
"/Users/<USERNAME>/Library/Mobile\\ Documents/iCloud~md~obsidian/Documents/<VAULT_NAME_1>",
"/Users/<USERNAME>/Library/Mobile\\ Documents/iCloud~md~obsidian/Documents/<VAULT_NAME_2>"
]
}
}
}
使用npx @modelcontextprotocol/inspector node path/to/server/index.js arg1 arg2 arg3 arg...检查本地开发的服务器。
在生产中使用
{
"mcpServers": {
"obsidian-mcp": {
"command": "npx",
"args": [
"-y",
"obsidian-mcp",
"/Users/<USERNAME>/Library/Mobile\\ Documents/iCloud~md~obsidian/Documents/<VAULT_NAME_1>",
"/Users/<USERNAME>/Library/Mobile\\ Documents/iCloud~md~obsidian/Documents/<VAULT_NAME_2>"
]
}
}
}