
@kazuph/mcp-obsidian
用于 Claude Desktop 的 Obsidian vault 连接器 - 支持使用模型上下文协议 (MCP) 读取和写入 Markdown 笔记
Tools
obsidian_read_notes
Read the contents of multiple notes. Each note's content is returned with its path as a reference. Failed reads for individual notes won't stop the entire operation. Reading too many at once may result in an error.
obsidian_search_notes
Searches for a note by its name. The search is case-insensitive and matches partial names. Queries can also be a valid regex. Returns paths of the notes that match the query.
obsidian_read_notes_dir
Lists only the directory structure under the specified path. Returns the relative paths of all directories without file contents.
obsidian_write_note
Creates a new note at the specified path. Before writing, check the directory structure using obsidian_read_notes_dir. If the target directory is unclear, the operation will be paused and you will be prompted to specify the correct directory.
README
MCP Obsidian
用于 Obsidian vault 集成的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)搜索和读取您的 Obsidian 笔记。
快速开始(面向用户)
前提条件
- Node.js 18+ (通过
brew install node
安装) - Obsidian vault
- Claude Desktop (从 https://claude.ai/desktop 安装)
配置
- 打开您的 Claude Desktop 配置文件,位于:
~/Library/Application Support/Claude/claude_desktop_config.json
您可以通过 Claude Desktop 菜单找到它:
-
打开 Claude Desktop
-
点击 Mac 菜单栏上的 Claude
-
点击 "Settings"(设置)
-
点击 "Developer"(开发者)
-
将以下内容添加到您的配置中:
{
"tools": {
"obsidian": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-obsidian"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}
注意:将 /path/to/your/obsidian/vault
替换为您实际的 Obsidian vault 路径。
面向开发者
前提条件
- Node.js 18+ (通过
brew install node
安装) - Obsidian vault
- Claude Desktop (从 https://claude.ai/desktop 安装)
- tsx (通过
npm install -g tsx
安装)
安装
git clone https://github.com/kazuph/mcp-obsidian.git
cd mcp-obsidian
npm install
npm run build
配置
-
确保 Claude Desktop 已安装并正在运行。
-
如果您还没有全局安装 tsx,请安装:
npm install -g tsx
# 或
pnpm add -g tsx
- 修改您的 Claude Desktop 配置文件,位于:
~/Library/Application Support/Claude/claude_desktop_config.json
您可以通过 Claude Desktop 菜单轻松找到它:
- 打开 Claude Desktop
- 点击 Mac 菜单栏上的 Claude
- 点击 "Settings"(设置)
- 点击 "Developer"(开发者)
将以下内容添加到您的 MCP 客户端配置中:
{
"tools": {
"obsidian": {
"args": ["tsx", "/path/to/mcp-obsidian/index.ts"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
}
}
}
}
可用工具
obsidian_read_notes
: 读取多个笔记的内容。每个笔记的内容都将与其路径一起作为参考返回。obsidian_search_notes
: 按名称搜索笔记(不区分大小写,支持部分匹配和正则表达式)。obsidian_read_notes_dir
: 列出指定路径下的目录结构。obsidian_write_note
: 在指定路径下创建一个新笔记。
推荐服务器
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
MCP Package Docs Server
促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。
Claude Code MCP
一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。
@kazuph/mcp-taskmanager
用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。
Apple MCP Server
通过 MCP 协议与 Apple 应用(如“信息”、“备忘录”和“通讯录”)进行交互,从而使用自然语言发送消息、搜索和打开应用内容。
mermaid-mcp-server
一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。
Jira-Context-MCP
MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

Notion API MCP Server
使用 Notion API 实现高级待办事项列表管理和内容组织,支持创建数据库、动态筛选和协作任务跟踪等功能。

Linear MCP Server
一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。