Skip to main content
Glama
mcp-seo-audit

mcp-seo-audit

by GiorgiKemo

mcp-seo-audit

Google Search Console、Indexing API、Chrome UX Report、PageSpeed Insights、ローカルLighthouse、robots.txtチェック、サイトマップ分析、オンページSEO検査、クロール監査、ライブサイト分析を備えた、SEO監査用のModel Context Protocol (MCP) サーバーです。Claude Code、Claude Desktop、Cursor、およびMCP互換クライアントで動作します。

AminForou/mcp-gscからフォークされ、30個のツールと完全なテストスイートを備えた、より広範なテクニカルSEOおよびパフォーマンス監査サーバーへと拡張されました。


機能

カテゴリ

ツール

説明

プロパティ管理

list_properties, add_site, delete_site

GSCプロパティのリスト表示、追加、削除

検索アナリティクス

get_search_analytics, get_advanced_search_analytics, get_performance_overview, get_search_by_page_query, compare_search_periods

フィルタリング、ディメンション、期間比較を使用したクリック数、表示回数、CTR、掲載順位のクエリ

URL検査

inspect_url, batch_inspect_urls

1つまたは複数のURLのインデックス登録状況、クロール情報、正規URL、robots.txtの確認

Indexing API

request_indexing, request_removal, check_indexing_notification, batch_request_indexing

Indexing APIを介したGoogleインデックスへのURL送信/削除

サイトマップ

get_sitemaps, submit_sitemap, delete_sitemap

サイトマップのリスト表示、送信、削除

Core Web Vitals

get_core_web_vitals

Chrome UX Report (CrUX) APIによるLCP、FID、CLS、INP、TTFBの取得

パフォーマンス監査

get_pagespeed_insights, run_lighthouse_audit

カテゴリスコアと監査失敗の概要を含むPageSpeed InsightsおよびローカルLighthouse監査の実行

テクニカルSEO

inspect_robots_txt, analyze_sitemap, analyze_page_seo, crawl_site_seo, audit_live_site

robots.txtの検査、サイトマップの検証、オンページSEOシグナルの抽出、内部ページのクロール、GSCアクセスなしでのライブSEO監査の実行

SEO分析

find_striking_distance_keywords, detect_cannibalization, split_branded_queries

5〜20位のキーワードの特定、同じクエリで競合しているページの検出、ブランドトラフィックと非ブランドトラフィックの分離

サイト監査

site_audit

オールインワンレポート:サイトマップの健全性、インデックス状況、正規URLの不一致、パフォーマンス概要

認証

reauthenticate

キャッシュされたOAuthトークンをクリアしてGoogleアカウントを切り替え

合計30ツール。


Related MCP server: gsc-mcp-rs

セットアップ

1. Google API認証情報

OAuth (推奨)

  1. Google Cloud Consoleにアクセスします

  2. Search Console APIとWeb Search Indexing APIを有効にします

  3. OAuth 2.0 クライアントID(デスクトップアプリ)を作成します

  4. client_secrets.jsonをダウンロードします

サービスアカウント

  1. Google Cloud Consoleでサービスアカウントを作成します

  2. JSONキーファイルをダウンロードします

  3. サービスアカウントのメールアドレスをGSCプロパティに追加します

2. インストール

git clone https://github.com/GiorgiKemo/mcp-seo-audit.git
cd mcp-seo-audit
python -m venv .venv

# Activate:
# macOS/Linux: source .venv/bin/activate
# Windows:     .venv\Scripts\activate

pip install -r requirements.txt

3. MCPクライアントの設定

Claude Code (~/.claude/settings.json)

