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

@stonedogcode/howto-mcp

v0.1.0

Published

A Model Context Protocol server for a how-to documentation portal: search articles and read them, as the user whose token you hold.

Readme

@stonedogcode/howto-mcp

A Model Context Protocol server for a how-to documentation portal. Ask what has been written, and read it, without leaving your editor.

> What articles exist about authentication?

3 articles match "authentication".

## Signing in with a passkey
repository: Alpha · slug: signing-in-with-a-passkey
written for: Support (as labelled by its source)
matched headings: Registering a device
…

It contains no documentation of its own, and no permission model. It asks a portal, and the portal answers as the user whose token it holds.

Install

npm install -g @stonedogcode/howto-mcp

Or run it without installing, which is what most MCP clients do:

npx @stonedogcode/howto-mcp

Configure

Two environment variables, both required. The server refuses to start without them rather than failing every request afterwards — a server that starts and then refuses everything looks like a broken portal.

| | | | --- | --- | | HOWTO_PORTAL_URL | Base URL of your portal, e.g. https://howto.example.com | | HOWTO_API_TOKEN | A token issued by that portal |

Claude Code

claude mcp add howto \
  --env HOWTO_PORTAL_URL=https://howto.example.com \
  --env HOWTO_API_TOKEN=… \
  -- npx -y @stonedogcode/howto-mcp

Any client that takes a JSON config

{
  "mcpServers": {
    "howto": {
      "command": "npx",
      "args": ["-y", "@stonedogcode/howto-mcp"],
      "env": {
        "HOWTO_PORTAL_URL": "https://howto.example.com",
        "HOWTO_API_TOKEN": "…"
      }
    }
  }
}

The token is an identity, not a key

This server reads exactly what its token's user reads — no more. It performs no access check of its own, deliberately: a second permission model beside the portal's would be a second answer to the same question, and the two drift. A client-side check that says yes when the server would say no is how a tool ends up showing somebody something.

So the way to scope this server is to choose whose token it is. Issue it to a user with the narrowest access that still makes the archive useful to you, and revoke it when that person's access changes.

The token is long-lived and sits in a config file on disk. Treat it as you would any credential in one.

Tools

search_articles

Search across every repository the token may read. Ranked by relevance — titles outrank summaries, which outrank headings, which outrank prose — and every word in the query must appear, so adding a word narrows the results.

| Argument | | | | --- | --- | --- | | query | required | What to look for | | limit | optional | Default 10, maximum 50 | | repo | optional | Restrict to one repository by name |

get_article

Read one article in full, by the repository and slug that search returned.

list_repos

The repositories this token may read, and how many articles each holds.

What it will not tell you

Three things, on purpose, because a documentation tool that is careless here is worse than none:

  • It never reports what it could not see. No "3 of 40 match" — that would disclose that 37 exist. The portal declines to mention them; repeating a total would undo that.
  • A missing article and a forbidden one give the same answer. Two different answers let a caller map what exists by guessing.
  • Errors carry no internals. Not the URL, not the token, not the portal's own error text, not a stack. Error messages are where internal detail escapes most easily, because whoever writes one is debugging at the time.

Each of those has a test asserting it, including one that fails if an error message ever repeats the token or the host.

Requirements

Node 20 or newer, and a portal exposing /api/search, /api/articles/… and /api/repos with bearer-token authentication.

Licence

Apache-2.0. See LICENSE and NOTICE.