Skip to main content
Glama

searchconsole-mcp

プロジェクト向けに Google Search Console を自動化する MCP サーバー:検索アナリティクス、サイトマップ管理、サイト プロパティ、URL 検査。

ツール

ツール

説明

gsc_list_sites

サービス アカウントがアクセスできるすべてのプロパティを一覧表示します

gsc_add_site / gsc_remove_site

プロパティを追加/削除します(sc-domain:example.com または https://www.example.com/)

gsc_search_analytics

クエリ/ページ/国/デバイス/日付ごとにグループ化したクリック数、インプレッション数、CTR、掲載位置。フィルター対応。デフォルトは過去 28 日間

gsc_list_sitemaps / gsc_get_sitemap

送信済みサイトマップとインデックス登録数を検査します

gsc_submit_sitemap / gsc_delete_sitemap

サイトマップを送信または削除します

gsc_inspect_url

URL Inspection API:インデックス登録ステータス、正規 URL、クロール情報、モバイル ユーザビリティ

Related MCP server: Google Search Console MCP Server

初回の Google セットアップ

  1. Google Cloud Console でプロジェクトを作成します。

  2. Google Search Console API を有効にします(API とサービス > ライブラリ)。

  3. サービス アカウントを作成し(IAM と管理 > サービス アカウント)、JSON キーをダウンロードします。

  4. Search Console の各プロパティで 設定 > ユーザーと権限 > ユーザーを追加 に移動し、サービス アカウントのメールアドレス(...@...iam.gserviceaccount.com)を貼り付けて オーナー 権限を付与します(URL Inspection API を使用するにはオーナー権限が必要です)。

設定

環境変数:

変数

必須

説明

GSC_SERVICE_ACCOUNT_JSON

いずれか

サービス アカウントの JSON キー全体をインラインで指定

GSC_SERVICE_ACCOUNT_FILE

いずれか

キーファイルへのパス。デフォルトは ./service-account.json

GSC_DEFAULT_SITE

任意

デフォルトのプロパティ。各呼び出しで siteUrl を省略できます

サーバーは起動時に作業ディレクトリから .env も読み込みます。

MCP クライアントへの登録

opencode(~/.config/opencode/opencode.json またはプロジェクトの .opencode/opencode.json):

{
  "mcp": {
    "searchconsole": {
      "type": "local",
      "command": ["node", "/absolute/path/to/searchconsole-mcp/dist/index.js"],
      "environment": {
        "GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
        "GSC_DEFAULT_SITE": "sc-domain:example.com"
      }
    }
  }
}

Claude Desktop(claude_desktop_config.json):

{
  "mcpServers": {
    "searchconsole": {
      "command": "node",
      "args": ["/absolute/path/to/searchconsole-mcp/dist/index.js"],
      "env": {
        "GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
        "GSC_DEFAULT_SITE": "sc-domain:example.com"
      }
    }
  }
}

開発

npm install
npm run build     # tsc -> dist/
npm start         # run the server on stdio
npm run smoke     # boots the server and lists tools

注記

  • アナリティクス データは約 2 日遅れます。最新の部分的なデータも含めるには、dataState: "all" を渡します。

  • API は 1 リクエストあたりのアナリティクスの行数を 25,000 行に制限しています。ページングには startRow を使用してください。

  • API 経由でサイトを追加した場合、所有権が確認されるまでそのサイトは未確認のままです。最も簡単な方法は、先に UI でサービス アカウントのメールアドレスをオーナーとして追加することです。

Available Tools

9 tools
gsc_add_siteAdd a Search Console siteA

Add a property to Search Console. Use "sc-domain:example.com" for domain properties or "https://www.example.com/" for URL-prefix properties. The property stays unverified until ownership is confirmed.

Inputs: siteUrl (required).

gsc_delete_sitemapDelete a sitemapA

Remove a sitemap from a property. Pages already indexed are not deindexed by this.

Inputs: feedpath (required), siteUrl.

gsc_get_sitemapGet sitemap detailsA

Get details of one submitted sitemap (status, contents, errors/warnings).

Inputs: feedpath (required), siteUrl.

gsc_inspect_urlInspect URL indexing statusA

URL Inspection API: check whether a URL is on Google, its coverage state, canonical, crawl info, mobile usability and rich results. The service account must be an OWNER of the property for this API. Only works for URLs in properties you own.

Inputs: inspectionUrl (required), siteUrl, languageCode.

gsc_list_sitemapsList sitemapsA

List submitted sitemaps for a property, with submission dates and indexed counts.

Inputs: siteUrl, sitemapIndex.

gsc_list_sitesList Search Console sitesA

List all Google Search Console properties the service account has access to, including permission levels.

Inputs: no named parameters.

gsc_remove_siteRemove a Search Console siteB

Remove a property from Search Console.

Inputs: siteUrl (required).

gsc_search_analyticsQuery search analyticsC

Run a Search Console search-analytics query: clicks, impressions, CTR and average position grouped by dimensions (query, page, country, device, date). Dates default to the last 28 days.

Inputs: endDate, siteUrl, rowLimit, startRow, +6 more.

gsc_submit_sitemapSubmit a sitemapC

Submit a sitemap URL for a property (same as clicking Submit in the UI).

Inputs: feedpath (required), siteUrl.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: site management, search analytics, sitemaps, and URL inspection. Even similar-looking sitemap tools are clearly separated by list/get/submit/delete semantics.

    Naming Consistency5/5

    Every tool uses the gsc_ prefix followed by a verb_noun pattern, such as list_sites, submit_sitemap, and inspect_url. The naming is uniform and predictable across the entire set.

    Tool Count5/5

    Nine tools is well-scoped for a Search Console server, covering each core API area without redundancy. No tool feels like filler, and the count is within a comfortable range.

    Completeness5/5

    The set maps closely to Google's official Search Console API surface: site CRUD, sitemap submission/removal/list, search analytics querying, and URL inspection. It covers all primary workflows an agent would need for Search Console.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables interaction with Google Search Console via MCP, offering search analytics, performance summaries, URL inspection, sitemap management, and property listing for SEO workflows.
      1,223 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables programmatic management of Google Search Console properties and IndexNow URL submission for search indexing.
      -