npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

obsidian-md-mcp

v1.0.2

Published

MCP server for Obsidian vault integration with Claude, Cursor, OpenCode, Windsurf, and other MCP clients

Readme

Obsidian MD MCP Server

MCP server for Obsidian vault integration with AI assistants that support MCP (Claude Desktop, OpenCode, Cursor, Windsurf, etc).

Features

Tools

  • read_note(path) - Read a note with frontmatter parsing
  • write_note(path, content) - Create/edit a note
  • append_note(path, content) - Append content to an existing note
  • search_notes(query) - Search text across all notes
  • list_notes(directory?) - List all notes in vault or specific directory
  • delete_note(path) - Delete a note

Resources

  • Expose vault as file system resources
  • Resource template: obsidian://{path}

Quick Start (npx)

The easiest way - use npx directly:

npx obsidian-md-mcp --vault-path /path/to/your/obsidian/vault

Or with environment variable:

OBSIDIAN_VAULT_PATH=/path/to/your/obsidian/vault npx obsidian-md-mcp

Client Configuration

Choose your client:

OpenCode

File: ~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "obsidian": {
      "type": "local",
      "command": ["npx", "-y", "obsidian-md-mcp", "--vault-path", "/path/to/your/obsidian/vault"],
      "enabled": true
    }
  }
}

Or with environment variable:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "obsidian": {
      "type": "local",
      "command": ["npx", "-y", "obsidian-md-mcp"],
      "enabled": true,
      "environment": {
        "OBSIDIAN_VAULT_PATH": "/path/to/your/obsidian/vault"
      }
    }
  }
}

Usage in prompts:

Read my daily note. use obsidian

Or add to your AGENTS.md:

When working with notes, use the obsidian MCP tools.

Claude Desktop

File: ~/Library/Application Support/Claude/claude_desktop_config.json

MacOS / Linux:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "obsidian-md-mcp", "--vault-path", "/path/to/your/obsidian/vault"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "obsidian": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "obsidian-md-mcp", "--vault-path", "C:\\path\\to\\your\\obsidian\\vault"]
    }
  }
}

Cursor

File: ~/.cursor/mcp.json (global) or .cursor/mcp.json in project root

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "obsidian-md-mcp", "--vault-path", "/path/to/your/obsidian/vault"]
    }
  }
}

Windsurf

File: ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "obsidian-md-mcp", "--vault-path", "/path/to/your/obsidian/vault"]
    }
  }
}

Zed

File: ~/.config/zed/settings.json

{
  "mcp_servers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "obsidian-md-mcp", "--vault-path", "/path/to/your/obsidian/vault"]
    }
  }
}

Goose (by Block)

File: ~/.config/goose/config.yaml

mcp_servers:
  obsidian:
    command: npx
    args:
      - -y
      - obsidian-md-mcp
      - --vault-path
      - /path/to/your/obsidian/vault

Local Development

To develop locally or use from source:

  1. Clone & install:
git clone <repo-url>
cd obsidian-md-mcp
npm install
npm run build
  1. Link globally:
npm link
obsidian-md-mcp --vault-path /path/to/vault
  1. Or use directly in client config:

OpenCode:

{
  "mcp": {
    "obsidian": {
      "type": "local",
      "command": ["node", "/path/to/obsidian-md-mcp/dist/bin.js", "--vault-path", "/path/to/your/obsidian/vault"]
    }
  }
}

Claude Desktop / Cursor / Windsurf:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": ["/path/to/obsidian-md-mcp/dist/bin.js", "--vault-path", "/path/to/your/obsidian/vault"]
    }
  }
}

CLI Options

obsidian-md-mcp [options]

Options:
  --vault-path, -v <path>   Path to Obsidian vault (required)
  --help, -h                Show help
  --version                 Show version

Environment Variables:
  OBSIDIAN_VAULT_PATH       Alternative way to set vault path

Usage Examples

Read a note

read_note(path: "Daily Notes/2024-01-15")

Write a note with frontmatter

write_note(path: "Projects/MyProject", content: "---\ntitle: My Project\ncreated: 2024-01-15\n---\n# My Project\n\nContent here...")

Search notes

search_notes(query: "meeting")

List all notes

list_notes()
list_notes(directory: "Projects")

Append to note

append_note(path: "Daily Notes/2024-01-15", content: "\n## New Section\n\nAdded content...")