MCP Obsidian
未认领MCP server for Obsidian (TypeScript + Bun)
安装
npx @modelcontextprotocol/inspector bun /path/to/repo/src/index.ts工具(24 个)
obsidian_delete_active
Deletes the note that is currently active in the Obsidian UI
obsidian_delete_file
Deletes a specific file (or directory) in the vault
obsidian_delete_periodic
Deletes the current daily / weekly / monthly / quarterly / yearly note for the requested period
obsidian_execute_command
Executes a specific Obsidian command by its ID
obsidian_get_active
Retrieves the full content of the active note (Markdown or JSON view)
obsidian_get_commands
Lists every command available in Obsidian’s command palette
obsidian_get_file
Retrieves the content of a file in the vault (Markdown or JSON view)
obsidian_get_periodic
Returns the content of the current periodic note for the requested period
obsidian_list_vault_directory
Lists files and directories inside a specific folder of the vault
obsidian_list_vault_root
Lists all files and directories at the root of your vault
obsidian_open_file
Opens the given file inside Obsidian (creates it if missing); optional flag to open in a new leaf
obsidian_patch_active
Inserts, replaces or prepends content in the active note relative to a heading, block reference, or front-matter field
obsidian_patch_file
Inserts / replaces content in an arbitrary file relative to a heading, block reference, or front-matter field
obsidian_patch_periodic
Inserts / replaces content in a periodic note relative to a heading, block reference, or front-matter field
obsidian_post_active
Appends Markdown to the end of the active note
obsidian_post_file
Appends Markdown to a file (creates it if it doesn’t exist)
obsidian_post_periodic
Appends Markdown to the periodic note (creates it if it doesn’t exist)
obsidian_put_active
Replaces the entire body of the active note
obsidian_put_file
Creates a new file or replaces the entire body of an existing file
obsidian_put_periodic
Replaces the entire body of a periodic note
obsidian_search_dataview
Runs a Dataview-DQL query across the vault and returns matching rows
obsidian_search_json_logic
Runs a JsonLogic query against structured note metadata
obsidian_simple_search
Performs a plain-text fuzzy search with optional surrounding context
obsidian_status
Returns basic details about the Obsidian Local REST API server and your authentication status