Obsidian CLI passthrough
obsidian_cliRun any Obsidian CLI command against your vault to handle operations not covered by typed tools, with automatic vault targeting and confirmation for state-changing actions.
Instructions
Run any command against the Obsidian vault via the official Obsidian CLI. Escape hatch for the long tail not covered by the typed tools. Obsidian must be running on this Mac.
Syntax Parameters take a value with = e.g. "query=meeting notes" Flags are bare words e.g. "todo", "total", "counts" Multiline content uses \n and \t inside the value file= resolves like a wikilink, path= is exact from the vault root Omitting file and path targets the currently active file, avoid this for writes
Vault targeting is handled automatically: a vault= token is prepended unless you pass your own.
Examples ["search", "query=quarterly review", "limit=10"] ["tasks", "todo", "verbose"] ["backlinks", "file=Main Notes", "counts"] ["files", "folder=Journal", "total"] ["help"] for the full command list, ["help", "tasks"] for one command
State-changing commands (delete, move, rename, plugin toggles, themes, snippets, publish, command execution) require confirm: true. A few (eval, restart, plugin install and uninstall, devtools) are blocked unless the server runs with OBSIDIAN_MCP_ALLOW_DANGEROUS=1.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"args": "<args>"
},
"name": "obsidian_cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | CLI tokens, pre-split into an array. First token is the command, e.g. ["search","query=budget"]. Never a single shell string. | |
| vault | No | Override the target vault. | |
| confirm | No | Required for state-changing commands and for the overwrite and permanent flags. | |
| timeout_ms | No | Per-command timeout in ms. Defaults to 20000. |