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

local-docs-mcp

v0.1.7

Published

Local documentation search for AI assistants, from Git repos and local directories

Readme

local-docs-mcp

CI npm Go Report Card DeepWiki License: MIT

Local documentation search for AI assistants, from Git repos and local directories

What It Does

An MCP server that gives AI assistants access to locally indexed documentation. It indexes GitHub repositories (via sparse checkout) and local directories into a SQLite database with FTS5 full-text search. Token budgeting keeps results within AI context window limits.

Quick Start

Add to your MCP client:

Claude Code (~/.claude.json), Cursor (Settings > MCP), Cline (VS Code settings):

{
  "mcpServers": {
    "local-docs": {
      "command": "npx",
      "args": ["-y", "local-docs-mcp@latest", "stdio"]
    }
  }
}

VS Code Copilot (.vscode/mcp.json):

{
  "servers": {
    "local-docs": {
      "command": "npx",
      "args": ["-y", "local-docs-mcp@latest", "stdio"]
    }
  }
}

Example

The AI assistant discovers and indexes documentation on the fly. For example:

  1. You ask: "How does Entra Connect hybrid identity sync work?"
  2. AI calls list_repos - no relevant docs found
  3. AI researches the GitHub repo and calls add_docs with:
    • url: "https://github.com/MicrosoftDocs/entra-docs"
    • paths: ["docs/identity/hybrid/"]
    • alias: "entra-hybrid"
  4. AI calls list_repos to check indexing progress
  5. AI calls search_docs with "hybrid identity sync" and answers with the indexed docs

No config files needed. The AI handles discovery, indexing, and search.

MCP Tools

| Tool | Description | |------|-------------| | search_docs | Full-text search across all indexed docs (or a specific repo) | | list_repos | List available documentation sources, status, and indexing progress | | browse_docs | Explore doc tree structure and headings | | update_docs | Re-index to pull latest changes | | add_docs | Add a new git repo or local directory as a doc source | | remove_docs | Remove a documentation source |

How It Works

  • Sparse checkout - only fetches specified paths from GitHub repos, minimizing bandwidth
  • FTS5 full-text search - SQLite FTS5 with BM25 ranking for relevance
  • Markdown chunking - splits docs by heading, preserving document structure
  • Token budgeting - fits results within AI context window limits
  • Background indexing - add_docs returns immediately while indexing runs async
  • Auto-refresh - stale repos are re-indexed automatically on server startup

More

AI Agent Integration

A skills/local-docs-mcp/SKILL.md is included for AI agent platforms that support the agentskills.io specification. Copy or symlink the skills/local-docs-mcp/ directory to your skills directory for enhanced tool usage guidance.

Contributing

PRs welcome. Run go test ./... before submitting.