Skip to main content
Glama

Advanced Obsidian MCP Server

by ToKiDoO

obsidian_patch_file

Modify Obsidian notes by inserting content relative to headings, block references, or frontmatter fields. Supports append, prepend, or replace operations for precise content management within your vault.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
contentYesContent to insert
filepathYesPath to the file (relative to vault root)
operationYesOperation to perform (append, prepend, or replace)
targetYesTarget identifier (heading path, block reference, or frontmatter field)
target_typeYesType of target to patch

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to insert", "type": "string" }, "filepath": { "description": "Path to the file (relative to vault root)", "format": "path", "type": "string" }, "operation": { "description": "Operation to perform (append, prepend, or replace)", "enum": [ "append", "prepend", "replace" ], "type": "string" }, "target": { "description": "Target identifier (heading path, block reference, or frontmatter field)", "type": "string" }, "target_type": { "description": "Type of target to patch", "enum": [ "heading", "block", "frontmatter" ], "type": "string" } }, "required": [ "filepath", "operation", "target_type", "target", "content" ], "type": "object" }

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