能力标签
🔌
MCP工具

Obsidian MCP连接器

基于 TypeScript · 让 AI 助手直接操作你的系统与工具
英文名:obsidian-mcp-connector
⭐ 8 Stars 🍴 1 Forks 💻 TypeScript 📄 MIT 🏷 AI 8.0分
8.0AI 综合评分
obsidianmcptypescript
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:Obsidian MCP连接器 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

Obsidian MCP连接器 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 Obsidian MCP连接器,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。Obsidian MCP连接器 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 Obsidian MCP连接器 评为 AI 评分 8.0 分,属于同类工具中的优质选择。

📋 工具概览

Obsidian MCP连接器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 8
开发语言
TypeScript
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
8.0 分
工具类型
MCP工具
Forks
1

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Obsidian MCP连接器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/istefox/obsidian-mcp-connector

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "obsidian-mcp---": {
      "command": "npx",
      "args": ["-y", "obsidian-mcp-connector"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 Obsidian MCP连接器 执行以下任务...
Claude: [自动调用 Obsidian MCP连接器 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "obsidian_mcp___": {
      "command": "npx",
      "args": ["-y", "obsidian-mcp-connector"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 83/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

MCP Connector for Obsidian

GitHub release (latest by date) Build status License

Features | Installation | Quick setup for clients | Migration from 0.3.x | Prompts | Command execution | Troubleshooting | Security | Development | Support

MCP Connector lets AI applications like Claude Desktop, Claude Code, Cursor, Cline, Continue, Windsurf, and VS Code securely access and work with your Obsidian vault through the Model Context Protocol. [^2]

Features

When connected to an MCP-compatible client, this plugin enables:

  • Vault access — read, write, and patch notes through 18 typed tools (get_vault_file, create_vault_file, patch_vault_file, rename_vault_file, rename_heading, list_vault_files, create_vault_directory, delete_vault_directory, …) with native binary content for images and audio. Missing parent directories on a create/append path are auto-created. rename_vault_file preserves link integrity across the vault via app.fileManager.renameFile; rename_heading renames a heading in place and rewrites every wikilink / markdown link / subheading-path reference pointing at it across the vault.
  • Semantic searchsearch_vault_smart over an on-device embedding index. Four providers available on demand: native MiniLM-L6-v2 (~25 MB, default), Gemma 300M (768d, recommended for non-Latin vaults), Multilingual-E5-Base (768d), and Smart Connections (if installed). Providers download once and swap live without restart; the vault is re-indexed in the background while the previous provider continues serving. A startup banner suggests the best provider based on your vault's character distribution.
  • Plain-text + structured searchsearch_vault_simple (text + context windows) and search_vault (DQL / JsonLogic via Local REST API). execute_dataview_query runs Dataview DQL in-process via the plugin API — returns typed results (table / list / task / calendar) without requiring Local REST API.
  • Periodic notesget_or_create_daily_note, get_or_create_periodic_note (daily / weekly / monthly / quarterly / yearly), and append_to_periodic_note. Each call auto-creates the note with your configured template if it doesn't exist yet. Works with both the native Daily Notes plugin and the Periodic Notes community plugin.
  • Vault graph & navigationget_vault_file_partial (frontmatter field, heading section, block range, or document outline — context-efficient partial read), list_tags (all vault tags with usage counts), get_files_by_tag (files by tag, hierarchical matching), get_recent_files (recently modified files ordered by mtime), get_outgoing_links (all links emanating from a note: wikilinks, markdown links, embeds, frontmatter links), get_backlinks (files that link to a given note).
  • Vault intelligence — five read/write tools for vault-wide analysis: find_broken_links (all wikilink, markdown, embed, and frontmatter link targets that don't resolve, with source file + line number), find_orphaned_notes (notes with zero incoming resolved links), search_and_replace (regex find-and-replace across vault or scoped paths, dry_run:"true" by default for safe preview), get_note_outline (heading TOC with level, text, line number, and anchor slug), list_bookmarks (full native Obsidian bookmark hierarchy: files, folders, searches, headings, blocks, groups).
  • Template execution — invoke Templater templates as MCP tool calls with dynamic parameters.
  • Prompt library — author MCP prompts as plain markdown files in your vault's Prompts/ folder. No plugins required — the in-process renderer handles everything. See Using prompts below.
  • Command execution (opt-in) — authorize the agent to run specific Obsidian commands (e.g. editor:toggle-bold, graph:open) from a per-vault allowlist. Disabled by default; every invocation is audited. See Command execution below.
  • Web fetchfetch tool retrieves arbitrary URLs and returns Markdown via Turndown, with pagination for long pages.

43 MCP tools in total. Full list in the plugin's settings → Tools available section.

Prerequisites

Requirements

  • A folder named exactly Prompts (capital P) at the root of your vault. That's it — no additional plugins required. The prompt renderer runs in-process inside the plugin.

If you use other Templater expressions in the prompt body (e.g. <% tp.date.now() %>), they are passed through verbatim — the MCP server does not evaluate them. Only <% tp.mcpTools.prompt(…) %> declarations and {{arg}} placeholders are processed.

Requirements

  • Bun latest (pinned via mise.toml)
  • TypeScript 5+

Installation

MCP Connector is available in the Obsidian community plugin store and via BRAT — use either.

Quick setup for clients

The plugin settings expose three Copy config buttons — one per supported client family. Each button copies a ready-to-paste JSON snippet to the clipboard.

Verifying the setup

Once configured, your client should expose 43 MCP tools from this server, plus any prompts you have tagged with #mcp-tools-prompt in a Prompts/ folder at your vault root.

To verify the connection works end-to-end, ask the agent to call get_server_info. A successful response confirms the client can reach the in-process server and the bearer token is correct. For deeper inspection (request/response logs, tool schema inspection without an LLM in the loop), use @modelcontextprotocol/inspector:

```bash npx -y @modelcontextprotocol/inspector

"Server disconnected" after updating from a pre-0.4.9 build

  • Symptom: Claude Desktop shows MCP mcp-tools-istefox: Server disconnected; its logs show ECONNREFUSED 127.0.0.1:<port>.
  • Cause: pre-0.4.9 builds could fail to release the server port on Obsidian reload/disable and "walk" to the next one (27200 → 27201 → …), so claude_desktop_config.json may point at an old walked port while 0.4.9 now correctly binds the default. 0.4.9 fixes the walk; the stale config is a one-time leftover from the old build, not a recurring issue.
  • Fix: fully quit Claude Desktop (Cmd+Q on macOS) and reopen it — Claude Desktop only re-reads claude_desktop_config.json at launch; closing the window or an in-app restart is not enough. With auto-write on (the default) the plugin keeps the config in sync afterward.
  • Still failing? Confirm the port in claude_desktop_config.json (http://127.0.0.1:<port>/mcp) matches the port the plugin logs on start (Settings → Open Logs), ensure only one Obsidian vault has the plugin enabled (two instances contend for the port), then fully restart Claude Desktop again.

Building

bun install                    # Install workspace dependencies
bun run check                  # Type-check every package
bun run dev                    # Watch all packages
bun run build                  # Production build

The plugin's main.js is written at the package root (packages/obsidian-plugin/main.js); Obsidian expects that path. Do not move it.

Optional

  • Templater — needed only for the execute_template tool. The prompt library works without it.
  • Local REST API — needed only for the search_vault tool (DQL / JsonLogic queries). All other tools work without it. [^4]
  • Smart Connections — alternative semantic-search backend. The native MiniLM provider works just as well; Smart Connections is only useful if you are already invested in its ecosystem.

Option A — Community plugin store

  1. Settings → Community plugins → Browse, search "MCP Connector".
  2. Install + Enable. Obsidian shows a "This plugin has not been manually reviewed by Obsidian staff" notice — community plugins pass an automated build/security review, not a hand audit.
  3. The first-load migration modal opens if you have a 0.3.x install — confirm or skip the steps it proposes (see Migration from 0.3.x below).
  4. Open the plugin settings and use the Quick setup for clients section to wire up your MCP client.

Option B — BRAT

Prefer the latest build, or the store entry hasn't propagated to your client yet? Install via BRAT:

  1. Install and enable the Obsidian42 — BRAT plugin from the community store.
  2. Settings → BRAT → Add Beta plugin, paste istefox/obsidian-mcp-connector.
  3. BRAT installs the latest GitHub release; enable MCP Connector in Community plugins.
  4. The first-load migration modal opens if applicable; otherwise jump straight to Quick setup for clients in the plugin settings.

That's it. No binary to install, no separate download. The MCP server starts as soon as you enable the plugin.

Advanced settings

Under the Advanced disclosure you can override the soft rate-limit warning threshold (default: 30 calls/minute). When the agent exceeds this rate, the confirmation modal surfaces a red banner so you can spot a runaway loop. The threshold is informational only — the in-process MCP server's hard limit of 100/minute is enforced server-side and is not configurable from the UI.

Where is the full reference?

This section covers the 90% case. For the complete contract (folder naming, frontmatter schema, parameter parsing rules, execution flow, known limitations), see docs/features/prompt-system.md.

Plugin runtime

  • All vault access goes through Obsidian's app.vault and app.workspace APIs (Obsidian's permission model applies).
  • Local REST API is no longer required for most tools — see Architecture.
  • Command execution is opt-in with a per-vault allowlist; see Command execution.

Cursor / Cline / Continue / Windsurf / VS Code

Click Copy config for streamable-http clients. The snippet uses the generic streamable-http payload shape these clients accept; consult each client's own docs for the exact config-file location and any wrapping keys.

Troubleshooting

If you encounter issues:

🎯 aiskill88 AI 点评 A 级 2026-06-01

高质量的Obsidian MCP连接器,扩展了Obsidian的功能

⚡ 核心功能

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

参考项目文档和示例代码
💡 AI Skill Hub 点评

总体来看,Obsidian MCP连接器 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 Obsidian MCP连接器
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 obsidian-mcp-connector
Topics obsidianmcptypescript
GitHub https://github.com/istefox/obsidian-mcp-connector
License MIT
语言 TypeScript
🔗 原始来源
🐙 GitHub 仓库  https://github.com/istefox/obsidian-mcp-connector

收录时间:2026-06-01 · 更新时间:2026-06-01 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。