Obsidian
JSON →Interacting with Obsidian via REST API
Install
npx @modelcontextprotocol/inspector Tools · 7
- list_files_in_vault Lists all files and directories in the root directory of your Obsidian vault
- list_files_in_dir Lists all files and directories in a specific Obsidian directory
- get_file_contents Return the content of a single file in your vault.
- search Search for documents matching a specified text query across all files in the vault
- patch_content Insert content into an existing note relative to a heading, block reference, or frontmatter field.
- append_content Append content to a new or existing file in the vault.
- delete_file Delete a file or directory from your vault.
Environment variables
OBSIDIAN_API_KEYOBSIDIAN_HOSTOBSIDIAN_PORTYOUR_OBSIDIAN_API_KEY
Links
★ 3,776 GitHub stars