Lighthouse MCP サーバー
Google の Lighthouse ツールをラップして、Web ページのさまざまなパフォーマンス メトリックを測定するのに役立つ MCP サーバー。
特徴
- あらゆる URL に対して包括的な Lighthouse 監査を実行します
- パフォーマンススコアと指標を取得する
- デバイスエミュレーション(モバイル/デスクトップ)を構成する
- ネットワークスロットリングを制御する
- 特定の監査カテゴリを選択する
インストール
オプション1: npxを使用する(推奨)
インストールせずに npx を使用してツールを直接実行できます。
オプション2: グローバルインストール
パッケージをグローバルにインストールします。
次にそれを実行します:
オプション3:地域開発
- このリポジトリをクローンする
- 依存関係をインストールします:
- プロジェクトをビルドします。
- サーバーを実行します。
MCP構成
npm(グローバルまたはnpx)経由でインストールした場合
MCP 設定構成ファイルに次の内容を追加します。
ローカル開発版を使用する場合
MCP 設定構成ファイルに次の内容を追加します。
/absolute/path/to/lighthouse-mcp
このプロジェクトへの実際のパスに置き換えます。
利用可能なツール
監査の実行
URL に対して包括的な Lighthouse 監査を実行します。
パラメータ:
url
(必須): 監査するURLcategories
(オプション):監査するカテゴリの配列(デフォルトはすべて)- オプション: 「パフォーマンス」、「アクセシビリティ」、「ベストプラクティス」、「SEO」、「PWA」
device
(オプション):エミュレートするデバイス(デフォルトは「モバイル」)- オプション:「モバイル」、「デスクトップ」
throttling
(オプション):ネットワークスロットリングを適用するかどうか(デフォルトはtrue)
例:
パフォーマンススコアを取得する
URL のパフォーマンス スコアのみを取得します。
パラメータ:
url
(必須): 監査するURLdevice
(オプション):エミュレートするデバイス(デフォルトは「モバイル」)- オプション:「モバイル」、「デスクトップ」
例:
使用例
MCP サーバーが設定されると、Claude で使用できるようになります。
Claude はget_performance_score
ツールを使用して Web サイトを分析し、結果を返します。
要件
- Node.js 16以上
- Chrome/Chromium ブラウザ (Lighthouse 用)
推薦
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Cursor/Cline/GitHub CopilotなどのAIアシスタントがGoogleのLighthouseツールを使用してウェブページのパフォーマンス指標を測定できるようにします。その後、エージェントループを実行して、アシスタントにこれらの指標を最適化させることができます。
Related Resources
Related MCP Servers
- -securityAlicense-qualityActs as a bridge between AI models and Google's PageSpeed Insights API, enabling detailed performance analysis of websites.Last updated -44JavaScriptMIT License
- AsecurityAlicenseAqualityProvides LLM Agents with AI-powered mentorship for code review, design critique, writing feedback, and brainstorming using the Deepseek API, enabling enhanced output in various development and strategic planning tasks.Last updated -515TypeScriptApache 2.0
- AsecurityAlicenseAqualityEnables AI models to analyze webpage performance using the Google PageSpeed Insights API, providing real-time performance scores and improvement suggestions.Last updated -171JavaScriptMIT License
- AsecurityAlicenseAqualityMCP-compatible server that enables AI assistants to interact with Lightdash analytics data, providing tools to list and retrieve projects, spaces, charts, dashboards, and metrics through a standardized interface.Last updated -131717TypeScriptMIT License