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

@unlighthouse/mcp

v1.0.0-beta.1

Published

MCP server preset for Unlighthouse: projects the command registry as MCP tools.

Readme

@unlighthouse/mcp

Model Context Protocol projection of the Unlighthouse command registry. Lets MCP-aware agents (Claude Code, Claude Desktop, Continue, Cursor, Zed, etc.) drive whole-site Lighthouse scans, inspect history, run packs, and compare runs.

The published binary is unlighthouse-mcp, shipped from the parent unlighthouse npm package. This workspace package is the projection layer; end users do not install @unlighthouse/mcp directly.

Install

The MCP server is bundled with the unlighthouse CLI — no separate install needed. Either run it via npx on demand:

npx -y unlighthouse-mcp --site https://example.com

…or add it globally:

npm install -g unlighthouse
unlighthouse-mcp --site https://example.com

Configure

Claude Code

Add the server with the claude mcp add CLI:

claude mcp add unlighthouse -s user \
  -- npx -y unlighthouse-mcp --site https://example.com

Or edit ~/.claude.json directly:

{
  "mcpServers": {
    "unlighthouse": {
      "command": "npx",
      "args": ["-y", "unlighthouse-mcp", "--site", "https://example.com"]
    }
  }
}

Claude Desktop / Cursor / Zed

The same JSON block goes in each host's settings file. The two flags that matter:

  • --site <url> — site to point the storage layer at. Without it the server auto-discovers any .unlighthouse/<host>/ directory in CWD that already has scans on disk.
  • --root <path> — override CWD (useful for global installs).
  • --debug — verbose stderr logs.

Tools

The MCP surface is generated from the command registry in @unlighthouse/contracts/commands. Tool names are the command name with . → _ (e.g. scan.start → scan_start). Currently exposed:

| Group | Tools | |-------------|----------------------------------------------------------------------------------------------------| | Scan | scan_start, scan_status, scan_cancel, scan_pause, scan_resume, scan_delete, scan_results, scan_summary, scan_meta, scan_current, scan_rescanAll | | Route | route_get, route_rescan | | History | history_list, history_get, history_delete, history_rescan | | Compare | compare_run, compare_markdown, compare_findPrevious | | Assert | assert_evaluate | | Pack | pack_run, pack_list | | Query | query_routes | | Events | events_subscribe, events_tail | | Meta | manifest, health, auditors_list, auditors_test | | Sites | sites_list, sites_get, sites_create, sites_delete |

For each tool's argument schema, call manifest from your agent or read the source: packages/contracts/src/commands/.

Example Claude Code session

You: scan https://example.com and tell me the worst performance offenders

Claude: I'll start a scan and report once routes finish auditing.
  [calls scan_start with { site: "https://example.com" }]
  [calls scan_status — sees 12/24 routes done]
  [waits, calls scan_status again — 24/24]
  [calls pack_run with { pack: "cwv", scanId: "<id>" }]

  Worst LCP routes:
    /products/featured  — 4.8s
    /blog/long-post     — 4.2s
    /search?q=...       — 3.9s

  Common root cause: render-blocking <link rel="stylesheet"> at line 42 of
  the shared layout. Want me to open a diff against the previous scan to
  confirm this is a regression?

You: yes please

Claude: [calls compare_findPrevious + compare_markdown]
  This is a regression vs scan from 3 days ago — LCP was 1.8s on /products/featured
  before today's deploy.

Demo video

How it works

projection.ts walks the command registry, converts each command's zod input schema to JSON Schema, and registers it as an MCP tool. On call, the projection runs the command's handler with a per-request HandlerCtx. If the handler returns an async iterable and the client passed a progressToken, each chunk is emitted as a notifications/progress message; otherwise the chunks are collected into a JSON array.

Errors raised by handlers are mapped to MCP error codes:

| Internal code | MCP code | |----------------------|-----------------------| | NOT_SUPPORTED | MethodNotFound | | INPUT_INVALID | InvalidParams | | CONFIG_INVALID | InvalidParams | | (anything else) | InternalError |

Registry submissions

This package is in flight for submission to public MCP catalogs. Authoring payloads live in ./registry/:

Tracking issue: harlan-zw/unlighthouse#349 (Phase 14 — MCP positioning).

License

MIT.