Skip to main content
Glama
Obsidian MCP Server

Obsidian MCP Server

Obsidian MCP Server for Claude Desktop

License: MIT Node Version

A Model Context Protocol (MCP) server that integrates your Obsidian vault with Claude Desktop, allowing Claude to read, write, search, and manage your Obsidian notes directly through natural conversation.

Features

  • Read notes: Read any note from your Obsidian vault

  • Write notes: Create new notes or overwrite existing ones

  • Append to notes: Add content to existing notes

  • Search notes: Search through your vault by filename or content

  • List notes: Get a complete list of all notes in your vault

  • Delete notes: Remove notes from your vault

  • Create folders: Organize your vault with new folders

Related MCP server: Obsidian MCP Server

Prerequisites

  • Node.js (v18 or higher)

  • Claude Desktop app

  • An Obsidian vault

Installation

Step 1: Install the MCP Server

  1. Open a terminal/command prompt

  2. Navigate to the obsidian-mcp folder:

    cd path/to/obsidian-mcp
  3. Install dependencies:

    npm install
  4. Make the script executable (Mac/Linux only):

    chmod +x index.js

Step 2: Configure Claude Desktop

You need to edit Claude Desktop's configuration file to add the Obsidian MCP server.

On macOS:

  1. Open the config file:

    code ~/Library/Application\ Support/Claude/claude_desktop_config.json

    (Or use any text editor instead of code)

On Windows:

  1. Open the config file at:

    %APPDATA%\Claude\claude_desktop_config.json

Configuration:

Add the following to your claude_desktop_config.json file:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": [
        "/FULL/PATH/TO/obsidian-mcp/index.js"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "/FULL/PATH/TO/YOUR/OBSIDIAN/VAULT"
      }
    }
  }
}

Important: Replace the paths with your actual paths:

  • Replace /FULL/PATH/TO/obsidian-mcp/index.js with the full path to the index.js file

  • Replace /FULL/PATH/TO/YOUR/OBSIDIAN/VAULT with the full path to your Obsidian vault folder

Example for macOS:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": [
        "/Users/yourname/obsidian-mcp/index.js"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "/Users/yourname/Documents/MyObsidianVault"
      }
    }
  }
}

Example for Windows:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": [
        "C:\\Users\\YourName\\obsidian-mcp\\index.js"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "C:\\Users\\YourName\\Documents\\MyObsidianVault"
      }
    }
  }
}

Step 3: Restart Claude Desktop

After saving the configuration file, completely quit and restart Claude Desktop for the changes to take effect.

Usage

Once installed and configured, you can interact with your Obsidian vault through Claude. Here are some example prompts:

Reading Notes

  • "Read my note at Daily Notes/2024-11-26.md"

  • "Show me the contents of Projects/MyProject.md"

Creating/Writing Notes

  • "Create a new note called 'Meeting Notes.md' with the following content: [your content]"

  • "Write a daily journal entry in Daily Notes/2024-11-26.md"

Searching

  • "Search my Obsidian vault for notes about 'machine learning'"

  • "Find all notes that mention 'project deadline'"

Listing Notes

  • "List all the notes in my Obsidian vault"

  • "Show me all my notes"

Appending Content

  • "Append these ideas to my Ideas.md file: [your content]"

  • "Add this task to my Todo.md note"

Creating Folders

  • "Create a new folder called 'Research Papers' in my vault"

  • "Make a folder at Projects/2024/Q4"

Deleting Notes

  • "Delete the note at Archive/old-draft.md"

  • "Remove Temporary/scratch.md"

Troubleshooting

Claude doesn't recognize the Obsidian tools

  1. Make sure you've completely quit and restarted Claude Desktop

  2. Check that your claude_desktop_config.json file is valid JSON (no trailing commas, proper quotes)

  3. Verify the paths in the config file are correct and use full/absolute paths

  4. Check the Claude Desktop logs for errors:

    • macOS: ~/Library/Logs/Claude/mcp*.log

    • Windows: %APPDATA%\Claude\logs\mcp*.log

Permission errors

Make sure Claude has permission to access your Obsidian vault folder. On macOS, you may need to grant Full Disk Access to Claude Desktop in System Preferences > Security & Privacy.

Path issues

Always use full/absolute paths in the configuration file, not relative paths like ~/ or ./.

Security Note

This extension gives Claude full read/write access to your Obsidian vault. Only use it if you're comfortable with Claude being able to read and modify your notes. The server includes security checks to prevent accessing files outside your vault directory.

Support

If you encounter issues:

  1. Check the Claude Desktop logs for error messages

  2. Verify your Node.js version is 18 or higher: node --version

  3. Make sure all paths in the config are correct and absolute

  4. Try running the server manually to see if there are any errors:

    OBSIDIAN_VAULT_PATH="/path/to/vault" node /path/to/index.js

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for a history of changes to this project.

Acknowledgments

License

MIT - See LICENSE for details.

Available Tools

7 tools
append_noteB

Append content to an existing note in the Obsidian vault. If the note doesn't exist, it will be created.

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

create_folderC

Create a new folder in the Obsidian vault. Parent directories will be created if they don't exist.

Inputs: path (required).

delete_noteB

Delete a note from the Obsidian vault. Use with caution as this cannot be undone.

Inputs: path (required).

list_notesA

List all notes in the Obsidian vault with their paths and last modified dates.

Inputs: no named parameters.

read_noteA

Read the contents of a note in the Obsidian vault. Provide the path relative to the vault root (e.g., 'Daily Notes/2024-01-01.md' or 'Projects/MyProject.md').

Inputs: path (required).

search_notesA

Search for notes in the Obsidian vault by filename or content. Returns matching notes with excerpts.

Inputs: query (required).

write_noteA

Create a new note or overwrite an existing note in the Obsidian vault. Provide the path relative to the vault root. Parent directories will be created if they don't exist.

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

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

    Disambiguation5/5

    Each tool has a clearly distinct action and target resource: read, write, append, search, list, delete, and folder creation. The only potential overlap between write_note and append_note is explicitly resolved by their descriptions (overwrite vs. append). No ambiguous tool boundaries.

    Naming Consistency5/5

    All tools follow a consistent snake_case verb_noun pattern: read_note, write_note, append_note, search_notes, list_notes, delete_note, create_folder. The pluralization on note-related tools is natural and predictable.

    Tool Count5/5

    Seven tools is well-scoped for an Obsidian vault server, covering the essential note lifecycle operations without bloat. Each tool earns its place and there are no redundant or trivial tools.

    Completeness4/5

    Core note CRUD is fully covered: read, create/overwrite, append, search, list, and delete. Folder management is only partially covered (create_folder exists but no delete/rename/list folders), and there is no move/rename note operation, but these are minor gaps workable via other tools.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude Desktop to directly access and manage Obsidian vault files, supporting reading, writing, patching, searching, and file operations without requiring Obsidian to be open.
      ISC
    • F
      license
      A
      quality
      D
      maintenance
      Enables Claude to create, read, update, and search notes in a local Obsidian vault, with automatic YAML frontmatter and folder management.
      7
      1
      -