Gsc Cliのロゴ

Gsc Cli

コミュニティ
exiao
gsc-cli

Query Google Search Console data via MCP (mcporter). Use when checking search performance, impressions, clicks, CTR, rankings for $APP_DOMAIN or any verified property. Also use for finding SEO quick wins, checking indexing status, or managing sitemaps.

概要

公開者exiao
リポジトリskills
スキル名gsc-cli
スター
40
フォーク
12
同梱ファイル
1
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    exiaoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルGsc CliをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/exiao/skills/tree/main/external-services/gsc-cli
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/exiao/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/external-services/gsc-cli .claude/skills/gsc-cli
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGsc Cliを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にGsc Cliを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Gsc Cliは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

gsc-cli — Google Search Console via MCP

Query Google Search Console performance data using mcporter's gsc server.

Available Tools (8)

ToolPurpose
list_sitesList all sites visible to the authenticated Google identity
search_analyticsBasic search performance data
enhanced_search_analyticsUp to 25K rows, regex filters, quick wins detection
detect_quick_winsDedicated quick wins finder with ROI estimation
index_inspectCheck if a URL is indexed or indexable
list_sitemapsList sitemaps for a site
get_sitemapGet details of a specific sitemap
submit_sitemapSubmit a new sitemap

Setup

Prerequisites

  1. Google credential file at ~/.config/gsc-credentials.json
  2. Search Console API enabled in Google Cloud Console
  3. The authenticated Google identity has access to the GSC property

Recommended auth: user's Google account OAuth

Use OAuth when the user already owns the GSC properties. The MCP server's GoogleAuth({ keyFile }) accepts authorized_user credential JSON, even though the package docs only mention service accounts.

Fast path with gcloud:

bash
gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/webmasters.readonly

# Copy or symlink ADC to the file mcporter expects
cp ~/.config/gcloud/application_default_credentials.json ~/.config/gsc-credentials.json

Then edit ~/.config/gsc-credentials.json and ensure it contains a quota project:

json
{
  "type": "authorized_user",
  "client_id": "...",
  "client_secret": "...",
  "refresh_token": "...",
  "quota_project_id": "<google-cloud-project-id>"
}

If quota_project_id is missing, mcporter call gsc.list_sites fails with: searchconsole.googleapis.com API requires a quota project.

Alternate auth: service account

Service accounts work poorly with GSC because the web UI may reject service account emails with email not found. If OAuth is available, prefer OAuth.

If service account auth is still required:

  1. Go to console.cloud.google.com/iam-admin/serviceaccounts
  2. Pick or create a project
  3. Create Service Account (no IAM roles needed; GSC permissions are separate)
  4. Keys tab -> Add Key -> JSON
  5. Save to ~/.config/gsc-credentials.json
  6. Enable Search Console API for the project
  7. Try adding the service account in GSC Settings -> Users and permissions. If the UI rejects it, switch to OAuth instead. The API self-registration workaround can leave the service account as siteUnverifiedUser, which still cannot query analytics.

Verify access:

bash
mcporter call gsc.list_sites --output json

OAuth/auth troubleshooting details are in references/oauth-auth.md.

mcporter config

Already configured in ~/.mcporter/mcporter.json as stdio server:

bash
mcporter list gsc --schema

Usage

Basic performance data

bash
# Last 28 days of query performance
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-09" \
  endDate="2026-05-07" \
  dimensions="query" \
  rowLimit:1000 \
  --output json

# Page-level performance
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-09" \
  endDate="2026-05-07" \
  dimensions="page" \
  --output json

Multi-dimension analysis

bash
# Query + page breakdown (which queries land on which pages)
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,page" \
  rowLimit:5000 \
  --output json

# Device breakdown
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,device" \
  --output json

# Daily trend for a specific query
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="date" \
  queryFilter="bloom investing app" \
  --output json

Enhanced search analytics (up to 25K rows, regex)

bash
mcporter call gsc.enhanced_search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,page" \
  regexFilter="(invest|stock|portfolio)" \
  rowLimit:25000 \
  --output json

Filtering

bash
# Filter by page URL
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query" \
  pageFilter="$APP_DOMAIN/subscribe" \
  --output json

