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

mcp-lighthouse-audit

v0.1.0

Published

MCP server — Lighthouse audits: Core Web Vitals, performance opportunities, category scores

Readme

@mcp-devtools/lighthouse

MCP server — run Lighthouse audits and get performance scores, Core Web Vitals, and actionable opportunities.

Install

npm install -g @mcp-devtools/lighthouse
npx playwright install chromium   # one-time ~280MB download

Add to Claude Desktop

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

{
  "mcpServers": {
    "lighthouse": {
      "command": "mcp-lighthouse"
    }
  }
}

Restart Claude Desktop after editing the config.

Tools

audit_lighthouse

Run a full Google Lighthouse audit on any URL. Works with localhost, staging, and production.

url: string           — URL to audit. E.g. https://example.com or http://localhost:3000
categories?: string[] — 'performance', 'accessibility', 'best-practices', 'seo'. Default: all four
mobile?: boolean      — Simulate mobile with network/CPU throttling. Default: false (desktop)
timeout?: number      — Max audit time in ms. Default: 60000 (60s)

Returns category scores (0–100), Core Web Vitals (LCP, FCP, TBT, CLS, TTI, Speed Index) with ratings, performance opportunities with estimated savings, and all failing audits.

Docker / CI: Set LIGHTHOUSE_NO_SANDBOX=1 env var when running in a sandboxed environment.


compare_lighthouse

Compare Lighthouse scores between two URLs. Runs a full audit on both and returns a side-by-side diff.

before_url: string  — Baseline URL (staging branch, old deploy)
after_url: string   — New URL (optimized deploy, new branch)
mobile?: boolean    — Run in mobile mode. Default: false (desktop)

Example prompts

"Run a Lighthouse audit on http://localhost:3000"

"What's the LCP on my homepage and how can I improve it?"

"Run a mobile performance audit on my product page"

"Compare performance scores between my staging and production URLs"

"Which SEO issues is Lighthouse flagging on my site?"

Development

npm install
npx playwright install chromium
npm run build
npm run dev

License

MIT


track_lighthouse

Run a Lighthouse audit and store the result for trend tracking. Each run saves scores and Core Web Vitals to ~/.mcp-lighthouse/history.json.

url: string     — URL to audit and track
mobile?: boolean — Desktop or mobile. Default: desktop

Returns the current scores with ↑/↓/→ trend indicator vs the previous run.


get_lighthouse_trend

Show the full score history for a previously tracked URL.

url: string      — URL to show history for
mobile?: boolean — Desktop or mobile history. Default: desktop
limit?: number   — Max entries to show. Default: 10

Returns a table of scores over time and a trend summary (improving / degrading / stable). History stored at ~/.mcp-lighthouse/history.json, up to 50 audits per URL.

Example prompts (trend tracking)

"Track the Lighthouse performance score for https://example.com over time"

"Show the performance trend for my staging URL over the last 10 audits"

"Has my homepage performance improved after today's deploy?"