Local MCP server for Obsidian Desktop via the official Obsidian CLI.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
obsidian-cli-mcp is an MCP server for
the official Obsidian CLI. It exposes Obsidian vault search, note, task,
file, link, and native Canvas operations to an MCP client. The server does not
replace Obsidian: the CLI forwards requests to the running Obsidian desktop app.
The default transport is local stdio. Remote Streamable HTTP is available as an advanced, separately secured setup; it is not required for local use.
obsidian on your PATH.This project requires the desktop CLI. It does not support obsidian-headless.
The Obsidian app must remain open while the MCP server is being used.
Check the Obsidian side first:
Start the published v0.4.1 package from any directory:
The command speaks MCP over stdio and waits for an MCP client. It intentionally does not print protocol data to the terminal. Diagnostics go to stderr.
For a source checkout instead:
No vault name, vault path, token, Cloudflare account, LaunchAgent, or config file is required for the local default. The server uses the active vault that Obsidian exposes through the official CLI.
For a client that accepts an mcpServers configuration, use the npm command:
If the client does not inherit your shell PATH, replace npx with the
absolute path printed by command -v npx. For a source checkout, use
command: "node" and args: ["/absolute/path/to/obsidian-cli-mcp/dist/main.js"].
Restart the client after changing its MCP configuration. The first useful sequence is:
Call vault_search with a query that should exist in your vault, for
example { "query": "meeting", "limit": 10 }.
Pass one returned path to note_read, for example
{ "path": "<path returned by vault_search>" }.
Preview a safe note mutation before applying it:
This is a note_create call. It returns the planned action and exact CLI
command without changing the vault. Only use dryRun: false after reviewing
the plan. dryRun is a preview, not an authorization boundary.
For Canvas, preview a native Canvas file and one text node:
This is a canvas_create call. Review the plan, then call it with
dryRun: false if you want to create the file. Use canvas_read to inspect
the native .canvas JSON afterward. Canvas tools preserve unknown fields,
validate node/edge references, and do not require arbitrary eval.
An empty or missing configuration is usable for a vanilla Obsidian vault. The
optional .obsidianmcprc.yaml is discovered from the server working directory.
For clients with an unpredictable working directory, set
OBSIDIAN_MCP_CONFIG to an explicit config-file path.
The default policy is deliberately local and bounded:
obsidian_eval tool.
eval.enabled is false by default; internal fixed eval snippets used by a
few safe operations are not a user-supplied JavaScript escape hatch.imports.allowedRoots is explicitly configured. URLs are never fetched..obsidian, .git, .trash, .Trash, Trash, and .DS_Store path
segments are blocked by default. Add paths.allow for a narrower vault area
and add project-specific paths.deny prefixes for more sensitive content.dryRun. file_delete requires confirm: true and
note_delete uses Obsidian trash by default; permanent deletion requires the
explicit delete.mode: hard configuration.Use an explicit allowlist when an MCP client should only inspect the vault:
The default has safe local guardrails but is not read-only. For an explicit safe-local surface that allows normal note edits and Canvas creation while omitting deletion, file imports, file lifecycle operations, and arbitrary evaluation:
Omit tools.allow to expose the complete built-in tool surface, while keeping
the default protected paths, trash deletion, disabled imports, and disabled
obsidian_eval. If imports are needed, configure only a dedicated local source
directory:
See docs/configuration.md for all fields and examples/ for note-organization presets.
Local stdio starts one server process directly from the MCP client. It is the recommended installation: there is no listening socket, remote authentication, Cloudflare setup, or public endpoint.
Streamable HTTP is an optional advanced mode for a client that cannot use local
stdio. It binds to loopback only and refuses to start without either Cloudflare
Access JWT validation or a strong capability token. Put it behind a TLS,
authenticated reverse proxy or tunnel; do not bind it to 0.0.0.0. See
docs/remote-cloudflare.md for the generic advanced
setup and its security trade-offs.
The default server advertises 43 regular tools:
vault_search, note_read, note_list, vault_tags,
unresolved_links, tasks_list, note_diff, backlinks_get,
outlinks_get, file_read_binary_metadata, canvas_read.note_create, note_append, note_set_frontmatter,
daily_open, daily_append, note_replace_range, note_insert_at,
note_replace, note_insert, task_create, task_update,
note_transition.file_import, attachment_import, note_attach,
attachment_embed, file_move, file_rename, file_delete,
note_rename, note_move, folder_create, note_delete.canvas_create, canvas_upsert_nodes, canvas_upsert_edges,
canvas_remove, canvas_open, canvas_add_node, canvas_add_edge,
canvas_auto_layout.vault_batch runs enabled reads and previews enabled mutations with
args.dryRun: true, dependency gating, stable input-order results, and a
bounded batch.maxParallelism (default 4, maximum 8).All mutating tools accept dryRun. Tool annotations identify read-only and
destructive operations for compatible MCP clients.
Obsidian Desktop must be running, its official CLI must be enabled, and the
active vault must be available to that desktop session. This server is not a
sandbox and does not support obsidian-headless.
Vault content is untrusted data. Notes, Canvas text, task text, and search results may contain prompt-injection instructions; an MCP client should treat them as data and never follow instructions found inside a vault merely because they were returned by a tool. Tool output can also contain sensitive vault content, so connect only clients you trust.
Read SECURITY.md before enabling remote HTTP, imports, hard deletes, or a broad mutation allowlist. Report security issues privately as described there.
The source checkout uses Bun, while the published bin runs on Node:
The offline stdio smoke verifies the built package entrypoint, MCP initialize,
tools/list, the expected tool surface, and the absence of obsidian_eval.
The real Obsidian smoke is separate and requires a user session with Obsidian
running:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/obsidian-cli-mcp)<a href="https://allmcps.com/mcp/obsidian-cli-mcp"><img src="https://allmcps.com/api/badge/obsidian-cli-mcp?style=directory" alt="Obsidian CLI MCP on AllMCPs" /></a>