# Regex filter for related queries
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query" \
  queryFilter="regex:(invest|stock|portfolio)" \
  filterOperator="includingRegex" \
  --output json

# Mobile only
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query" \
  deviceFilter="MOBILE" \
  --output json

Quick Wins Detection (dedicated tool)

bash
# Find keywords ranking 4-10 with optimization potential
mcporter call gsc.detect_quick_wins \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  minImpressions:50 \
  maxCtr:2 \
  positionRangeMin:4 \
  positionRangeMax:20 \
  --output json

# Or use enhanced_search_analytics with inline quick wins
mcporter call gsc.enhanced_search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,page" \
  enableQuickWins:true \
  --output json

URL Indexing Inspection

bash
mcporter call gsc.index_inspect \
  siteUrl="sc-domain:$APP_DOMAIN" \
  inspectionUrl="https://$APP_DOMAIN/subscribe" \
  --output json

Sitemaps

bash
# List all sitemaps
mcporter call gsc.list_sitemaps \
  siteUrl="https://$APP_DOMAIN/" \
  --output json

# Submit a new sitemap
mcporter call gsc.submit_sitemap \
  siteUrl="https://$APP_DOMAIN/" \
  feedpath="https://$APP_DOMAIN/sitemap.xml" \
  --output json

Parameters Reference

ParameterRequiredDescription
siteUrlYessc-domain:example.com or https://example.com/
startDateYesYYYY-MM-DD
endDateYesYYYY-MM-DD
dimensionsNoComma-separated: query, page, country, device, date, searchAppearance
typeNoweb (default), image, video, news
rowLimitNoDefault 1000, max 25000
dataStateNofinal (default) or all (includes fresh/unfinalized data)
queryFilterNoFilter queries; prefix regex: for regex
pageFilterNoFilter pages; prefix regex: for regex
countryFilterNoISO 3166-1 alpha-3 (e.g. USA)
deviceFilterNoDESKTOP, MOBILE, TABLET
filterOperatorNoequals, contains, notEquals, notContains, includingRegex, excludingRegex
aggregationTypeNoauto, byProperty, byPage

Site URL Format

  • Domain property: sc-domain:$APP_DOMAIN (covers all subdomains and protocols)
  • URL prefix: https://$APP_DOMAIN/ (trailing slash required)

Use sc-domain: format when available as it captures all traffic.

Interpreting Results

  • Clicks: Actual visits from search
  • Impressions: Times a page appeared in search results
  • CTR: Click-through rate (clicks/impressions)
  • Position: Average ranking position (1 = top)

Common Workflows

  1. Weekly SEO check: Pull top queries by clicks, compare week-over-week
  2. Content optimization: Find pages with high impressions but low CTR (title/description improvements)
  3. New page monitoring: Track recently published pages' search visibility via index_inspect
  4. Keyword gaps: Compare queries landing on your site vs competitor keyword lists (combine with DataForSEO)
  5. Mobile vs Desktop: Check if mobile rankings differ significantly

Pitfalls

  • Prefer OAuth user credentials over service accounts for personal/company GSC properties. Service accounts often cannot be added through the GSC UI, while OAuth immediately inherits the user's existing properties.
  • authorized_user JSON works as GOOGLE_APPLICATION_CREDENTIALS for this MCP server because it uses GoogleAuth keyFile under the hood.
  • OAuth ADC needs quota_project_id; without it, Search Console returns a 403 quota project error.
  • GSC data has a 2-3 day lag. Don't query today's date.
  • dataState="all" includes preliminary data that may change.
  • Max 25,000 rows per request. For high-volume sites, use filters to segment.
  • No Google Cloud IAM role is needed for GSC access. GSC permissions are separate from Cloud IAM.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Gsc Cli」では何ができますか?

Query Google Search Console data via MCP (mcporter). Use when checking search performance, impressions, clicks, CTR, rankings for $APP_DOMAIN or any verified property. Also use for finding SEO quick wins, checking indexing status, or managing sitemaps.

TypingMindでGsc Cliを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Gsc Cliはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGsc Cliをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/exiao/skills/tree/main/external-services/gsc-cliを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Gsc Cliを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Gsc Cliは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGsc Cliを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Gsc Cli」は無料ですか?

exiaoがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