Skip to main content
Glama
Obsidian MCP Server

Obsidian MCP Server

by justice8096

Obsidian MCP Server

An MCP server that lets Claude (and other MCP clients) read, write, search, and manage an Obsidian vault as a native tool. Local filesystem access only, no cloud sync.

Tools

Tool

Description

Read-only

obsidian_read_note

Read a note's full markdown content

yes

obsidian_write_note

Create or overwrite a note (refuses overwrite unless asked)

no

obsidian_append_to_note

Append markdown to a note, creating it if missing

no

obsidian_list_notes

List notes in the vault or a folder

yes

obsidian_search_vault

Case-insensitive full-text search with line context

yes

obsidian_read_frontmatter

Parse a note's YAML frontmatter as structured data

yes

obsidian_resolve_wikilinks

Extract and resolve [[wikilinks]] to vault files

yes

All paths are relative to the vault root. The .md extension is optional. Paths are validated to stay inside the vault (no directory traversal).

Related MCP server: Obsidian MCP Server

Setup

npm install
npm run build

The vault location is set with the OBSIDIAN_VAULT_PATH environment variable. If unset, it defaults to ~/Obsidian.

Configure in an MCP client

Add to your client's MCP config (example for a stdio client):

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

Develop

npm run dev        # run from source with tsx
npm run typecheck  # type-check without emitting
npm run inspect    # launch the MCP Inspector against the server

Roadmap

  • Semantic/vector search (embed notes, query by meaning)

  • Dataview query passthrough

  • Template-aware note creation

  • Backlink graph traversal

License

MIT

Available Tools

7 tools
obsidian_append_to_noteAppend to Obsidian NoteA

Append markdown to the end of a note, creating it if it does not exist. A newline is inserted before appended content when the note already has content.

Inputs: path (required), content (required).

obsidian_list_notesList Obsidian NotesA
Read-onlyIdempotent

List markdown notes in the vault, optionally scoped to a folder. Hidden folders (.obsidian, .git) are skipped. Read-only.

Inputs: folder, recursive.

obsidian_read_frontmatterRead Note FrontmatterA
Read-onlyIdempotent

Parse and return the YAML frontmatter of a note as structured data, plus a short body preview. Read-only.

Inputs: path (required).

obsidian_read_noteRead Obsidian NoteA
Read-onlyIdempotent

Read the full markdown content of a note in the vault. Path is relative to the vault root; the .md extension is optional. Read-only.

Inputs: path (required).

obsidian_search_vaultSearch Obsidian VaultA
Read-onlyIdempotent

Case-insensitive full-text search across note bodies. Returns matching file path, line number, and the matching line. Read-only.

Inputs: query (required), limit, folder.

obsidian_write_noteWrite Obsidian NoteA
Destructive

Create a new note or overwrite an existing one. Refuses to overwrite unless overwrite=true. Parent folders are created automatically.

Inputs: path (required), content (required), overwrite.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: reading, writing, appending, listing, searching, reading frontmatter, and resolving wikilinks. No overlap or ambiguity between tools.

    Naming Consistency5/5

    All tools follow the consistent pattern 'obsidian_verb_noun' in snake_case, e.g., obsidian_read_note, obsidian_write_note. Naming is predictable and uniform.

    Tool Count4/5

    7 tools is a reasonable count for a note-taking vault server. It covers essential operations, though a delete note tool is missing, which slightly reduces appropriateness.

    Completeness4/5

    The set covers reading, writing, appending, listing, searching, frontmatter parsing, and wikilink resolution. Missing delete note functionality is a minor gap but core workflows are achievable.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables interaction between LLMs and Obsidian vaults through the Model Context Protocol, supporting secure file operations, content management, and advanced search capabilities.
      3,971 npm
      702
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Obsidian vaults through vector search, vault indexing, and file monitoring. It provides a standardized interface for searching and managing markdown-based personal knowledge management data within the Model Context Protocol.
      3,971 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables semantic search and note management for Obsidian vaults via the Model Context Protocol, allowing LLMs to search, read, and index notes, PDFs, and web pages locally.
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI to manage Obsidian notes, including creation, reading, updating, deletion, full-text search, listing with filtering, sorting, and metadata extraction via the Model Context Protocol.
      8
      14 npm
      MIT