MCP.so
登录

Lighthouse MCP Server

@priyankark

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

priyankark

提交者

Priyankar Kumar

关于 Lighthouse MCP Server

Allows AI assistants such as Amp/Cline/Cursor/Claude Code/Codex/GitHub Copilot to use Google's lighthouse tool to measure perf metrics for your webpage. You can then run an agentic loop and get the assistants to optimize those metrics!

Lighthouse MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": [
        "lighthouse-mcp"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Lighthouse MCP Server 工具

2

Run a Lighthouse audit on a URL

Get just the performance score for a URL

概览

What is Lighthouse Mcp?

Lighthouse Mcp is an MCP server that wraps Google’s Lighthouse tool to measure performance, accessibility, SEO, and other web page metrics. It is designed for developers and site owners who want automated audits through MCP‑compatible clients like Claude.

How to use Lighthouse Mcp?

Install via the MCP Registry, npx lighthouse-mcp, npm install -g lighthouse-mcp, or local clone and build. Then add a lighthouse entry to your MCP settings file with the appropriate command and args. Once configured, ask Claude or another MCP client to audit a URL.

Key features of Lighthouse Mcp

  • Run comprehensive Lighthouse audits on any URL
  • Get performance scores and metrics
  • Configure device emulation (mobile/desktop)
  • Control network throttling on/off
  • Select specific audit categories (performance, accessibility, best‑practices, SEO, PWA)

Use cases of Lighthouse Mcp

  • Audit a web page’s performance score before a release
  • Compare mobile vs desktop performance for a site
  • Check accessibility and SEO compliance automatically
  • Integrate Lighthouse audits into an AI‑assisted development workflow
  • Test how throttling affects page load metrics

常见问题

1

What are the runtime requirements?

Node.js 16 or later and a Chrome/Chromium browser installed on the system.

2

How do I install Lighthouse Mcp?

You can install via the MCP Registry, run directly with `npx lighthouse-mcp`, install globally with `npm install -g lighthouse-mcp`, or clone the repo and build locally.

3

What parameters does the `run_audit` tool accept?

It requires a `url`, and optionally accepts `categories` (array from "performance", "accessibility", "best-practices", "seo", "pwa"), `device` ("mobile" or "desktop", default "mobile"), and `throttling` (boolean, default true).

4

Can I get only the performance score without a full audit?

Yes, the `get_performance_score` tool returns just the performance score for a URL, with an optional `device` parameter.

5

Does Lighthouse Mcp work with Claude Desktop?

Yes, it is designed for use with MCP clients including Claude Desktop; example usage shows asking Claude for a performance score.

评论

开发工具 分类下的更多 MCP 服务器