Local MCP server for Obsidian Desktop via the official Obsidian CLI.
MCPpedia last refreshed this data
io.github.dariuscorvus/obsidian-cli-mcp is an MCP server that local MCP server for Obsidian Desktop via the official Obsidian CLI. Its tool list has not been published yet over stdio and http, requires no API key, and scores 79/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"obsidian": {
"args": [
"--yes",
"--package=@dariuscodes/obsidian-cli-mcp@0.4.1",
"obsidian-cli-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Local MCP server for Obsidian Desktop via the official Obsidian CLI.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@dariuscodes/obsidian-cli-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @dariuscodes/obsidian-cli-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in productivity
MCP server for monday.com integration.
Official Todoist MCP server. Manage tasks and projects. Hosted, no API key needed.
Local-first AI memory with knowledge graphs and hybrid search. 17+ AI tools via MCP. Free.
Give AI agents access to your Obsidian vault via local files or Self-hosted LiveSync.
MCP Security Weekly
Get CVE alerts and security updates for io.github.dariuscorvus/obsidian-cli-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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:
command -v obsidian
obsidian version
obsidian vault
Start the published v0.4.1 package from any directory:
npx --yes --package=@dariuscodes/obsidian-cli-mcp@0.4.1 obsidian-cli-mcp
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:
git clone https://github.com/DariusCorvus/obsidian-cli-mcp.git
cd obsidian-cli-mcp
bun install --frozen-lockfile
bun run build
node dist/main.js
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:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"--yes",
"--package=@dariuscodes/obsidian-cli-mcp@0.4.1",
"obsidian-cli-mcp"
]
}
}
}
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:
{
"name": "MCP smoke note",
"content": "Created after reviewing the plan.",
"dryRun": true
}
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:
{
"path": "MCP smoke.canvas",
"nodes": [
{
"id": "hello",
"type": "text",
"x": 0,
"y": 0,
"width": 320,
"height": 180,
"text": "Hello from MCP"
}
],
"dryRun": true
}
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.
T