Lighthouse

Testing and QA

MCP server for Google Lighthouse performance metrics.

Your AI app calls the Lighthouse MCP server, which does the testing and QA work and sends the result back to the chat.

About Lighthouse

Lighthouse is a community MCP server from priyankark, filed in our directory under testing and qa. MCP server for Google Lighthouse performance metrics.

Lighthouse runs on your own machine: your AI app starts it with the command npx -y lighthouse-mcp@0.1.9 and talks to it over standard input and output.

The README for Lighthouse lists tools such as url, categories, device and throttling, which your AI app can call once the server is connected.

Lighthouse is listed in the official MCP registry as io.github.priyankark/lighthouse-mcp, version 0.1.9.

At a glance

Publisher
priyankark (community)
Runs
Locally on your machine
Install from
Node.js package on npm: lighthouse-mcp
Written in
TypeScript
License
MIT
GitHub stars
220
Official MCP registry
io.github.priyankark/lighthouse-mcp

Tools Lighthouse gives your AI app

  • url(required): The URL to audit.
  • categories(optional): Array of categories to audit (defaults to all).
  • device(optional): Device to emulate (defaults to "mobile").
  • throttling(optional): Whether to apply network throttling (defaults to true).

Tool names as the Lighthouse README lists them. Your AI app shows the live list once Lighthouse is connected.

How to set up Lighthouse

  1. Install Node.js on the machine that runs your AI app, because Lighthouse starts with npx and downloads its package on first run.
  2. Check the Lighthouse README for keys or settings; the registry lists none that Lighthouse requires.
  3. Add Lighthouse to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Lighthouse tools to confirm the connection.
  5. Run one read-only task with Lighthouse first, such as a call to url, before you allow anything that writes or sends.

Lighthouse compared with similar servers

  • Bilibili MCP Js by 34892002 has fewer GitHub stars than Lighthouse (199 against 220); both are community servers, and Bilibili MCP Js runs as a remote server and Lighthouse runs on your own machine.
  • Bld by rife2 has more GitHub stars than Lighthouse (324 against 220); both are community servers, and both run locally.
  • Glance by DebugBase has fewer GitHub stars than Lighthouse (159 against 220); both are community servers, and both run locally.

Before you connect Lighthouse

  • Give Lighthouse its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Lighthouse tool call until you trust what it does with them.
  • Treat text that Lighthouse fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Lighthouse on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Lighthouse

How marketing and sales teams put Lighthouse to work, by company size. Pick the size closest to yours and start Lighthouse on one use case.

Small business

  • A small business can use Lighthouse to test its booking or checkout flow after each update, so a broken button doesn't cost a week of sales.
  • Owners can have Lighthouse check emails and forms render correctly before a promotion goes out.
  • Lighthouse runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can run Lighthouse on every landing page release, checking forms, tracking and copy before ads point at it.
  • Lifecycle teams can use Lighthouse to test email and signup journeys end to end, catching a broken step before customers do.
  • Start with url and categories, the tools Lighthouse lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can plug Lighthouse into release gates, so marketing pages meet the same quality bar as the product.
  • Large web teams can use Lighthouse to test across locales, devices and accessibility rules at a scale no manual team can match.
  • Lighthouse is a community server, so have security review the code and pin a version before Lighthouse touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Lighthouse README

From priyankark/lighthouse-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Lighthouse MCP Server

An MCP server that wraps around Google's Lighthouse tool to help measure various performance metrics for web pages.

Features

  • Run comprehensive Lighthouse audits on any URL
  • Get performance scores and metrics
  • Configure device emulation (mobile/desktop)
  • Control network throttling
  • Select specific audit categories

Installation

Option 1: From MCP Registry (Recommended)

This server is available in the Model Context Protocol Registry. Install it using your MCP client or Claude Desktop.

Option 2: Using npx

You can run the tool directly using npx without installation:

npx lighthouse-mcp
Option 3: Global Installation

Install the package globally from npm:

npm install -g lighthouse-mcp

Then run it:

lighthouse-mcp
Option 4: Local Development
  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build
    
  4. Run the server:
    npm start
    

MCP Configuration

When installed via npm (global or npx)

Add the following to your MCP settings configuration file:

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": ["lighthouse-mcp"],
      "disabled": false,
      "autoApprove": []
    }
  }
}
When using local development version

Add the following to your MCP settings configuration file:

