Skip to main content
← 返回博客
ObsidianPerplexityMCPAIProductivity

如何通过 MCP 将 Perplexity AI 连接到 Obsidian——直接从聊天中记笔记

设置 Perplexity Desktop 使用 MCP filesystem 服务器读写您的 Obsidian vault。在一次对话中搜索网络并保存到笔记。

发布于 2026年4月12日5 分钟阅读

TL;DR

Perplexity Desktop 支持 MCP(Model Context Protocol)连接器。通过添加官方的 @modelcontextprotocol/server-filesystem 服务器指向您的 Obsidian vault,您可以用自然语言告诉 Perplexity 读取、创建和编辑笔记——直接在聊天中完成。无需插件、无需扩展、无需复制粘贴。

问题

Perplexity 擅长研究——它搜索网络、总结来源、提供带引用的答案。但当您想将这些发现保存到 Obsidian vault 时,工作流程就中断了:复制文本、切换到 Obsidian、找到正确的笔记、粘贴、格式化。每次都这样。

像 "Perplexity to Obsidian" 这样的浏览器扩展有助于导出,但它们是单向的——AI 看不到您的 vault,无法读取现有笔记,也无法根据文件夹结构决定内容的存放位置。

什么是 MCP?

Model Context Protocol(MCP)是一个开放标准,允许 AI 模型与本地工具和数据源交互。可以将其想象为 AI 的 USB 接口——您插入一个"服务器"(一个小程序),AI 就获得了新能力。在我们的案例中,filesystem 服务器为 Perplexity 提供了 14 个文件操作工具:

Perplexity Desktop (Mac App)
  │
  ├── MCP Connector: "Obsidian Vault"
  │     │
  │     └── @modelcontextprotocol/server-filesystem
  │           │
  │           ├── read_file()      → read any .md file
  │           ├── write_file()     → create or overwrite files
  │           ├── edit_file()      → patch existing files
  │           ├── list_directory() → browse vault structure
  │           ├── search_files()   → find files by pattern
  │           └── ... 14 tools total
  │
  └── Perplexity AI Model
        │
        └── "Save this to my daily note" → calls write_file()

关键点:AI 模型不会直接访问您的文件。它调用 MCP 服务器提供的工具,而该服务器在您的本地机器上运行。除非您明确要求 AI 对数据进行操作,否则您的数据永远不会离开您的计算机。

要求

  • Perplexity Pro 订阅(MCP 连接器仅对付费用户开放)
  • 来自 App Store 的 Perplexity Mac App(不是浏览器版本)
  • Mac 上已安装 Node.js(使 npx 可以工作)

分步设置

整个设置大约需要 2 分钟:

StepAction
1Open Perplexity Mac App (App Store version)
2Click avatar → SettingsConnectors
3Click Add Connector
4Set Server Name: Obsidian Vault, Type: Standard I/O
5Paste the npx command with your vault path
6Leave Environment Variables empty
7Click Save → confirm Security Warning
8Verify status shows Running with 14 tools

命令

粘贴到 Command 字段中的命令:

MCP Connector Command
npx -y @modelcontextprotocol/server-filesystem "/Users/yourname/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian Vault"

将路径替换为您 Obsidian vault 的实际位置。如果您的 vault 通过 iCloud 同步,路径将在 ~/Library/Mobile Documents/iCloud~md~obsidian/Documents/ 下。确保保留引号——路径可能包含空格。

如何使用

当连接器显示 Running 并有 14 个可用工具时,转到任何 Perplexity 聊天并开始与您的 vault 对话:

Example prompts in Perplexity chat
> Show me the structure of my Obsidian vault
> Add a new reflection to daily notes/2026-04-12.md: "Started using MCP today"
> Find all notes that mention "meditation"
> Create a new note in concepts/ about quantum computing
> List all files in my ideas/ folder

AI 理解您的 vault 结构,尊重您的格式约定,并且可以处理现有内容。您可以要求它在网上研究一个主题,并将摘要直接保存到特定笔记中。

为什么 MCP 优于其他方法

在 MCP 之前,连接 Perplexity 和 Obsidian 的方式有限:

FeatureCopy-pasteBrowser extensionMCP integration
AI sees vault structureNoNoYes
AI reads existing notesNoNoYes
AI writes to vaultNoExport onlyYes
AI edits existing filesNoNoYes
Works from chatNoPartiallyYes
Setup complexityNoneLowMedium (one-time)

当前限制

  • 仅限 Mac——Perplexity 的 MCP 连接器目前仅在 Mac App Store 版本上工作
  • 无 Obsidian API 集成——filesystem 服务器直接处理文件,而非通过 Obsidian 的 API。这意味着创建文件时不会触发 Obsidian 插件(Linter、Templater)
  • 需要批准——敏感的文件操作可能需要您在 Perplexity 应用中确认——这是安全功能,不是 bug

结论

这个设置将 Perplexity 从研究工具变成了研究与捕获工具:

  1. 在一次对话中搜索网络并保存到 Obsidian
  2. AI 看到您的 vault 结构并适应您的组织系统
  3. 零应用切换——一切都在 Perplexity 聊天中完成

来源