Skip to main content
Glama

Obsidian MCP Server

by quinny1187

Obsidian MCP Server

Direct file system access to Obsidian vaults through Model Context Protocol (MCP).

Features

  • Direct vault access - No plugins or REST API required
  • Auto-discovery - Finds vaults from Obsidian config and common locations
  • Full-text search - Search across all notes with regex support
  • Note operations - Read, write, append, prepend to notes
  • Vault management - List vaults, get statistics, browse files
  • Windows optimized - Handles Windows paths correctly

Installation

  1. Make sure the project is built:
cd C:\repos\obsidian-mcp npm install npm run build
  1. Add to Claude Desktop configuration:

Edit %APPDATA%\Claude\claude_desktop_config.json:

{ "mcpServers": { "obsidian-mcp": { "command": "node", "args": ["C:\\repos\\obsidian-mcp\\dist\\index.js"], "env": { "OBSIDIAN_VAULT": "C:\\Users\\YourName\\Documents\\YourVault" } } } }
  1. Restart Claude Desktop

Available Tools

Vault Management

  • list_vaults - Discover available Obsidian vaults
  • get_vault_info - Get statistics about a vault

Note Operations

  • read_note - Read a note with frontmatter and metadata
  • write_note - Create or update a note (overwrite/append/prepend)
  • list_notes - List all notes in vault or folder
  • search_vault - Full-text search with regex and case-sensitive options

Usage Examples

// List available vaults list_vaults() // Read a note read_note(vault_path: "C:\\Users\\Name\\Vault", note_path: "Daily Notes/2024-01-17") // Write a note write_note( vault_path: "C:\\Users\\Name\\Vault", note_path: "New Note", content: "# My New Note\n\nContent here", mode: "overwrite" ) // Search vault search_vault( vault_path: "C:\\Users\\Name\\Vault", query: "project", options: { case_sensitive: false } )

Vault Discovery

The server automatically discovers vaults from:

  1. Obsidian's configuration (%APPDATA%\obsidian\obsidian.json)
  2. Common locations:
    • %USERPROFILE%\Documents\Obsidian
    • %USERPROFILE%\OneDrive\Documents\Obsidian
  3. Environment variable OBSIDIAN_VAULT

Development

# Install dependencies npm install # Build npm run build # Run in development npm run dev # Type checking npm run typecheck

Troubleshooting

  • No vaults found: Make sure you have at least one Obsidian vault with .obsidian folder or .md files
  • Permission errors: Run Claude Desktop as the same user who owns the vault files
  • Path not found: Use full absolute paths for vault_path

Future Features

  • Graph navigation (trace links N levels deep)
  • Template execution
  • Smart search with fuzzy matching
  • Active file tracking
  • Partial file updates (patch operations)
  • Frontmatter management
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables direct file system access to Obsidian vaults with auto-discovery, full-text search, and note operations. Supports reading, writing, and searching across Obsidian notes without requiring plugins or REST API.

  1. Features
    1. Installation
      1. Available Tools
        1. Vault Management
        2. Note Operations
        3. Search
      2. Usage Examples
        1. Vault Discovery
          1. Development
            1. Troubleshooting
              1. Future Features

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  Enables AI assistants to interact with Obsidian vaults, providing tools for reading, creating, editing and managing notes and tags.
                  Last updated -
                  276
                  482
                  TypeScript
                  MIT License
                  • Apple
                • -
                  security
                  F
                  license
                  -
                  quality
                  Provides semantic search capability over Obsidian vaults and exposes recent notes as resources to Claude through the MCP protocol.
                  Last updated -
                  6
                  Python
                • A
                  security
                  A
                  license
                  A
                  quality
                  Provides programmatic search functionality for Obsidian vaults through a REST API interface, allowing external applications to search through notes and retrieve absolute paths to matching documents.
                  Last updated -
                  2
                  18
                  Python
                  MIT License
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  Provides a standardized interface for AI assistants to interact with Obsidian vaults through a local REST API, enabling reading, writing, searching, and managing notes.
                  Last updated -
                  52
                  TypeScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/quinny1187/obsidian-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server