mcp-obsidian-cli
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OBSIDIAN_VAULT | Yes | Target vault by name | |
| XDG_CONFIG_HOME | No | Base path for config file | ~/.config |
| OBSIDIAN_CLI_PATH | No | Path to CLI binary | obsidian-cli |
| OBSIDIAN_TIMEOUT_MS | No | Command timeout in milliseconds | 15000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| obsidianA | Run any Obsidian CLI command. Pass the full command string exactly as you
would on the terminal (minus the leading 'obsidian' binary name). Leading
Intent -> verb cheatsheet. Use the canonical verb on the right; the convenience
tools ( PUT put new note from template -> templater:create-from-template template=… file=… create plain note -> create path=… content=… append to today's daily -> daily:append content=… GET read note -> read path=… (or file=…) search content -> search:context query=… [path=… limit=…] list properties / read one -> properties [file=…] | property:read name=… file=… list backlinks -> backlinks file=… MOVE/RENAME move or rename note -> move file=… to=… (or path=…) DELETE delete note -> delete path=… DISCOVER list files -> files [folder=… ext=…] list tags with counts -> tags counts [sort=name|count] list tasks -> tasks [daily todo done path=…] recently opened -> recents CLI reference -> help [verb] If you don't see the intent here, the CLI's |
| obsidian_daily_readA | Read today's daily note contents. Returns the full markdown content of today's daily note. Returns an error if no daily note exists for today. |
| obsidian_daily_pathA | Get the file path of today's daily note. Returns the vault-relative path (e.g. 'Daily/2026-04-03.md'). Useful for constructing paths for other tools. |
| obsidian_daily_appendA | Append content to today's daily note. Parameters: content (required) — markdown text to append at the end of today's daily note Examples: obsidian_daily_append({ content: "- Meeting with team at 3pm" }) obsidian_daily_append({ content: "> [!tip] Remember\n> Review PR before EOD" }) |
| obsidian_readA | Read a note by file name (wikilink-style) or exact path. Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') One of file or path is required. Examples: obsidian_read({ file: "Meeting Notes" }) obsidian_read({ path: "Projects/todo.md" }) |
| obsidian_searchA | Full-text search across the vault with line context. Parameters: query (required) — search terms, supports Obsidian query syntax path (optional) — restrict results to a folder path limit (optional) — max number of files to return Examples: obsidian_search({ query: "meeting notes" }) obsidian_search({ query: "project status", path: "Work/", limit: 5 }) |
| obsidian_tagsA | List tags in the vault with counts. Returns structured JSON content (an array of { tag, count } objects) alongside the text form, so clients can consume it without re-parsing. Parameters: sort (optional) — 'name' or 'count' (default: name) Examples: obsidian_tags({}) obsidian_tags({ sort: "count" }) |
| obsidian_tasksA | List tasks from vault notes. Returns structured JSON content (an array of task objects with status, text, file, and line) alongside the text form, so clients can consume it without re-parsing. Parameters: daily (optional) — true to show only today's daily note tasks todo (optional) — true to show only incomplete tasks done (optional) — true to show only completed tasks path (optional) — filter by file path Examples: obsidian_tasks({ daily: true }) obsidian_tasks({ todo: true, path: "Projects/" }) |
| obsidian_propertiesA | List or read frontmatter properties. Parameters: file (optional) — note name for wikilink resolution path (optional) — exact file path name (optional) — specific property name to read (requires file or path) Examples: obsidian_properties({}) — list all properties with counts obsidian_properties({ file: "My Note" }) — properties of a specific note obsidian_properties({ file: "My Note", name: "status" }) — read one property |
| obsidian_createA | Create a new PLAIN note (no Templater expansion). This wraps the CLI's Parameters: name (optional) — file name for the new note path (optional) — vault-relative path content (optional) — initial markdown content (literal, no placeholder expansion) Examples: obsidian_create({ name: "Meeting 2026-04-03", content: "# Meeting Notes\n\n- Attendees: ..." }) obsidian_create({ path: "Projects/new-idea.md", content: "# New idea" }) |
| obsidian_create_from_templateA | Create a new note from a Templater template, expanding placeholders. This wraps the CLI's Parameters: template (required) — vault-relative path to the Templater template (e.g. "Templates/daily.md") file (required) — vault-relative output path for the new note (e.g. "Daily/2026-05-18.md") Examples: obsidian_create_from_template({ template: "Templates/daily.md", file: "Daily/2026-05-18.md" }) obsidian_create_from_template({ template: "Templates/project.md", file: "Projects/new-idea.md" }) |
| obsidian_property_setA | Set a frontmatter property on a note. Parameters: name (required) — property name value (required) — property value (see type for multi-valued props) type (optional) — property type: text (default) | list | number | checkbox | date | datetime file (optional) — note name (wikilink resolution) path (optional) — exact file path One of file or path is required. Multi-valued properties (tags, aliases, Links, etc.): You MUST pass type="list" AND a JSON-array string as value. Without type="list" the value is written as a single scalar string — a comma-separated value is NOT split into YAML list items, and bracketed wikilinks are never split. Use a JSON array universally; it is unambiguous for both plain strings and wikilinks. Examples: obsidian_property_set({ name: "status", value: "done", file: "My Task" }) obsidian_property_set({ name: "tags", value: "["project", "active"]", type: "list", path: "Work/todo.md" }) obsidian_property_set({ name: "Links", value: "["[[plan]]", "[[baseline]]"]", type: "list", file: "My Task" }) |
| obsidian_backlinksA | List backlinks to a note. Parameters: file (optional) — note name (wikilink resolution) path (optional) — exact file path Examples: obsidian_backlinks({ file: "Project Plan" }) obsidian_backlinks({ path: "Ideas/brainstorm.md" }) |
| obsidian_filesA | List files in the vault or a specific folder. Parameters: folder (optional) — filter by folder path ext (optional) — filter by file extension (e.g. 'md', 'canvas') Examples: obsidian_files({}) obsidian_files({ folder: "Projects/", ext: "md" }) |
| obsidian_moveA | Move or rename a note, selecting it by file name or exact path. Wraps the CLI's Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') to (required) — destination folder or vault-relative path One of file or path is required. Examples: obsidian_move({ file: "My Note", to: "Archive/" }) obsidian_move({ path: "Inbox/idea.md", to: "Projects/idea.md" }) |
| obsidian_outlineA | List the heading outline of a note, selecting it by file name or exact path. Wraps the CLI's Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') format (optional) — output format: 'tree' (default), 'md', or 'json' total (optional) — true to return the heading count instead of the outline One of file or path is required. Examples: obsidian_outline({ file: "Meeting Notes" }) obsidian_outline({ path: "Projects/plan.md", format: "json" }) obsidian_outline({ file: "Long Doc", total: true }) |
| obsidian_commandA | Execute an Obsidian command by its canonical command ID. Wraps the CLI's Discovering IDs: run the generic Parameters: id (required) — the command ID to execute Examples: obsidian_command({ id: "editor:toggle-bold" }) obsidian_command({ id: "daily-notes" }) |
| obsidian_historyA | List the saved file-history versions of a note, selecting it by file name or exact path. Wraps the CLI's Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') One of file or path is required. Examples: obsidian_history({ file: "Project Plan" }) obsidian_history({ path: "Daily/2026-05-20.md" }) |
| obsidian_template_readA | Read the content of a template by name from the vault's templates folder. Wraps the CLI's Parameters: name (required) — template name (as it appears in the templates folder) resolve (optional) — true to resolve/expand template variables title (optional) — title used for variable resolution (with resolve) Examples: obsidian_template_read({ name: "daily" }) obsidian_template_read({ name: "meeting", resolve: true, title: "Standup 2026-05-20" }) |
| obsidian_renameA | Rename a note, selecting it by file name or exact path. Wraps the CLI's Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') name (required) — the new file name One of file or path is required. Examples: obsidian_rename({ file: "Draft", name: "Final" }) obsidian_rename({ path: "Inbox/idea.md", name: "refined-idea.md" }) |
| obsidian_deleteA | Delete a note, selecting it by file name or exact path. Wraps the CLI's Parameters: file (optional) — note name using wikilink resolution (e.g. 'My Note') path (optional) — exact vault-relative path (e.g. 'folder/My Note.md') permanent (optional) — true to skip trash and delete permanently (irreversible) One of file or path is required. Examples: obsidian_delete({ file: "Old Draft" }) — moves to trash obsidian_delete({ path: "Inbox/spam.md", permanent: true }) — irreversible |
| obsidian_recentsA | List recently opened files. Returns the most recently opened files in the vault, ordered by last access time. |
| obsidian_helpA | Get Obsidian help: a live verb index from the CLI, or reference docs by slug. Parameters: topic (optional) — a verb name (e.g. "read", "daily:append", "property:set") OR a reference-doc slug (cli, markdown, bases, canvas) Behavior:
Examples:
obsidian_help({}) — browse the verb catalog
obsidian_help({ topic: "read" }) — live verb help for |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| obsidian-cli | CLI usage patterns, parameter syntax, and command examples for the Obsidian CLI. Adapted from kepano/obsidian-skills (MIT License, https://github.com/kepano/obsidian-skills). |
| obsidian-markdown | Wikilinks, embeds, callouts, properties, tags, and other Obsidian-specific markdown syntax. Adapted from kepano/obsidian-skills (MIT License, https://github.com/kepano/obsidian-skills). |
| obsidian-bases | Bases syntax for database-like views: filters, formulas, view types, and summaries. Adapted from kepano/obsidian-skills (MIT License, https://github.com/kepano/obsidian-skills). |
| obsidian-canvas | JSON Canvas format for visual canvases: node types, edges, groups, and layout. Adapted from kepano/obsidian-skills (MIT License, https://github.com/kepano/obsidian-skills). |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| vault | The connected vault: name, root path, file and folder counts, and total size. |
| vault-files | File count for the connected vault plus a capped sample of vault-relative file paths. |
| vault-tags | Tags in the connected vault with their usage counts. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/stonematt/mcp-obsidian-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server