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

@gagandeep023/mcpvault

v0.3.2

Published

AI bridge for Obsidian vaults - forked from mcpvault

Readme

MCPVault

A lightweight MCP (Model Context Protocol) server for connecting AI assistants to Obsidian vaults. Read, write, search, and manage your notes directly from Claude, ChatGPT, or any MCP-compatible client.

Features

  • 16 MCP methods covering all vault operations
  • Project-level scoping - isolate notes per project so AI never mixes contexts
  • Full-text search with BM25 relevance reranking
  • Safe frontmatter parsing and validation
  • Read, write, patch, delete, move notes
  • Batch operations and tag management
  • Token-optimized responses (40-60% smaller)
  • Zero Obsidian plugins required, works directly with vault files
  • Path traversal protection and security boundaries

Setup

1. Install Obsidian

Download and install Obsidian (free):

macOS:

brew install --cask obsidian

Windows: Download from obsidian.md/download and run the installer.

Linux:

# Snap
sudo snap install obsidian --classic

# Or download the AppImage from obsidian.md/download

2. Create a Vault

Open Obsidian and create a new vault. Note the vault path (e.g. ~/Documents/my-vault).

3. Connect to Your AI Client

Claude Code:

claude mcp add obsidian npx @gagandeep023/mcpvault /path/to/your/vault

Claude Desktop - add to claude_desktop_config.json:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["@gagandeep023/mcpvault@latest", "/path/to/your/vault"]
    }
  }
}

Run directly:

npx @gagandeep023/mcpvault@latest /path/to/your/vault

Global install:

npm install -g @gagandeep023/mcpvault
mcpvault /path/to/your/vault
mcpvault --project my-project /path/to/your/vault

Replace /path/to/your/vault with your actual vault path.

Note: You don't need to start the server manually. Claude Code launches it automatically as a background process when you open a session. Manual execution is only needed for testing or debugging.

Project Scoping

Organize your vault into project folders and scope the server to one project at a time. This prevents AI from mixing notes across projects.

Vault structure:

my-vault/
  pulse-central/
    api-notes.md
    deployment.md
  coffee-project/
    ideas.md
    architecture.md
  shared/
    templates.md

Scope to a project with --project:

# Claude Code - scoped to pulse-central only
claude mcp add obsidian npx @gagandeep023/mcpvault --project pulse-central /path/to/vault

# Claude Desktop
{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["@gagandeep023/mcpvault@latest", "--project", "pulse-central", "/path/to/vault"]
    }
  }
}

# Run directly
npx @gagandeep023/mcpvault@latest --project pulse-central /path/to/vault

When --project is set:

  • All read/write/search operations are restricted to that project folder
  • Notes from other projects are invisible
  • Use list_projects tool to see available projects
  • Use get_current_project tool to check which project is active
  • Omit --project for full vault access

API Methods

| Method | Description | |---|---| | read_note | Read a note with parsed frontmatter | | write_note | Write/append/prepend to a note | | patch_note | Find and replace text in a note | | delete_note | Delete a note (with confirmation) | | move_note | Move or rename a note | | move_file | Move any file (binary-safe) | | list_directory | List files and folders | | read_multiple_notes | Batch read up to 10 notes | | search_notes | Full-text search with BM25 ranking | | get_frontmatter | Extract frontmatter only | | update_frontmatter | Update frontmatter without changing content | | get_notes_info | Get metadata for multiple notes | | get_vault_stats | Vault-level statistics | | manage_tags | Add, remove, or list tags | | list_projects | List available project folders in vault | | get_current_project | Show active project and effective path |

Development

npm install
npm start /path/to/vault                        # Full vault access
npm start -- --project myproject /path/to/vault  # Scoped to project
npm test                                         # Run tests
npm run build                                    # Build for distribution

Prerequisites

  • Node.js v18.0.0 or later
  • Obsidian (free, available on macOS/Windows/Linux)
  • An MCP-compatible AI client (Claude Code, Claude Desktop, ChatGPT Desktop, etc.)

Note: Obsidian is only needed to create and manage your vault. This server works directly with the vault's markdown files on disk, no Obsidian plugins required. Obsidian does not need to be running for the server to work.

Auto Setup with Claude Agent

Want a Claude agent to set up everything for you? Paste this prompt into Claude Code:

Install @gagandeep023/mcpvault globally, then read the guide and follow it
step by step to set up the Obsidian vault and MCP server for my projects:

npm install -g @gagandeep023/mcpvault
cat $(npm root -g)/@gagandeep023/mcpvault/guide.md

The guide covers: installing Obsidian, creating the vault, project-scoped folders, registering the MCP server in Claude Code, and verification steps.

License

MIT