Skip to main content
Glama

Obsidian MCP

by takuya0206

patchNote

Insert or modify content in Obsidian notes relative to headings, block references, or frontmatter fields. Choose append, prepend, or replace operations for precise updates.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
contentYesContent to be inserted or used for replacement
contentTypeNo
operationYesOperation to perform (append, prepend, or replace)
pathYes
targetYesTarget identifier - For heading: Use a heading path string. For nested headings, use '::' as a delimiter (e.g., '## Heading 1 ### Subheading 1' must be 'Heading 1::Subheading 1'). The path should match the exact heading text. For headings with special characters, use URL encoding. - For block: Use the block ID (e.g., '2d9b4a'). - For frontmatter: Use the frontmatter field name (e.g., 'tags', 'date', 'title').
targetDelimiterNo
targetTypeYesType of target to patch (heading, block, or frontmatter)
trimTargetWhitespaceNo

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "content": { "description": "Content to be inserted or used for replacement", "minLength": 1, "type": "string" }, "contentType": { "type": "string" }, "operation": { "description": "Operation to perform (append, prepend, or replace)", "enum": [ "append", "prepend", "replace" ], "type": "string" }, "path": { "minLength": 1, "type": "string" }, "target": { "description": "Target identifier\n - For heading: Use a heading path string. For nested headings, use '::' as a delimiter (e.g., '## Heading 1 ### Subheading 1' must be 'Heading 1::Subheading 1'). The path should match the exact heading text. For headings with special characters, use URL encoding.\n - For block: Use the block ID (e.g., '2d9b4a').\n - For frontmatter: Use the frontmatter field name (e.g., 'tags', 'date', 'title').", "minLength": 1, "type": "string" }, "targetDelimiter": { "type": "string" }, "targetType": { "description": "Type of target to patch (heading, block, or frontmatter)", "enum": [ "heading", "block", "frontmatter" ], "type": "string" }, "trimTargetWhitespace": { "type": "boolean" } }, "required": [ "path", "operation", "targetType", "target", "content" ], "type": "object" }

Other Tools from Obsidian MCP

Related Tools

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

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