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

@helpbase/mcp

v0.1.2

Published

Self-hosted MCP server that exposes your Helpbase docs to AI agents. Runs from your repo, reads your MDX, serves it over the Model Context Protocol.

Readme

@helpbase/mcp

Self-hosted MCP server that exposes your Helpbase docs to AI agents.

Runs from your repo. Reads your MDX. Serves it over the Model Context Protocol so Claude Desktop, Cursor, Zed, Windsurf, and any other MCP client can query your docs without the content ever leaving your infrastructure.

Install

npm i -g @helpbase/mcp

Or run without installing:

npx @helpbase/mcp

Configure your MCP client

Claude Desktop

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

{
  "mcpServers": {
    "helpbase": {
      "command": "npx",
      "args": ["-y", "@helpbase/mcp"],
      "env": {
        "HELPBASE_CONTENT_DIR": "/absolute/path/to/your/repo/apps/web/content"
      }
    }
  }
}

Restart Claude Desktop. The three tools (search_docs, get_doc, list_docs) will show up in the tool picker.

Cursor / Zed / Windsurf

Follow your client's MCP configuration docs; the command, args, and env are the same as above.

Tools

| Tool | What it does | |------|--------------| | search_docs | Keyword search over your MDX, or semantic search when a prebuilt index is present. Returns ranked slugs. | | get_doc | Fetch a doc's full content by category/slug or just slug. | | list_docs | Index of all docs grouped by category. Optional category filter. |

Semantic search (optional)

search_docs runs a small keyword ranker by default. To upgrade it to embeddings-based semantic search — so "how do I authenticate my requests" finds guides/api-keys even when "authenticate" isn't in the title — install the optional peer dep and build an index:

npm install @xenova/transformers
npx -p @helpbase/mcp helpbase-mcp-build-index --content-dir ./content

The first build downloads the embedding model (~23 MB, cached locally) and writes .search-index.json next to your content directory. Subsequent runs are incremental from the same cache.

Point the server at the index (or let it auto-discover the default path):

HELPBASE_SEARCH_INDEX=./content/.search-index.json npx @helpbase/mcp

If the index is missing, stale, or malformed, the server logs a line to stderr and falls back to keyword mode — it never takes down the server.

Rebuild the index whenever your content changes (a postbuild script in your docs app is a good home for it).

Content discovery

The server resolves your docs in this order:

  1. HELPBASE_CONTENT_DIR env var (absolute or relative to cwd)
  2. Walks up from cwd looking for apps/web/content/ (helpbase monorepo shape)
  3. Walks up from cwd looking for content/ (flat scaffold shape)

If none of these succeed, the server fails on startup with a clear error.

Why this exists

Most hosted docs platforms give you an MCP endpoint, but they host it on their infrastructure, against their copy of your content. That gives them a knowledge layer you don't control.

@helpbase/mcp is the opposite: your MCP server runs as a subprocess the MCP client spawns locally (or on your own host). Your content stays on your disk. No vendor sits between your docs and the agents that read them.

License

AGPL-3.0-only