Skip to main content
Glama
derrikjb

Obsidian MCP Server

by derrikjb

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoEnable debug loggingfalse
MCP_PORTNoPort for HTTP mode3000
MCP_TRANSPORTNoTransport mode for the server: 'stdio' or 'http'stdio
OBSIDIAN_API_KEYYesAPI Key from Obsidian's Local REST API settings
OBSIDIAN_API_URLNoObsidian REST API URLhttp://127.0.0.1:27123

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
vault_get_file

Get the content of a file from the Obsidian vault. Can return raw markdown, parsed JSON with metadata (tags, frontmatter, stats), or a document map showing headings, blocks, and frontmatter fields.

vault_create_file

Create a new file in the vault or completely replace an existing file's content. Use this when you want to write the entire file content at once.

vault_append_to_file

Append content to the end of an existing file. If the file doesn't exist, it will be created. Use this to add content without replacing existing content.

vault_patch_file

Partially update a file by inserting content relative to a heading, block reference, or frontmatter field. Operations: append (after target), prepend (before target), or replace. Useful for updating specific sections without rewriting the entire file.

vault_delete_file

Delete a file from the Obsidian vault. This operation cannot be undone.

vault_list

List files and directories in the Obsidian vault. Returns a formatted list showing directories (ending with /) and files. Use this to explore the vault structure.

search_simple

Perform a simple text search across all files in the vault. Returns matching files with context around each match. Best for straightforward text searches.

search_advanced

Perform an advanced search using Dataview DQL or JsonLogic. Dataview is best for querying metadata and frontmatter (e.g., "TABLE FROM #tag"). JsonLogic is best for complex logical queries on note properties.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/derrikjb/Obsidian_MCP'

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