Skip to main content
Glama
MCP Server Pagespeed

MCP Server Pagespeed

by enemyrr

@enemyrr/mcp-server-pagespeed

Google PageSpeed Insights 分析機能を提供するモデルコンテキストプロトコルサーバー。このサーバーにより、AI モデルは標準化されたインターフェースを通じてウェブページのパフォーマンスを分析できるようになります。

カーソルIDEのインストールとセットアップ

  1. プロジェクトをクローンしてビルドします。

git clone https://github.com/enemyrr/mcp-server-pagespeed.git
cd mcp-server-pagespeed
npm install
npm run build
  1. Cursor IDE 設定にサーバーを追加します。

    • コマンドパレットを開く (Cmd/Ctrl + Shift + P)

    • 「MCP: サーバーの追加」を検索

    • 以下のフィールドに入力します:

      • 名前: pagespeed

      • タイプ: command

      • コマンド: node /absolute/path/to/mcp-server-pagespeed/build/index.js

注: /absolute/path/to/プロジェクトをクローンしてビルドした実際のパスに置き換えます。

Related MCP server: Lighthouse MCP

コマンドラインの使用法

実行するだけです:

npx mcp-server-pagespeed

利用可能なツール

ページスピード分析

Google PageSpeed Insights API を使用して Web ページを分析します。

use_mcp_tool({
  server_name: "pagespeed",
  tool_name: "analyze_pagespeed",
  arguments: {
    url: "https://example.com"
  }
});

ツールは次を返します:

  • 全体的なパフォーマンススコア(0~100)

  • 読み込みエクスペリエンス指標

    • 最初のコンテンツペイント

    • 最初の入力遅延

  • 上位 5 つの改善提案:

    • タイトル

    • 説明

    • 潜在的な影響

    • 現在の値

特徴

  • リアルタイムのウェブページパフォーマンス分析

  • 詳細な読み込みエクスペリエンス指標

  • 優先的な改善提案

  • 包括的なエラー処理

  • TypeScriptサポート

エラー処理

サーバーは、次の詳細なエラー メッセージを提供します。

  • 無効なURL

  • APIリクエストの失敗

  • 接続の問題

  • 無効なツール呼び出し

貢献

貢献を歓迎します!お気軽にhttps://github.com/enemyrr/mcp-server-pagespeedにプルリクエストを送信してください。

ライセンス

マサチューセッツ工科大学

Available Tools

1 tool
analyze_pagespeedC

Analyzes a webpage using Google PageSpeed Insights API

Inputs: url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    The single tool name follows a clear verb_noun pattern (analyze_pagespeed). Since there is only one tool, consistency is inherently perfect with no deviations to assess.

    Tool Count2/5

    A single tool is too few for a server named 'MCP Server Pagespeed', which suggests a broader scope for page speed analysis. This minimal set feels thin and limits functionality, as it only covers analysis without supporting operations like history tracking or batch processing.

    Completeness2/5

    The tool surface is severely incomplete for a page speed analysis domain. It only provides analysis but lacks essential operations such as retrieving historical results, comparing analyses, or managing configurations, leaving significant gaps for agent workflows.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI models to perform Google Lighthouse website performance analysis, including Core Web Vitals, accessibility, SEO audits, and actionable optimization recommendations. Provides comprehensive web performance insights through natural language interactions.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform comprehensive web performance analysis using Google's PageSpeed Insights API, including metrics, best practices, SEO, and accessibility audits.
      44 npm
      MIT