obsidian_patch_active
Inserts, replaces or prepends content in the active note relative to a heading, block reference, or front-matter field
How to use it
obsidian_patch_active is exposed by the MCP Obsidian MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the obsidian_patch_active tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Obsidian
npx @modelcontextprotocol/inspector bun /path/to/repo/src/index.tsOther tools in MCP Obsidian (23)
Deletes the note that is currently active in the Obsidian UI
Deletes a specific file (or directory) in the vault
Deletes the current daily / weekly / monthly / quarterly / yearly note for the requested period
Executes a specific Obsidian command by its ID
Retrieves the full content of the active note (Markdown or JSON view)
Lists every command available in Obsidian’s command palette
Retrieves the content of a file in the vault (Markdown or JSON view)
Returns the content of the current periodic note for the requested period
Lists files and directories inside a specific folder of the vault
Lists all files and directories at the root of your vault
Opens the given file inside Obsidian (creates it if missing); optional flag to open in a new leaf
Inserts / replaces content in an arbitrary file relative to a heading, block reference, or front-matter field
Inserts / replaces content in a periodic note relative to a heading, block reference, or front-matter field
Appends Markdown to the end of the active note
Appends Markdown to a file (creates it if it doesn’t exist)
Appends Markdown to the periodic note (creates it if it doesn’t exist)
Replaces the entire body of the active note
Creates a new file or replaces the entire body of an existing file
Replaces the entire body of a periodic note
Runs a Dataview-DQL query across the vault and returns matching rows
Runs a JsonLogic query against structured note metadata
Performs a plain-text fuzzy search with optional surrounding context
Returns basic details about the Obsidian Local REST API server and your authentication status