Lighthouse MCP Server

A comprehensive Model Context Protocol (MCP) server that provides web performance auditing, accessibility testing, SEO analysis, security assessment

Local serverstdioTypeScript

What is the Lighthouse MCP server?

A comprehensive Model Context Protocol (MCP) server that provides web performance auditing, accessibility testing, SEO analysis, security assessment, and Core Web Vitals monitoring using Google Lighthouse. Enables LLMs and AI agents to. That is what the lighthouse mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The tools it exposes

The server publishes 12 tools. What each one is for:

  • run_audit — Run a comprehensive Lighthouse audit
  • get_accessibility_score — Get accessibility score and recommendations
  • get_seo_analysis — Get SEO analysis and recommendations
  • check_pwa_readiness — Check Progressive Web App readiness
  • get_performance_score — Get overall performance score
  • get_core_web_vitals — Get Core Web Vitals metrics
  • compare_mobile_desktop — Compare performance across devices
  • check_performance_budget — Check against performance budgets
  • get_lcp_opportunities — Find LCP optimization opportunities
  • find_unused_javascript — Find unused JavaScript code
  • analyze_resources — Analyze all website resources
  • get_security_audit — Perform comprehensive security audit

Getting it running

The server ships on npm as @danielsogl/lighthouse-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: CHROME_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Among the monitoring and observability options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Lighthouse's toolset — run_audit, get_accessibility_score, get_seo_analysis and 9 more — is a fair guide to whether it matches your workflow. It is maintained by danielsogl; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Lighthouse's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 12 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Lighthouse.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
run_auditRun a comprehensive Lighthouse audit
get_accessibility_scoreGet accessibility score and recommendations
get_seo_analysisGet SEO analysis and recommendations
check_pwa_readinessCheck Progressive Web App readiness
get_performance_scoreGet overall performance score
get_core_web_vitalsGet Core Web Vitals metrics
compare_mobile_desktopCompare performance across devices
check_performance_budgetCheck against performance budgets
get_lcp_opportunitiesFind LCP optimization opportunities
find_unused_javascriptFind unused JavaScript code
analyze_resourcesAnalyze all website resources
get_security_auditPerform comprehensive security audit

How to install the Lighthouse MCP server

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
      "args": ["@danielsogl/lighthouse-mcp@latest"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CHROME_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Lighthouse to run audit.
  • Use Lighthouse to get accessibility score.
  • Use Lighthouse to get seo analysis.

Frequently asked questions

It connects Lighthouse to MCP-compatible AI assistants such as Claude and Cursor, exposing 12 tools (run_audit, get_accessibility_score, get_seo_analysis, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Lighthouse directly.