Skip to main content
Glama

mcp-obsidian

An MCP server that exposes your Obsidian vault to AI assistants via the Model Context Protocol.

Requirements

  • Python 3.12+

  • uv

Related MCP server: Obsidian MCP Tool Server

Installation

git clone https://github.com/johnkang/mcp-obsidian
cd mcp-obsidian
uv sync

Usage

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-obsidian

Claude 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.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Tools

File Operations

Tool

Description

list_files(path="")

List files and folders in the vault or a subdirectory

read_note(path)

Read the contents of a note

write_note(path, content)

Create or overwrite a note (parent dirs created automatically)

append_to_note(path, content)

Append content to the end of an existing note

delete_note(path)

Delete a note or folder

move_note(src, dest)

Move or rename a note within the vault

Tool

Description

search_notes(query)

Case-insensitive full-text search across all .md files

search_by_tag(tag)

Find all notes containing a specific tag

Frontmatter

Tool

Description

get_frontmatter(path)

Read the YAML frontmatter of a note

update_frontmatter(path, key, value)

Set or update a frontmatter field (creates it if absent)

Tool

Description

get_backlinks(path)

Find all notes that link to a given note via [[wikilinks]]

get_outlinks(path)

Extract all [[wikilinks]] from a note

get_orphans()

Find notes with no incoming or outgoing links

Daily Notes

Tool

Description

get_daily_note(date_str="")

Read the daily note for a date (defaults to today, format: YYYY-MM-DD)

create_daily_note(date_str="")

Create a daily note, using a daily template from Templates/ if available

Utility

Tool

Description

list_tags()

List all tags in the vault with usage counts

get_recent_notes(n=10)

List the N most recently modified notes

get_note_stats()

Return vault statistics (note count, word count, tags, links)

list_templates()

List all templates in the vault's Templates/ folder

Security

All file paths are validated to prevent path traversal attacks — no operation can escape the configured vault directory.

Available Tools

19 tools
append_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_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_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

    A3.7/5.0

    Scored across 19 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness5/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides 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.
      37
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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