lighthouse-mcp

lighthouse-mcp

13

Lighthouse MCP Server is a tool designed to integrate Google's Lighthouse auditing capabilities with the MCP infrastructure. It allows users to run audits on web pages to measure performance metrics, supporting configurations like device emulation and network throttling.

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

  • Using npx: Run the tool directly without installation via npx lighthouse-mcp.
  • Global Installation: Use npm install -g lighthouse-mcp and run lighthouse-mcp.
  • Local Development: Clone the repository, install dependencies, build the project, and run the server.

Available Tools

  • run_audit: Perform a comprehensive audit on a URL.
  • get_performance_score: Obtain the performance score for a URL.

Requirements

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