{
  "mcpServers": {
    "seo-audit": {
      "command": "/path/to/mcp-seo-audit/.venv/bin/python",
      "args": ["/path/to/mcp-seo-audit/gsc_server.py"],
      "env": {
        "GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
        "PAGESPEED_API_KEY": "your-google-api-key",
        "CRUX_API_KEY": "your-google-api-key"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json)

JSON構造は同じです。設定ファイルの場所についてはClaude Desktop MCPドキュメントを参照してください。

4. オプション:パフォーマンスAPIキー

フィールドおよびラボのパフォーマンスデータについては、envブロックでCRUX_API_KEYとPAGESPEED_API_KEYを設定してください:

"env": {
  "GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
  "CRUX_API_KEY": "your-google-api-key",
  "PAGESPEED_API_KEY": "your-google-api-key"
}

GOOGLE_API_KEYを設定することも可能です。サーバーはこれをPageSpeed Insightsのフォールバックキーとして使用します。


環境変数

変数

必須

デフォルト

説明

GSC_OAUTH_CLIENT_SECRETS_FILE

OAuth

client_secrets.json

OAuthクライアントシークレットへのパス

GSC_CREDENTIALS_PATH

サービスアカウント

service_account_credentials.json

サービスアカウントキーへのパス

GSC_SKIP_OAUTH

いいえ

false

trueに設定するとOAuthをスキップし、サービスアカウントのみを使用します

GSC_DATA_STATE

いいえ

all

all = GSCダッシュボードと一致する最新データ、final = 確定データ(2〜3日の遅延あり)

CRUX_API_KEY

いいえ

なし

Core Web Vitals (CrUX) 用のGoogle APIキー

PAGESPEED_API_KEY

いいえ

なし

PageSpeed Insights / Lighthouse API呼び出し用のGoogle APIキー

GOOGLE_API_KEY

いいえ

なし

PAGESPEED_API_KEYのフォールバックソース

LIGHTHOUSE_CHROME_PATH

いいえ

自動検出

ローカルLighthouse CLI用のChrome/Chromiumへのオプションの明示的パス


プロンプト例

"List my GSC properties"
"Show search analytics for cdljobscenter.com last 28 days"
"Find striking distance keywords for my site"
"Detect keyword cannibalization"
"Run a full site audit"
"Check Core Web Vitals for cdljobscenter.com"
"Run PageSpeed Insights for https://example.com"
"Run a local Lighthouse audit for https://example.com"
"Inspect robots.txt for https://example.com"
"Analyze https://example.com/sitemap.xml"
"Analyze on-page SEO for https://example.com/jobs"
"Crawl https://example.com and report duplicate titles"
"Run a live SEO audit for https://example.com"
"Inspect indexing status of these URLs: /jobs, /companies, /pricing"
"Request indexing for https://mysite.com/new-page"
"Compare search performance this month vs last month"

テスト

Google/API/Web監査のモック呼び出しを含む、全30ツールをカバーする81個のテスト:

# Activate venv first
python -m pytest test_gsc_server.py -v

オリジナルからの変更点

  • 30ツール — PSI、ローカルLighthouse、robots.txt検査、サイトマップ検証、ページSEO分析、クロール監査、ライブサイト監査を追加

  • 7件のバグ修正 — ソート方向のマッピング、オリジン/URL検出、空行でのクラッシュ、APIキーの漏洩、スリープのブロッキング、サービスキャッシュ、再認証時の古いキャッシュの問題を修正

  • 81テストのQAスイート — GSC、CrUX、PSI、Lighthouse CLI、robots、サイトマップ、クロール監査、ライブ監査構成をカバー

  • セキュリティ — エラーメッセージからAPIキーを削除

  • パフォーマンス — Google APIサービスオブジェクトのキャッシュ、ブロッキングの代わりに非同期スリープを使用、CrUXフィールドデータに加えてラボパフォーマンスツールを追加


ライセンス

MIT。LICENSEを参照してください。

AminForou/mcp-gscに基づいています。

Available Tools

43 tools
add_siteB
Idempotent
Add a site to your Search Console properties.

Args:
    site_url: The URL of the site to add (e.g. https://example.com or sc-domain:example.com)

Inputs: site_url (required). Returns: result

analyze_page_seoB
Read-onlyIdempotent
Fetch a page and analyze on-page SEO signals, structured data, and indexability hints.

Args:
    url: Full page URL

Inputs: url (required). Returns: result

analyze_sitemapB
Read-onlyIdempotent
Fetch and analyze an XML sitemap or sitemap index.

Args:
    sitemap_url: Full sitemap URL
    sample_urls: Number of sitemap URLs to validate with GET requests

Inputs: sitemap_url (required), sample_urls. Returns: result

audit_live_siteA
Read-onlyIdempotent
Run a live SEO audit without requiring Search Console access.
Combines page analysis, robots.txt inspection, sitemap discovery, PSI data, and a small same-origin crawl.

Args:
    url: Full site/page URL
    crawl_pages: Number of pages to crawl for duplicate/missing-tag issues
    include_lighthouse: Whether to also run a local Lighthouse CLI audit

Inputs: url (required), crawl_pages, include_lighthouse. Returns: result

batch_inspect_urlsA
Read-onlyIdempotent
Inspect multiple URLs for indexing status. Handles rate limiting automatically.
API limit: 2000/day, 600/minute. This tool handles up to 50 URLs per call.

Args:
    site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
    urls: List of URLs to inspect, one per line

Inputs: urls (required), site_url (required). Returns: result

batch_request_indexingA
Request indexing for multiple URLs. Processes sequentially with rate limiting.
Default quota: 200/day. Only for pages with JobPosting or BroadcastEvent structured data.

Args:
    urls: List of URLs to index, one per line (max 100 per batch)

Inputs: urls (required). Returns: result

check_indexing_notificationB
Read-onlyIdempotent
Check the latest indexing notification status for a URL.

Args:
    url: The URL to check

Inputs: url (required). Returns: result

compare_project_auditsB
Read-onlyIdempotent

Compare two retained project snapshots using applicable rechecks and coverage. Missing pages do not count as resolved; differing crawl settings cannot be compared.

Inputs: current_id (required), project_id (required), baseline_id (required).

compare_search_periodsB
Read-onlyIdempotent
Compare search analytics between two time periods.

Args:
    site_url: Exact GSC property URL
    period1_start: Start date for period 1 (YYYY-MM-DD)
    period1_end: End date for period 1
    period2_start: Start date for period 2
    period2_end: End date for period 2
    dimensions: Dimensions to group by (default: query)
    limit: Top N results to compare (default: 20)

Inputs: site_url (required), period1_end (required), period2_end (required), period1_start (required), +3 more. Returns: result

compare_seo_auditsA
Read-onlyIdempotent

Compare two JSON outputs of get_seo_audit_report with matching crawl settings. Classifies new, resolved, persistent, newly observed and unverified issues without fetching URLs or writing files. Missing/failed pages never prove an issue resolved.

Inputs: current_json (required), baseline_json (required). Returns: result

crawl_site_seoA
Read-onlyIdempotent

Crawl same-origin raw HTML and summarize issues. Respects robots.txt by default. max_pages bounds fetch attempts, including errors/non-HTML. Use get_seo_audit_report for structured evidence and remediation. Disable robots only for a site you control.

Inputs: start_url (required), max_pages, respect_robots. Returns: result

create_audit_projectA

Create a local project with robots-aware audit settings and scheduling disabled. IDs use lowercase letters/digits/hyphens/underscores. Retain 1-100 snapshots (default 30); max_pages 1-500 is further capped by server configuration. Files live under SEO_AUDIT_DATA_DIR or the platform user-data directory. Rendered modes require the optional browser dependency and installed Chromium.

Inputs: start_url (required), project_id (required), max_pages, retention, +2 more.

delete_siteC
DestructiveIdempotent
Remove a site from your Search Console properties.

Args:
    site_url: The URL of the site to remove

Inputs: site_url (required). Returns: result

delete_sitemapB
DestructiveIdempotent
Delete (unsubmit) a sitemap from Google Search Console.

Args:
    site_url: Exact GSC property URL
    sitemap_url: Full URL of the sitemap to delete

Inputs: site_url (required), sitemap_url (required). Returns: result

detect_cannibalizationA
Read-onlyIdempotent
Identify queries appearing for multiple pages as potential cannibalization candidates.
Multiple pages can serve different intents; overlap alone does not prove harmful competition.

Args:
    site_url: Exact GSC property URL
    days: Days to look back (default: 28)
    min_impressions: Minimum impressions per query-page pair (default: 5)

Inputs: site_url (required), days, min_impressions. Returns: result

find_striking_distance_keywordsA
Read-onlyIdempotent
Find "striking distance" keywords — queries ranking at positions 5-20 with decent impressions.
These are review candidates; positions alone do not establish the effort needed to improve rankings.

Args:
    site_url: Exact GSC property URL
    days: Days to look back (default: 28)
    min_impressions: Minimum impressions to include (default: 10)
    row_limit: Max results (default: 50)

Inputs: site_url (required), days, row_limit, min_impressions. Returns: result

get_advanced_search_analyticsA
Read-onlyIdempotent
Get advanced search analytics with sorting, filtering (including regex), and pagination.

Args:
    site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
    start_date: Inclusive start date YYYY-MM-DD (defaults to 28-day window ending at end_date)
    end_date: Inclusive end date YYYY-MM-DD (defaults to today in Pacific time)
    dimensions: Dimensions comma-separated (query,page,device,country,date,searchAppearance)
    search_type: WEB, IMAGE, VIDEO, NEWS, DISCOVER
    row_limit: Max rows (up to 25000)
    start_row: Starting row for pagination
    sort_by: Metric to sort returned API page locally (clicks, impressions, ctr, position)
    sort_direction: ascending or descending
    filter_dimension: Single filter dimension (query, page, country, device)
    filter_operator: contains, equals, notContains, notEquals, includingRegex, excludingRegex
    filter_expression: Filter value
    filters: JSON array of filter objects for AND logic. Each needs dimension, operator, expression.
    data_state: "all" (default) or "final" (confirmed only, 2-3 day lag)

Inputs: site_url (required), filters, sort_by, end_date, +10 more. Returns: result

get_core_web_vitalsA
Read-onlyIdempotent
Get Core Web Vitals (LCP, INP, CLS) from the Chrome UX Report (CrUX) API.
Free API, no OAuth needed — just a CRUX_API_KEY env variable.

Args:
    url_or_origin: Full URL or origin (e.g. "https://example.com" for origin-level)
    form_factor: PHONE, DESKTOP, or TABLET (default: PHONE)

Inputs: url_or_origin (required), form_factor. Returns: result

get_pagespeed_insightsB
Read-onlyIdempotent
Run Google's PageSpeed Insights API for a URL.
Returns Lighthouse lab data plus available Chrome UX Report field data.

Args:
    url: Full page URL
    strategy: mobile or desktop
    categories: Comma-separated Lighthouse categories

Inputs: url (required), strategy, categories. Returns: result

get_performance_overviewB
Read-onlyIdempotent
Get a performance overview with totals and daily trend.

Args:
    site_url: Exact GSC property URL
    days: Number of days to look back (default: 28)

Inputs: site_url (required), days. Returns: result

get_project_auditA
Read-onlyIdempotent

Load an immutable retained audit snapshot by its project-scoped audit_id.

Inputs: audit_id (required), project_id (required).

get_search_analyticsA
Read-onlyIdempotent
Get search analytics data for a specific property.

Args:
    site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
    days: Number of days to look back (default: 28)
    dimensions: Dimensions to group by, comma-separated (query, page, device, country, date, searchAppearance)
    row_limit: Number of rows to return (default: 20, max: 500)
    search_type: Type of search results (WEB, IMAGE, VIDEO, NEWS, DISCOVER)

Inputs: site_url (required), days, row_limit, dimensions, +1 more. Returns: result

get_search_analytics_snapshotA
Read-onlyIdempotent

Fetch a bounded, paginated Search Console snapshot with explicit coverage. Returns at most 100,000 rows / 10 API pages within 180 seconds. Google may still omit anonymized/long-tail rows; completion is only for the returned API window. Partial results survive provider errors. Includes data-state/freshness metadata.

Inputs: site_url (required), days, max_rows, dimensions, +2 more. Returns: result

get_search_by_page_queryB
Read-onlyIdempotent
Get search queries driving traffic to a specific page.

Args:
    site_url: Exact GSC property URL
    page_url: The specific page URL to analyze
    days: Days to look back (default: 28)
    row_limit: Rows to return (default: 20, max: 500)

Inputs: page_url (required), site_url (required), days, row_limit. Returns: result

get_seo_audit_reportA
Read-onlyIdempotent

Return a structured technical SEO action plan with stable rule IDs, affected URLs, evidence, fix guidance, crawl coverage and limits. No Google credentials required. Save the returned JSON in your MCP client to compare later with compare_seo_audits. Optional rendered/compare modes execute JavaScript in a guarded browser; include_sitemaps discovers nested sitemaps and checks unlinked candidates. max_seconds bounds the crawl. Preserves query strings. Respects robots.txt by default; turn this off only for a site you control. max_pages is capped by server configuration.

Inputs: start_url (required), max_pages, max_seconds, render_mode, +2 more. Returns: result

get_server_statusB
Read-onlyIdempotent

Inspect local setup without credential values, network calls, or starting jobs. Credential presence does not prove current Google permissions or quota.

Inputs: no named parameters. Returns: result

get_sitemapsC
Read-onlyIdempotent
List all sitemaps for a property with detailed info.

Args:
    site_url: Exact GSC property URL

Inputs: site_url (required). Returns: result

inspect_robots_txtB
Read-onlyIdempotent
Fetch and summarize the site's robots.txt file.

Args:
    url_or_origin: Full URL, origin, or sc-domain property

Inputs: url_or_origin (required). Returns: result

inspect_urlB
Read-onlyIdempotent
Inspect a URL for indexing status, rich results, and mobile usability.

Args:
    site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
    page_url: The specific URL to inspect

Inputs: page_url (required), site_url (required). Returns: result

list_audit_eventsB
Read-onlyIdempotent

Read a local change/failure/recovery inbox without marking events as read. Pass next_after_id on the next call; retain the latest 500 events per project. Only verified new/resolved findings trigger change events; sampling changes and unchanged reports stay quiet. No external notification is transmitted.

Inputs: project_id (required), limit, after_id.

list_audit_projectsA
Read-onlyIdempotent

List local projects, settings, schedule state and latest run status.

Inputs: no named parameters.

list_project_auditsC
Read-onlyIdempotent

List up to 100 retained snapshots, newest first, with coverage and issue summaries.

Inputs: project_id (required), limit.

list_propertiesB
Read-onlyIdempotent

Retrieves and returns the user's Search Console properties.

Inputs: no named parameters. Returns: result

prioritize_audit_issuesB
Read-onlyIdempotent

Add observed Search Console traffic to an audit action plan. Sort by severity, then affected-page clicks/impressions. Does not estimate revenue or ranking gains. Unmatched URLs are unknown, not zero. No page traffic is double-counted within a rule.

Inputs: site_url (required), report_json (required), days. Returns: result

reauthenticateA
Destructive

Authenticate a new account, then atomically replace the saved OAuth token. Existing credentials and service caches are preserved if login or saving fails.

Inputs: no named parameters. Returns: result

request_indexingA
Request Google to crawl and index a URL via the Indexing API.
IMPORTANT: Only works for pages with JobPosting or BroadcastEvent structured data.
Default quota: 200 requests/day.

Args:
    url: The full URL to request indexing for

Inputs: url (required). Returns: result

request_removalA
Destructive
Request Google to remove a URL from the index via the Indexing API.
IMPORTANT: Only works for pages with JobPosting or BroadcastEvent structured data.

Args:
    url: The full URL to request removal for

Inputs: url (required). Returns: result

run_lighthouse_auditA
Read-onlyIdempotent
Run a local Lighthouse CLI audit for an explicitly trusted URL.
Requires SEO_AUDIT_ENABLE_LOCAL_LIGHTHOUSE=true, Node.js and Chrome/Chromium.
Lighthouse browser networking is not guarded by the public crawl transport.

Args:
    url: Full page URL
    form_factor: mobile or desktop
    categories: Comma-separated Lighthouse categories

Inputs: url (required), categories, form_factor. Returns: result

run_project_auditA
Destructive

Fetch a project now, save its immutable report, and record verified finding changes. Prunes oldest snapshots to project retention. One run per project; ten-minute timeout. Returns audit_id; use get_project_audit for the full snapshot. Alerts stay in the local event inbox; no email, messaging or webhook is sent.

Inputs: project_id (required).

set_audit_scheduleA

Explicitly enable/disable a project's recurring audit (60 seconds to 31 days). First run is due one interval after enabling. A separate mcp-seo-monitor worker must be running; the MCP stdio server does not launch background work. Failures back off; disabling prevents future scheduled claims, leaving an active run to finish.

Inputs: project_id (required), enabled, interval_seconds.

site_auditA
Read-onlyIdempotent
Check sitemap submission health, performance, and a sample of top search pages for indexing issues.
This sample cannot establish indexing coverage across the entire property.

Args:
    site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
    sitemap_url: Optional submitted sitemap to include in the GSC health report (not crawled here).
    max_inspect: Max URLs to inspect (0-100, default: 30, costs 1 API call each)

Inputs: site_url (required), max_inspect, sitemap_url. Returns: result

split_branded_queriesA
Read-onlyIdempotent
Split search performance into branded vs non-branded queries.
Separates query-visible traffic; one period alone does not establish growth.

Args:
    site_url: Exact GSC property URL
    brand_name: Your brand name to filter (e.g. "cdljobscenter")
    days: Days to look back (default: 28)

Inputs: site_url (required), brand_name (required), days. Returns: result

submit_sitemapB
Submit or resubmit a sitemap to Google.

Args:
    site_url: Exact GSC property URL
    sitemap_url: Full URL of the sitemap to submit

Inputs: site_url (required), sitemap_url (required). Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 43 tools

    Disambiguation3/5

    Many tools target distinct GSC, indexing, and project operations, but several overlap—especially the multiple search-analytics variants (basic, advanced, snapshot) and the various audit/crawl tools (audit_live_site, site_audit, get_seo_audit_report, crawl_site_seo). Descriptions help clarify boundaries, but an agent can still misselect without careful reading.

    Naming Consistency4/5

    Mostly consistent snake_case with verb_noun patterns (e.g., get_search_analytics, submit_sitemap, create_audit_project). Minor deviations like site_audit and reauthenticate are readable and do not seriously hinder predictability.

    Tool Count2/5

    43 tools is excessive for the domain; many functions could be consolidated (e.g., analytics variants, audit variants, and project CRUD pieces). The breadth suggests feature sprawl rather than a tightly scoped set.

    Completeness4/5

    The surface covers a wide SEO audit lifecycle: properties, search analytics, indexing, sitemaps, URL inspection, live crawling, project management, scheduling, event listing, and comparison. Missing delete/update operations for audit projects are minor gaps an agent can work around.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server for Google Search Console, URL Inspection & Indexing API — search analytics, sitemap management, and batch indexing
      13
      126 npm
      8
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Google Search Console. 21 tools for search analytics, keyword opportunities, URL inspection, sitemaps, indexing, and property management.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for advanced Google Search Console analysis — keyword cannibalization detection, page-level query deep dive, and rank change tracking.
      3
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Professional Google Search Console MCP server providing 40+ SEO tools for performance analysis, content decay, CTR opportunities, and more, enabling real search data in clients like Cursor and Claude.
      40
      17 npm
      6
      MIT