Obsidian Tools MCP Server

Obsidian Tools MCP Server

Enables comprehensive management of Obsidian vaults with full CRUD operations, advanced search, link/tag extraction, backlinks discovery, frontmatter editing, and template-based note creation through natural language.

Category
访问服务器

README

Obsidian Tools MCP Server

An extended MCP (Model Context Protocol) server for Obsidian with full CRUD operations and advanced note management capabilities.

Features

Core Operations

  • create_note - Create new notes with nested folder support
  • delete_note - Delete notes from your vault
  • update_note - Replace entire note content
  • append_to_note - Append content to end of notes
  • prepend_to_note - Prepend content (respects frontmatter)
  • rename_note - Move/rename notes

Search & Discovery

  • read_note - Read single note content
  • search_notes - Search by filename (supports regex)
  • search_content - Full-text search in note contents
  • list_folder - List notes and subfolders

Links & Tags

  • get_tags - Extract all tags from a note
  • get_links - Get all wikilinks and markdown links
  • get_backlinks - Find notes linking to a specific note

Advanced Operations

  • insert_at_heading - Insert content under a specific heading
  • update_frontmatter - Modify YAML frontmatter properties
  • create_from_template - Create notes from templates with variable substitution

Installation

Prerequisites

  • Node.js 18+
  • An Obsidian vault

Setup

# Clone the repository
git clone https://github.com/yourusername/obsidian-tools-mcp.git
cd obsidian-tools-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

For VS Code / GitHub Copilot

Add to your VS Code settings (settings.json):

{
  "mcp": {
    "servers": {
      "obsidian-tools": {
        "command": "node",
        "args": ["/path/to/obsidian-tools-mcp/dist/index.js"],
        "env": {
          "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
        }
      }
    }
  }
}

For Claude Desktop

Add to your Claude config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "obsidian-tools": {
      "command": "node",
      "args": ["/path/to/obsidian-tools-mcp/dist/index.js"],
      "env": {
        "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
      }
    }
  }
}

Environment Variables

Variable Description Required
OBSIDIAN_VAULT_PATH Absolute path to your Obsidian vault Yes

You can also pass the vault path as a command-line argument:

node dist/index.js /path/to/your/vault

Usage Examples

Create a New Note

Create a note at "Projects/My Project.md" with content about project planning

Search and Update

Find all notes containing "TODO" and append a completion timestamp

Template-Based Creation

Create a new meeting note from the template at "Templates/Meeting.md" 
with title "Q4 Planning Session"

Frontmatter Management

Update the frontmatter of "My Note.md" to add tags: ["project", "important"]

Tool Reference

create_note

Create a new note in the vault.

Parameter Type Required Description
path string Yes Path relative to vault root
content string Yes Markdown content
overwrite boolean No Overwrite if exists (default: false)

delete_note

Delete a note from the vault.

Parameter Type Required Description
path string Yes Path to the note

update_note

Replace the entire content of a note.

Parameter Type Required Description
path string Yes Path to the note
content string Yes New content

append_to_note

Append content to the end of a note.

Parameter Type Required Description
path string Yes Path to the note
content string Yes Content to append
separator string No Separator before content (default: "\n\n")

prepend_to_note

Prepend content to a note (after frontmatter if present).

Parameter Type Required Description
path string Yes Path to the note
content string Yes Content to prepend
separator string No Separator after content (default: "\n\n")

rename_note

Move or rename a note.

Parameter Type Required Description
oldPath string Yes Current path
newPath string Yes New path

search_notes

Search notes by filename pattern.

Parameter Type Required Description
query string Yes Search pattern (regex supported)
limit number No Max results (default: 20)

search_content

Search for text within note contents.

Parameter Type Required Description
query string Yes Text to search for
caseSensitive boolean No Case sensitivity (default: false)
limit number No Max results (default: 20)

get_tags

Get all tags from a note.

Parameter Type Required Description
path string Yes Path to the note

get_links

Get all internal links from a note.

Parameter Type Required Description
path string Yes Path to the note

get_backlinks

Find all notes linking to a specific note.

Parameter Type Required Description
path string Yes Path to the note

insert_at_heading

Insert content under a specific heading.

Parameter Type Required Description
path string Yes Path to the note
heading string Yes Heading text to find
content string Yes Content to insert
position "start" | "end" No Where to insert (default: "end")

update_frontmatter

Update YAML frontmatter properties.

Parameter Type Required Description
path string Yes Path to the note
properties object Yes Key-value pairs (use null to delete)

create_from_template

Create a note from a template.

Parameter Type Required Description
templatePath string Yes Path to template note
newPath string Yes Path for new note
variables object No Template variable substitutions

Built-in template variables:

  • {{date}} - Current date (YYYY-MM-DD)
  • {{time}} - Current time (HH:MM:SS)
  • {{datetime}} - ISO datetime

Development

# Watch mode for development
npm run dev

# Build
npm run build

# Run directly
npm start

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选