Back to Browse

Obsidian Cli MCP Server

ProductivityModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Save chat notes from Claude Desktop to your vault — MCP on Obsidian CLI. Keep what matters.

About

Save chat notes from Claude Desktop to your vault — MCP on Obsidian CLI. Keep what matters.

Security Report

5.2
Moderate5.2Moderate Risk

This is a well-structured MCP server with proper input validation, reasonable permission scoping, and no critical security vulnerabilities. The server wraps the Obsidian CLI as a pass-through interface with typed convenience tools. Minor code quality observations around error handling and logging do not significantly impact the security posture. Permissions (file_read, file_write, env_vars, process_spawn) are appropriate for a local note-taking tool that orchestrates Obsidian operations. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

4 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

env_vars

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Target vault name. If unset or unknown, the server prompts the caller on first tool use, listing the vaults Obsidian knows about.Optional

Environment variable: OBSIDIAN_VAULT

Path to the obsidian-cli binary. Auto-discovered on macOS; set explicitly on Linux/Windows or if the binary is non-standard.Optional

Environment variable: OBSIDIAN_CLI_PATH

Per-command timeout in milliseconds.Optional

Environment variable: OBSIDIAN_TIMEOUT_MS

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-stonematt-mcp-obsidian-cli": {
      "env": {
        "OBSIDIAN_VAULT": "your-obsidian-vault-here",
        "OBSIDIAN_CLI_PATH": "your-obsidian-cli-path-here",
        "OBSIDIAN_TIMEOUT_MS": "your-obsidian-timeout-ms-here"
      },
      "args": [
        "-y",
        "mcp-obsidian-cli"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

mcp-obsidian-cli

Obsidian CLI npm version npm downloads MCP Registry Node License: MIT

Your thinking starts in Claude Desktop, not in Obsidian. You research, draft, argue with the model, and when something's worth keeping you say "save this to my vault." It lands in the right place: your template, your properties, today's daily note, wired into your link graph. No tab-switch, no copy-paste.

Saving a Claude Desktop conversation into an Obsidian vault, then searching the vault from chat

Two halves:

  • Capture — turn a conversation into a real note, filed where it belongs.
  • Augment — pull what's already in the vault (backlinks, full-text search) back into the chat to inform or update a note.

Needs Obsidian running. It can sit minimized, so you never switch to it.

On Claude Code? The native obsidian-cli skill fits better there: direct CLI, no MCP layer. Use that.

Quick start

New here? The Install brief has a one-line prompt you paste into Claude Code — it then does the whole setup (checks Node, enables the Obsidian CLI, edits your Claude Desktop config, verifies it works).

npx mcp-obsidian-cli

Claude Desktop config

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "mcp-obsidian-cli"],
      "env": {
        "OBSIDIAN_VAULT": "my-vault"
      }
    }
  }
}

Requirements

  • Obsidian running with its command line interface enabled (Settings → General → Advanced → Command line interface). The CLI ships built into Obsidian — nothing extra to install.
  • obsidian-cli reachable — on your PATH, or point OBSIDIAN_CLI_PATH at it (typically /Applications/Obsidian.app/Contents/MacOS/obsidian-cli on macOS).
  • Node.js >= 18

Full walkthrough: docs/INSTALL.md.

How it works

The server exposes Obsidian CLI commands as MCP tools. A generic pass-through tool handles the full CLI surface (80+ commands), plus typed convenience tools for common operations:

ToolDescription
obsidianGeneric pass-through — run any CLI command (ships intent→verb cheatsheet, pre-call manifest validation, reload detection)
obsidian_helpManifest-backed help — list verbs by category, or look up a single verb / doc topic
obsidian_daily_readRead today's daily note
obsidian_daily_appendAppend to daily note
obsidian_readRead a note by name or path
obsidian_searchFull-text search with context
obsidian_tagsList tags with counts
obsidian_tasksQuery tasks (daily, todo, done)
obsidian_propertiesRead frontmatter properties
obsidian_createCreate a new plain note (no Templater expansion)
obsidian_create_from_templateCreate a note from a Templater template (expands <% ... %> placeholders)
obsidian_property_setSet a frontmatter property
obsidian_backlinksList backlinks to a note
obsidian_filesList vault files
obsidian_recentsRecently opened files

The generic obsidian tool means the MCP server never falls behind the CLI — new CLI commands work immediately without a server update.

Environment variables

VariableDefaultDescription
OBSIDIAN_VAULT(none)Target vault by name
OBSIDIAN_CLI_PATHobsidian-cliPath to CLI binary
OBSIDIAN_TIMEOUT_MS15000Command timeout
XDG_CONFIG_HOME~/.configBase path for config file

Config file

The server can read settings from a YAML config file:

  • Default: ~/.config/mcp-obsidian-cli/config.yaml
  • With XDG_CONFIG_HOME: $XDG_CONFIG_HOME/mcp-obsidian-cli/config.yaml

Config file format:

vault: "my-vault"
cliPath: "obsidian-cli"
timeoutMs: 15000

Config precedence: env vars > config file > hardcoded defaults

What it can do

It talks to the running Obsidian instance, so it works with your vault the way Obsidian sees it:

  • Backlinks and full-text search across your resolved link graph and search index (the augment half).
  • Templater templates and typed frontmatter properties when creating or updating notes.
  • Daily notes, task queries, and tag counts.
  • 80+ commands through the generic pass-through. No API keys, no REST plugin. Just the official Obsidian CLI.

Bugs / requests

File an issue: https://github.com/stonematt/mcp-obsidian-cli/issues/new/choose. Bug template asks for version, MCP client, tool call, and response — quick to fill, fast to act on.

License

MIT

ko-fi

Maintained by @stonematt Licensed under the MIT License

Trademark Notice: "Obsidian" is a trademark of Obsidian Publishing, Inc. This project is not affiliated with or endorsed by Obsidian Publishing.

Reviews

No reviews yet

Be the first to review this server!