{
  "mcpServers": {
    "lighthouse": {
      "command": "node",
      "args": ["/absolute/path/to/lighthouse-mcp/build/index.js"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Replace /absolute/path/to/lighthouse-mcp with the actual path to this project.

Available Tools

run_audit

Run a comprehensive Lighthouse audit on a URL.

Parameters:

  • url (required): The URL to audit
  • categories (optional): Array of categories to audit (defaults to all)
    • Options: "performance", "accessibility", "best-practices", "seo"
  • device (optional): Device to emulate (defaults to "mobile")
    • Options: "mobile", "desktop"
  • throttling (optional): Whether to apply network throttling (defaults to true)

Example:

{
  "url": "https://example.com",
  "categories": ["performance", "accessibility"],
  "device": "desktop",
  "throttling": false
}
get_performance_score

Get just the performance score for a URL.

Parameters:

  • url (required): The URL to audit
  • device (optional): Device to emulate (defaults to "mobile")
    • Options: "mobile", "desktop"

Example:

{
  "url": "https://example.com",
  "device": "mobile"
}

Example Usage

Once the MCP server is configured, you can use it with Claude:

What's the performance score for example.com?

Claude will use the get_performance_score tool to analyze the website and return the results.

Requirements

  • Node.js 22.19+
  • Chrome/Chromium browser (for Lighthouse)

Security

Chrome runs with its sandbox enabled. Localhost, IPv4 loopback, and IPv6 loopback remain supported by default. Private, link-local, cloud metadata, and other non-public destinations are blocked, including requests made by redirects and page resources. Connections use validated IP addresses to prevent DNS rebinding. Because loopback access is intentional, audit only pages you trust to access services on your own machine. For hostile sites, use a separate environment with network isolation.

Audits are limited to one at a time and time out after 120 seconds. Chrome and the audit proxy are cleaned up after success or failure.

Public-only audits

Set AUDIT_ALLOW_LOOPBACK=false to reject loopback destinations as well as private and metadata addresses. Hosted workers must use this setting and infrastructure egress isolation. Local development keeps loopback access by default.

Maintainer CI and releases

GitHub Actions runs the build, network and release-policy tests, npm security audit, and real Chrome smoke tests on the minimum supported Node version and Node 24. Node 24 also installs the npm tarball in a clean temporary project and checks its executable, dependencies, MCP version, and browser audits.

Every push to main runs the release pipeline. When package files change, it automatically increments the patch version (or honors a larger version already committed), synchronizes package metadata, repeats validation, commits and tags the release, publishes to npm with provenance, and creates a GitHub release. Changes limited to documentation, tests, or workflows do not publish a new version. Runtime server versions come from package.json.

Dependabot checks npm and GitHub Actions weekly. A successful PR CI run automatically merges npm updates only when all existing changed dependencies are stable patch/minor upgrades and only package.json / package-lock.json changed. Major upgrades, 0.x minor upgrades, downgrades, prereleases, and GitHub Actions changes require review. The merge job runs only trusted code from main, verifies the tested PR head, and explicitly dispatches publishing after a bot merge.

npm publishing uses the npm GitHub environment and an npm trusted publisher for priyankark/lighthouse-mcp, workflow publish.yml, environment npm, with direct publishing allowed. No npm token is stored in GitHub. The environment accepts deployments only from main.

To retry a failed release, rerun the Publish workflow or run ./release.sh. The pipeline reuses an unpublished version and skips an already published, unchanged package. If a reserved release tag points to different code, it stops rather than overwriting that version. For a breaking change, update package.json and package-lock.json to the intended major/minor version in the reviewed PR before merging.

Questions about Lighthouse

What is the Lighthouse MCP server?

MCP server for Google Lighthouse performance metrics. Lighthouse is maintained by priyankark on GitHub at priyankark/lighthouse-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Lighthouse MCP server?

Add Lighthouse to your AI app's MCP config with the command npx -y lighthouse-mcp@0.1.9. In Claude Code, run claude mcp add --transport stdio lighthouse -- npx -y lighthouse-mcp@0.1.9. To run Lighthouse this way you need Node.js installed.

Does Lighthouse need an API key?

The registry lists no required keys for Lighthouse. Check the Lighthouse README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Lighthouse an official MCP server?

No. Lighthouse is a community server maintained by priyankark. Community servers can be excellent; read the code and the open issues before you give Lighthouse access to company data.

What license is Lighthouse under?

Lighthouse is released under the MIT license, according to its GitHub repository. The license covers the code of Lighthouse; the service it connects to has its own terms.