DL

danielsogl/lighthouse-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

77 stars 13 forks 质量 89 趋势 21MIT

danielsogl/lighthouse-mcp-server 是从 https://github.com/danielsogl/lighthouse-mcp-server. 导入的 MCP 服务器候选

概览

danielsogl/lighthouse-mcp-server 是从 https://github.com/danielsogl/lighthouse-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一款模型上下文协议(MCP)服务器,利用Google Lighthouse提供全面的网页性能审计和分析能力。该服务器使LLM和AI代理能够执行详细的网站性能评估、无障碍审计、SEO分析、安全检查以及核心网页动态监控。

🌟 主要特色

  • ** 🚀 性能分析**:完整的Lighthouse审计,包含核心网络指标、绩效评分和优化建议
  • ** ♿ 无障碍审计**:WCAG合规检查与无障碍评分分析
  • ** 🔍 SEO分析**:搜索引擎优化审计及最佳实践建议
  • ** 🔒 安全评估**:HTTPS、CSP和安全漏洞扫描
  • ** 📊 资源分析**:JavaScript、CSS、图片和字体优化机会
  • ** 📱 移动端与桌面端**:跨设备间的降频分析
  • ** ⚡ 核心网页动态:LCP、INP、CLS 监控及阈值检查
  • ** 🎯 性能预算**:自定义性能阈值和预算监控
  • ** 🤖 代理浏览**:Lighthouse 13 审核页面对 AI 代理的服务程度(WebMCP 工具、代理可访问树、LLMS。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Lighthouse MCP Server

A Model Context Protocol (MCP) server that provides comprehensive web performance auditing and analysis capabilities using Google Lighthouse. This server enables LLMs and AI agents to perform detailed website performance assessments, accessibility audits, SEO analysis, security checks, and Core Web Vitals monitoring.

🌟 Key Features

  • 🚀 Performance Analysis: Complete Lighthouse audits with Core Web Vitals, performance scores, and optimization recommendations
  • ♿ Accessibility Audits: WCAG compliance checking and accessibility score analysis
  • 🔍 SEO Analysis: Search engine optimization audits and best practice recommendations
  • 🔒 Security Assessment: HTTPS, CSP, and security vulnerability scanning
  • 📊 Resource Analysis: JavaScript, CSS, image, and font optimization opportunities
  • 📱 Mobile vs Desktop: Comparative analysis across devices with throttling options
  • ⚡ Core Web Vitals: LCP, INP, CLS monitoring with threshold checking
  • 🎯 Performance Budgets: Custom performance thresholds and budget monitoring
  • 🤖 Agentic Browsing: Lighthouse 13 audits for how well a page serves AI agents (WebMCP tools, agent accessibility tree, llms.txt)
  • 🧩 Structured Output: Every tool declares an outputSchema and returns validated structuredContent, so clients get typed data instead of a JSON string to parse
  • 📚 Reference Resources: Built-in guidelines and best practices for web performance, accessibility, SEO, and security

🛠️ Requirements

  • Node.js 22.0.0 or newer
  • Chrome/Chromium browser (automatically managed by Lighthouse)
  • VS Code, Cursor, Windsurf, Claude Desktop, or any other MCP client

🚀 Getting Started

Install the Lighthouse MCP server with your preferred client using one of the configurations below:

{
  "mcpServers": {
    "lighthouse": {
      "command": "npx",
在 GitHub 查看完整 README

安装

npx @danielsogl/lighthouse-mcp@latest
新手?先看 mcpskill.org 教程 →

配置

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