Obsidian iCloud MCP连接工具

通过模型上下文协议(MCP)将存储在iCloud Drive中的Obsidian Vault连接到AI的工具,主要用于开发调试和生产环境中的Obsidian与AI集成。

  • by YanceyOfficial
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 yanceyofficial/obsidian-mcp

使用说明

黑曜石iCloud MCP

通过模型上下文协议(MCP)将存储在iCloud Drive中的黑曜石金库连接到AI。

[!警告] 黑曜石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>"
      ]
    }
  }
}