mcp-obsidian
Exposes an Obsidian vault to AI assistants, enabling operations such as reading, writing, searching, and managing notes, tags, frontmatter, and links.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-obsidian search my notes for 'marketing strategy' and summarize the latest one"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-obsidian
An MCP server that exposes your Obsidian vault to AI assistants via the Model Context Protocol.
Requirements
Python 3.12+
Related MCP server: Obsidian MCP Tool Server
Installation
git clone https://github.com/johnkang/mcp-obsidian
cd mcp-obsidian
uv syncUsage
Set the OBSIDIAN_VAULT_PATH environment variable to the absolute path of your vault, then run the server:
OBSIDIAN_VAULT_PATH=/path/to/your/vault uv run mcp-obsidianClaude Desktop Integration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-obsidian", "mcp-obsidian"],
"env": {
"OBSIDIAN_VAULT_PATH": "/path/to/your/vault"
}
}
}
}The config file is located at:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Tools
File Operations
Tool | Description |
| List files and folders in the vault or a subdirectory |
| Read the contents of a note |
| Create or overwrite a note (parent dirs created automatically) |
| Append content to the end of an existing note |
| Delete a note or folder |
| Move or rename a note within the vault |
Search
Tool | Description |
| Case-insensitive full-text search across all |
| Find all notes containing a specific tag |
Frontmatter
Tool | Description |
| Read the YAML frontmatter of a note |
| Set or update a frontmatter field (creates it if absent) |
Links & Graph
Tool | Description |
| Find all notes that link to a given note via |
| Extract all |
| Find notes with no incoming or outgoing links |
Daily Notes
Tool | Description |
| Read the daily note for a date (defaults to today, format: |
| Create a daily note, using a daily template from |
Utility
Tool | Description |
| List all tags in the vault with usage counts |
| List the N most recently modified notes |
| Return vault statistics (note count, word count, tags, links) |
| List all templates in the vault's |
Security
All file paths are validated to prevent path traversal attacks — no operation can escape the configured vault directory.
Available Tools
19 toolsappend_to_noteC
Append content to the end of an existing note.
Args:
path: Relative path to the note.
content: Markdown content to append.
Inputs: path (required), content (required). Returns: result
create_daily_noteB
Create a daily note for a given date, using a daily template if available.
Args:
date_str: Date in YYYY-MM-DD format. Defaults to today.
Inputs: date_str. Returns: result
delete_noteB
Delete a note or folder from the vault.
Args:
path: Relative path to the note or folder to delete.
Inputs: path (required). Returns: result
get_backlinksA
Find all notes that link to the given note via [[wikilinks]].
Args:
path: Relative path to the note (e.g. 'Notes/My Note.md').
Inputs: path (required). Returns: result
get_daily_noteB
Read the daily note for a given date (defaults to today).
Args:
date_str: Date in YYYY-MM-DD format. Defaults to today.
Inputs: date_str. Returns: result
get_frontmatterA
Parse and return the YAML frontmatter of a note as key-value pairs.
Args:
path: Relative path to the note.
Inputs: path (required). Returns: result
get_note_statsB
Return statistics about the vault: note count, word count, tag count, link count.
Inputs: no named parameters. Returns: result
get_orphansA
Find notes with no incoming backlinks and no outgoing wikilinks.
Inputs: no named parameters. Returns: result
get_outlinksA
Extract all [[wikilinks]] from a note.
Args:
path: Relative path to the note.
Inputs: path (required). Returns: result
get_recent_notesA
List the N most recently modified notes in the vault.
Args:
n: Number of notes to return (default 10).
Inputs: n. Returns: result
list_filesA
List files and folders inside the vault (or a subdirectory of it).
Args:
path: Relative path within the vault to list. Defaults to the vault root.
Inputs: path. Returns: result
list_tagsA
List all tags used across the vault with their usage counts.
Inputs: no named parameters. Returns: result
list_templatesA
List all available templates in the vault's Templates folder.
Inputs: no named parameters. Returns: result
move_noteB
Move or rename a note within the vault.
Args:
src: Relative path to the source note or folder.
dest: Relative path to the destination (new name/location).
Inputs: src (required), dest (required). Returns: result
read_noteB
Read the contents of a note in the vault.
Args:
path: Relative path to the note file (e.g. 'folder/My Note.md').
Inputs: path (required). Returns: result
search_by_tagB
Find all notes containing a specific tag.
Args:
tag: Tag to search for (with or without leading #).
Inputs: tag (required). Returns: result
search_notesA
Full-text search across all markdown notes in the vault.
Args:
query: Search string (case-insensitive).
Inputs: query (required). Returns: result
update_frontmatterB
Set or update a frontmatter field in a note. Creates frontmatter if absent.
Args:
path: Relative path to the note.
key: Frontmatter key to set (e.g. 'status', 'tags').
value: Value to set. Use comma-separated values for lists (e.g. 'tag1,tag2').
Inputs: path (required), key (required), value (required). Returns: result
write_noteA
Create or overwrite a note in the vault.
Args:
path: Relative path to the note (e.g. 'folder/New Note.md').
Parent directories are created automatically.
content: Markdown content to write.
Inputs: path (required), content (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have distinct purposes targeting specific operations like reading, writing, searching, or managing metadata, with clear boundaries. However, some overlap exists between 'read_note' and 'get_daily_note' (which also reads a note), and 'write_note' and 'create_daily_note' (both create notes), though their specialized contexts help differentiate them.
All tool names follow a consistent verb_noun pattern using snake_case, such as 'append_to_note', 'delete_note', and 'search_notes'. This uniformity makes the set predictable and easy to navigate, with no deviations in style or convention.
With 19 tools, the count is slightly high but reasonable for a comprehensive note-taking system like Obsidian, covering operations from basic CRUD to advanced features like backlinks and templates. It might feel heavy but aligns well with the domain's complexity.
The toolset provides complete coverage for managing an Obsidian vault, including full CRUD for notes (create, read, update, delete), metadata handling (frontmatter), search capabilities (full-text, tags), and vault analytics (stats, orphans). No obvious gaps exist for core workflows.
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA local MCP server that enables AI applications like Claude Desktop to securely access and work with Obsidian vaults, providing capabilities for reading notes, executing templates, and performing semantic searches.831MIT
- AlicenseNot gradedqualityCmaintenanceProvides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.37MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.2MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables AI assistants to securely read, create, and modify notes in an Obsidian vault, with support for semantic search and web scraping.MIT