Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
mcp-obsidian-cli logo

mcp-obsidian-cli

stonematt/mcp-obsidian-cli
1 starsv1.3.2STDIORegistry activeMITUpdated 2026-05-24Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add mcp-obsidian-cli -- npx -y mcp-obsidian-cli

Summary

Enables capturing Claude conversations as Obsidian notes and searching the vault from chat, using the Obsidian CLI.

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add mcp-obsidian-cli -- npx -y mcp-obsidian-cli

Claude Desktop

Add this to claude_desktop_config.json under Settings → Developer → Edit Config:

{
  "mcpServers": {
    "mcp-obsidian-cli": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-obsidian-cli"
      ],
      "env": {
        "OBSIDIAN_VAULT": "<OBSIDIAN_VAULT>",
        "OBSIDIAN_CLI_PATH": "<OBSIDIAN_CLI_PATH>",
        "OBSIDIAN_TIMEOUT_MS": "<OBSIDIAN_TIMEOUT_MS>"
      }
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "mcp-obsidian-cli": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-obsidian-cli"
      ],
      "env": {
        "OBSIDIAN_VAULT": "<OBSIDIAN_VAULT>",
        "OBSIDIAN_CLI_PATH": "<OBSIDIAN_CLI_PATH>",
        "OBSIDIAN_TIMEOUT_MS": "<OBSIDIAN_TIMEOUT_MS>"
      }
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "mcp-obsidian-cli": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-obsidian-cli"
      ],
      "env": {
        "OBSIDIAN_VAULT": "<OBSIDIAN_VAULT>",
        "OBSIDIAN_CLI_PATH": "<OBSIDIAN_CLI_PATH>",
        "OBSIDIAN_TIMEOUT_MS": "<OBSIDIAN_TIMEOUT_MS>"
      }
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI — run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add mcp-obsidian-cli --env OBSIDIAN_VAULT=<OBSIDIAN_VAULT> --env OBSIDIAN_CLI_PATH=<OBSIDIAN_CLI_PATH> --env OBSIDIAN_TIMEOUT_MS=<OBSIDIAN_TIMEOUT_MS> -- npx -y mcp-obsidian-cli

# or add to ~/.codex/config.toml:
[mcp_servers.mcp-obsidian-cli]
command = "npx"
args = ["-y", "mcp-obsidian-cli"]
[mcp_servers.mcp-obsidian-cli.env]
OBSIDIAN_VAULT = "<OBSIDIAN_VAULT>"
OBSIDIAN_CLI_PATH = "<OBSIDIAN_CLI_PATH>"
OBSIDIAN_TIMEOUT_MS = "<OBSIDIAN_TIMEOUT_MS>"

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "mcp-obsidian-cli": {
        "command": "npx",
        "args": [
          "-y",
          "mcp-obsidian-cli"
        ],
        "env": {
          "OBSIDIAN_VAULT": "<OBSIDIAN_VAULT>",
          "OBSIDIAN_CLI_PATH": "<OBSIDIAN_CLI_PATH>",
          "OBSIDIAN_TIMEOUT_MS": "<OBSIDIAN_TIMEOUT_MS>"
        }
      }
    }
  }
}

Replace the <PLACEHOLDER> values with your own credentials — see the configuration table below.

Configuration

mcp-obsidian-cli reads the following environment variables:

VariableRequired
OBSIDIAN_VAULTOptional
OBSIDIAN_CLI_PATHOptional
OBSIDIAN_TIMEOUT_MSOptional

README.md

mcp-obsidian-cli

![Obsidian CLI](https://help.obsidian.md/cli) ![npm version](https://www.npmjs.com/package/mcp-obsidian-cli) ![npm downloads](https://www.npmjs.com/package/mcp-obsidian-cli) ![MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=stonematt%2Fmcp-obsidian-cli) ![Node](https://nodejs.org) ![License: MIT](https://opensource.org/licenses/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:

| Tool | Description | |------|-------------| | obsidian | Generic pass-through — run any CLI command (ships intent→verb cheatsheet, pre-call manifest validation, reload detection) | | obsidian_help | Manifest-backed help — list verbs by category, or look up a single verb / doc topic | | obsidian_daily_read | Read today's daily note | | obsidian_daily_append | Append to daily note | | obsidian_read | Read a note by name or path | | obsidian_search | Full-text search with context | | obsidian_tags | List tags with counts | | obsidian_tasks | Query tasks (daily, todo, done) | | obsidian_properties | Read frontmatter properties | | obsidian_create | Create a new plain note (no Templater expansion) | | obsidian_create_from_template | Create a note from a Templater template (expands <% ... %> placeholders) | | obsidian_property_set | Set a frontmatter property | | obsidian_backlinks | List backlinks to a note | | obsidian_files | List vault files | | obsidian_recents | Recently 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

| Variable | Default | Description | |---|---|---| | OBSIDIAN_VAULT | _(none)_ | Target vault by name | | OBSIDIAN_CLI_PATH | obsidian-cli | Path to CLI binary | | OBSIDIAN_TIMEOUT_MS | 15000 | Command timeout | | XDG_CONFIG_HOME | ~/.config | Base 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: ``yaml 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](https://ko-fi.com/Z8Z41G13PX)

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.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.