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

@chirag127/mdv-mcp

v2.0.0

Published

Local MCP server for Obsidian/markdown vaults. NVIDIA nemotron-3-embed-1b semantic search, pure-JS int8 vector store, OKF frontmatter, wikilinks, memory, live file watcher.

Readme

mdv-mcp

Local MCP server for Obsidian/markdown vaults. Hybrid semantic + keyword search, OKF frontmatter, wikilinks, persistent memory, live file watcher.

Install

npm install -g @chirag127/mdv-mcp

Or run directly with npx:

npx -y @chirag127/mdv-mcp

Features

  • Embeddings: NVIDIA nemotron-3-embed-1b via NVIDIA NIM (OpenAI-compatible). Multilingual, 2048-dim, input_type passage/query handled automatically.
  • Vector store: pure-JS, on-disk, int8-quantized (~4x smaller than float). Incremental — only changed files are re-embedded (keyed by mtime).
  • Hybrid search: semantic ranking fused with TF-IDF keyword fallback (works without API key).
  • Live index: chokidar watcher re-indexes edited files in place.
  • OKF frontmatter: detect, validate, and enrich Open Knowledge Format metadata.
  • Wikilinks: extract and resolve [[wikilinks]] to vault-relative paths.
  • Persistent memory: remember decisions, insights, bugs, todos across sessions.

Your vault is never uploaded. Only short text chunks are sent to NVIDIA for embedding; vectors are stored locally in <VAULT_ROOT>/.mdv-cache/vectors.json.

Quick Start

cp .env.example .env        # set NVIDIA_API_KEY=nvapi-...
node src/selftest.mjs       # verify key + embedding round-trip
node src/reindex.mjs        # one-shot full index (incremental afterwards)
node src/index.mjs          # start the MCP server (stdio)

Configure

OpenCode

"mdv-mcp": {
  "type": "local",
  "command": ["npx", "-y", "@chirag127/mdv-mcp"],
  "env": { "VAULT_ROOT": "/path/to/vault", "NVIDIA_API_KEY": "nvapi-..." }
}

Claude Desktop

{
  "mcpServers": {
    "mdv-mcp": {
      "command": "npx",
      "args": ["-y", "@chirag127/mdv-mcp"],
      "env": {
        "VAULT_ROOT": "/path/to/vault",
        "NVIDIA_API_KEY": "nvapi-..."
      }
    }
  }
}

Environment Variables

| Variable | Default | Description | |---|---|---| | VAULT_ROOT | (required) | Path to markdown/Obsidian vault root | | NVIDIA_API_KEY | (optional) | NVIDIA NIM API key for embeddings | | NVIDIA_EMBED_MODEL | nvidia/nemotron-3-embed-1b | Embedding model | | NVIDIA_BASE_URL | https://integrate.api.nvidia.com/v1 | NVIDIA endpoint | | MDV_CACHE_DIR | <VAULT_ROOT>/.mdv-cache | Vector index storage | | HTTP_TRANSPORT | (unset) | Set 1 to enable SSE transport | | HTTP_PORT | (unset) | Port for SSE transport |

Tools

| Tool | Purpose | |---|---| | vault_search | Hybrid semantic + keyword search to ranked files + snippets | | vault_read | Read one file (frontmatter + body) | | vault_write | Create/overwrite a file (re-indexed) | | vault_delete | Delete a file (index entry removed) | | vault_list | List .md files, optional subdir filter | | vault_tags | Aggregate all #tags / frontmatter tags by frequency | | vault_backlinks | Files linking to a given file | | vault_frontmatter | Parsed YAML frontmatter only | | vault_stats | Index status (counts, dims, embedding on/off) | | vault_reindex | Force incremental re-embed sync | | vault_remember | Save a memory (decision, insight, bug, todo) | | vault_recall | Retrieve past memories | | vault_memory_stats | Memory store statistics | | vault_memory_archive | Archive a memory by ID | | vault_format | Detect OKF format + suggest frontmatter improvements | | vault_wikilinks | Extract and resolve [[wikilinks]] | | vault_install_opencode | Install config into a project directory |

License

MIT