Skip to main content
Glama

Advanced Obsidian MCP Server

by ToKiDoO

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
obsidian_get_active_note

Get the content and metadata of the currently active note in Obsidian. Always returns the note that is most recently edited (edit with user).

obsidian_simple_search

Simple search for documents matching a specified text query across all files in the vault. Use this tool when you want to do a simple text search

obsidian_complex_search

Complex search for documents using a JsonLogic query. Supports standard JsonLogic operators plus 'glob' and 'regexp' for pattern matching. Results must be non-falsy.

Use this tool when you want to do a complex search, e.g. for all documents with certain tags etc. ALWAYS follow query syntax in examples. Examples 1. Match all markdown files {"glob": ["*.md", {"var": "path"}]} 2. Match all markdown files with 1221 substring inside them { "and": [ { "glob": ["*.md", {"var": "path"}] }, { "regexp": [".*1221.*", {"var": "content"}] } ] } 3. Match all markdown files in Work folder containing name Keaton { "and": [ { "glob": ["*.md", {"var": "path"}] }, { "regexp": [".*Work.*", {"var": "path"}] }, { "regexp": ["Keaton", {"var": "content"}] } ] }
obsidian_execute_commands

Execute one or more commands in obsidian interface, in order. For commands used on specific notes, make sure to open a note first.

obsidian_periodic_notes

Get current periodic note for the specified period. Returns both comprehensive metadata (tags, links, titles, etc.) and note content using the enhanced API approach.

obsidian_delete_file

Delete a file or directory from the vault.

obsidian_recent_changes

Get recently modified files in the vault.

obsidian_put_file

Create a new file in your vault or update the content of an existing one in your vault.

obsidian_understand_vault

Get a comprehensive understanding of the vault structure. Returns: 1. directory tree representation and 2. NetworkX graph of note connections used to understand how different notes (.md) and other files (e.g. images, PDFs, referenced/attached) are connected. Combines filesystem directory structure with note relationship graph between notes (.md files).

obsidian_recent_periodic_notes

Get most recent periodic notes for the specified period type. When include_content=True, return notes' comprehensive metadata (tags, links, titles, etc.) and note content using the enhanced API approach.

obsidian_open_files

Open one or more files in the vault in a new leaf.

obsidian_batch_get_files

Return the contents and metadata of one or more notes (.md files) in your vault.

obsidian_list_files_in_dir

Lists all files and directories that exist in a specific Obsidian directory.

obsidian_patch_file

Insert content into an existing note relative to a heading, block reference, or frontmatter field.

obsidian_list_commands

List all available commands you can run in obsidian interface. For commands used on specific notes, make sure to open a note first.

obsidian_append_to_file

Append content to a new or existing file in the vault.

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/ToKiDoO/mcp-obsidian-advanced'

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