GSC MCP Server 标志

GSC MCP Server

社区
Suganthan-Mohanadasan

An MCP server for Google Search Console. Ask Claude questions about your search data and get real answers. 20 tools: quick wins, cannibalisation, content decay, CTR benchmarking, alerting, indexing API, and more.

发布者Suganthan-Mohanadasan
代码仓库Suganthans-GSC-MCP
语言TypeScript
复刻数
27
星标数
132
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    GSC MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 132 个星标和 27 个复刻。

Google Search Console MCP Server

An MCP server for Google Search Console that lets you ask Claude questions about your search data and get real answers. Not raw API rows. Actual analysis.

29 tools. OAuth or service account. Free and open source. Runs on your machine: your data goes straight from this computer to Google, and nothing passes through anyone else's servers.

Full setup guide with screenshots: suganthan.com/blog/google-search-console-mcp-server/

v2.5.0 update (August 2026): new tool image_page_audit closes the image SEO loop. The v2.3 suite tells you which pages fail in image search; this one fetches those pages from your own site and tells you why: alt text, filenames, dimension attributes, lazy loading on the LCP image, formats and weights, the ~250x200 indexing minimum, ImageObject/licensable schema, max-image-preview, and the metadata inside the image files (camera EXIF to strip, IPTC to keep, DigitalSourceType on AI images). It only ever fetches the URLs you give it. Launch post with the whole 8-tool workflow on real client data: "One Page Earned 102,657 Image Impressions and 2 Clicks".

v2.4.0 update (August 2026): new tool genai_conversation_queries finds the AI conversations leaking into your query report. People reply to Google's AI with things like "yes, go on", Google logs every follow-up as a new query, and this tool sorts all of it into seven classified buckets with landing pages and a monthly timeline. Full method and findings: "Yes, Go On": The AI Conversations Leaking Into Your Search Console.

See it in action

"Audit the images on these pages"

Per-image findings from image_page_audit: alt status, filename, loading, weight and metadata per image, with an ordered fix list per page

"Which of my queries are actually AI conversations?"

Reply artefacts like yes and sure classified with impressions, clicks and landing pages

"How is my site doing?"

Site snapshot with period comparison

"What are my quick win keywords?"

Quick wins analysis showing positions 4-15 with opportunity scores

"Which pages are cannibalising each other?"

Cannibalisation detection across the site

"What content is slowly dying?"

Content decay detection over three consecutive periods

"Which pages lost traffic and why?"

Traffic drop diagnosis: ranking loss vs CTR collapse vs demand decline

"How does my CTR compare to benchmarks?"

CTR vs industry benchmarks by position

"How is my blog cluster performing?"

Topic cluster performance for a URL path pattern

What you can ask

"What are my quick win keywords?"
"Which pages lost traffic this month and why?"
"What content is decaying?"
"Which pages are cannibalising each other?"
"Check for any SEO alerts in the last 7 days"
"Give me content recommendations"
"How does my CTR compare to benchmarks?"
"How is my /blog/ cluster performing?"
"Show me US mobile traffic for the last 90 days"
"Is /blog/my-post/ indexed? If not, why?"
"Generate a full performance report and save it"
"Show me a dashboard across all my sites"
"Submit this URL for indexing: https://mysite.com/new-post/"
"Batch submit all my new blog posts for indexing"
"List my sitemaps and their status"
"Verify that claim about my homepage clicks"

Quick start

One command setup (new in v2.3)

bash
npx -y suganthan-gsc-mcp setup

The wizard signs you in with Google, verifies the connection with a live API call, lets you pick your property from a list, and writes the config for Claude Desktop and Claude Code. No config files to edit.

Read only by default: the standard consent screen asks for a single view permission. Choose full access during setup if you want the sitemap and URL submission tools.

For now you still need your own Google OAuth client JSON one time (steps 1 to 3 under Manual OAuth below); the wizard takes it from there. Built in Google sign in, with no Google Cloud steps at all, ships the moment Google finishes verifying the shared client.

Useful flags: --client desktop|code|both|print, --scopes readonly|full, --site <property>, --secrets <path>, --reauth, --force, --dry-run, --help.

One click desktop install

Prefer no terminal at all? Download the .mcpb bundle from the releases page and double click it. Claude Desktop installs the server with a small settings screen.

Option A: OAuth (manual)

  1. Create a Google Cloud project and enable the Search Console API
  2. Go to Credentials > Create Credentials > OAuth client ID, choose Desktop app
  3. Download the client secrets JSON
  4. Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": ["-y", "suganthan-gsc-mcp"],
      "env": {
        "GSC_AUTH_MODE": "oauth",
        "GSC_OAUTH_SECRETS_FILE": "/path/to/client_secrets.json",
        "GSC_SITE_URL": "sc-domain:yoursite.com",
        "GSC_SCOPES": "readonly"
      }
    }
  }
}

First use opens a browser for Google sign in. Token is cached after that (locally, at ~/.gsc-mcp/). Set GSC_SCOPES to full if you want the submission tools; omit it and you get full access, matching pre 2.3 behaviour. Running from a git checkout instead of npm? Use "command": "node", "args": ["/path/to/Suganthans-GSC-MCP/dist/index.js"].

Option B: Service Account

  1. Create a Google Cloud project and enable the Search Console API
  2. Go to IAM & Admin > Service Accounts, create one, download the JSON key
  3. Add the service account email to your GSC property (Settings > Users and permissions > Full access)
  4. Add to your Claude Desktop config:
json
{
  "mcpServers": {
    "gsc": {
      "command": "node",
      "args": ["/path/to/Suganthans-GSC-MCP/dist/index.js"],
      "env": {
        "GSC_KEY_FILE": "/path/to/service-account.json",
        "GSC_SITE_URL": "sc-domain:yoursite.com"
      }
    }
  }
}

Generative AI (v2.4)

Google's Generative AI performance report has no API, no BigQuery export, and no searchAppearance value. But Google counts every AI Mode follow-up as a brand-new query and folds AI Mode and AI Overviews into the web search type, so AI-conversation exhaust leaks into the regular query dimension with real impressions, positions and clicks. This tool mines it.

ToolWhat it answers
genai_conversation_queriesWhich of your queries are actually AI-conversation exhaust: bare replies to the AI ("yes", "go on"), "what about X" pivot follow-ups, conversational questions, AI-visibility tracker probes, and full agent prompts logged as queries. Seven classified buckets with landing pages, plus a monthly timeline showing when reply-artefacts first appeared on your property

Indexing API (optional)

To use submit_url, submit_batch, and submit_sitemap:

  1. Enable the Web Search Indexing API in your Google Cloud console
  2. Your service account (or OAuth credentials) need owner-level access in Search Console

Note: Google officially says the Indexing API is for JobPosting and BroadcastEvent schema types. In practice, it processes requests for all page types.

Multi-site

For multiple properties, add GSC_SITE_URLS:

json
"env": {
  "GSC_SITE_URL": "sc-domain:primarysite.com",
  "GSC_SITE_URLS": "sc-domain:primarysite.com,sc-domain:secondsite.com"
}

You can also point a single query at any property your credentials can see without touching the config: advanced_search_analytics, genai_conversation_queries, and all 7 image-search analysis tools take an optional site_url parameter. "Which pages get image impressions but no clicks on sc-domain:secondsite.com?" just works.

All 29 tools

Analysis

ToolWhat it answers
site_snapshotHow is the site doing overall? Clicks, impressions, CTR, position with period comparison
quick_winsKeywords at positions 4-15 with high impressions, scored by opportunity
ctr_opportunitiesPages with high impressions but CTR below expected for their position
traffic_dropsWhat lost traffic, and whether it's a ranking loss, CTR collapse, or demand decline
content_gapsTopics with search demand but no real content targeting them
cannibalization_checkKeywords where multiple pages compete against each other
content_decayPages declining across three consecutive 30-day periods
topic_cluster_performanceAggregated performance for all pages matching a URL path pattern
ctr_vs_benchmarkYour actual CTR per position vs industry benchmarks
inspect_urlIs this URL indexed? Last crawl date, canonical, robots/noindex issues
check_alertsPosition drops, CTR collapses, click losses, disappeared pages. Severity-rated
content_recommendationsPrioritised actions: pages to update, content to create, pages to consolidate
advanced_search_analyticsCustom queries with flexible dimensions and filters
generate_reportFull markdown report saved to disk
multi_site_dashboardHealth check across all properties in one command

Image SEO (v2.3 + v2.5)

These tools pass type=image to the GSC Search Analytics API, which most third-party tools never expose. They cover the visual-search surface end-to-end.

ToolWhat it answers
image_keyword_overviewTop image-search queries on the site, sorted by impressions, clicks, or position
image_search_quick_winsImage queries at positions 4-15 with high impressions, scored by image-CTR opportunity. The CTR baseline is calibrated for image search, which runs roughly 5-6x lower than web at equivalent positions
compare_web_vs_imageSame query, side-by-side performance across web and image surfaces, with an impressions ratio that surfaces where image search carries disproportionate volume
image_pages_overviewPages on the site ranked by image-search performance. Pairs with image_keyword_overview to map queries back to the pages carrying them
image_keyword_trendsPeriod-over-period deltas for image-search queries. Impressions delta and position delta (negative position delta means the query improved its average rank)
image_impressions_no_clicksQuery and page pairs earning meaningful image impressions but near-zero clicks. The textbook thumbnail-not-converting pattern
image_content_decayImage-search version of content_decay. Pages losing image-search traffic across 3 consecutive 30-day periods, sorted by total click loss
image_page_auditFetches pages from your own site and audits every image on them: alt text, filenames, width/height attributes, lazy loading on the LCP candidate, srcset, format and weight, intrinsic dimensions vs the ~250x200 indexing minimum, ImageObject and licensable schema, max-image-preview, and in-file metadata (camera EXIF, IPTC editorial fields, XMP DigitalSourceType). The bridge from "which pages fail" to "why they fail" (v2.5)

Indexing

ToolWhat it does
submit_urlSubmit a URL to Google's Indexing API for crawling
submit_batchBatch submit up to 200 URLs (daily quota)
submit_sitemapNotify Google of a new or updated sitemap
list_sitemapsAll submitted sitemaps with status, errors, and indexed counts

Safety

ToolWhat it does
verify_claimSelf-check: re-queries GSC data to verify a numeric claim before presenting it

What makes this different from other Google Search Console MCP servers

Analysis, not just API access. Most Google Search Console MCP servers wrap the raw API. This one ships with pre-built analysis: opportunity scoring, cannibalisation detection, decay tracking, CTR benchmarking, traffic drop diagnosis. You ask a question, it runs the analysis and tells you what to do.

Local and private. No hosted middleman, no account, no plan. The server runs on your machine, tokens are cached on your machine, and your Search Console data travels directly between your machine and Google. The developer operates no servers and receives nothing. Read only scope by default.

Hallucination guardrails. Every tool instructs Claude to base analysis only on returned data. Provenance metadata in every response. The verify_claim tool lets Claude fact-check its own numbers. Credit to Krinal Mehta for pushing this.

Visual dashboards. Results render as rich, interactive visualisations in Claude Desktop. Summary cards, colour coded indicators, bar charts, and tabbed sections. Not plain text dumps.

Fresh data. Uses dataState: 'all' so data matches the GSC dashboard, not 2-3 days stale.

Proactive, not reactive. Alerting, content recommendations, and scheduled reports catch problems before you think to look.

Environment variables

VariableRequiredDescription
GSC_AUTH_MODENooauth or service_account (default: service_account)
GSC_KEY_FILEService account modePath to service account JSON key
GSC_OAUTH_SECRETS_FILEOAuth modePath to OAuth client secrets JSON
GSC_OAUTH_CLIENT_IDOAuth mode (alt)OAuth client ID
GSC_OAUTH_CLIENT_SECRETOAuth mode (alt)OAuth client secret
GSC_SITE_URLYesPrimary GSC property URL
GSC_SITE_URLSNoComma-separated list for multi-site
GSC_SCOPESNoreadonly or full (default: full). Read only keeps the Google consent to a single view permission; submission tools then explain how to upgrade

Full guide

Step-by-step setup with screenshots, use cases, and examples:

suganthan.com/blog/google-search-console-mcp-server/

Changelog

v2.5.1 Three fixes from the issue queue. The sitemaps tools now call sc-domain: properties as-is, which the Sitemaps API supports and always has; the old URL-prefix rewrite manufactured a 403, blamed the API for it, and on some accounts silently returned a stale URL-prefix property's sitemap list instead of the domain property's. The rewrite survives only as a fallback for accounts whose permission genuinely lives on a URL-prefix property. Credit to pauljlange for proving the premise wrong with raw API calls. Service-account mode now requests the same scope set as the OAuth flow, so submit_url and submit_batch work with service accounts and the GSC_SCOPES=readonly tier applies there too; the OAuth half of this shipped earlier via tomschmidty12-sys's PR after stuli1989 reported it. And the Google client libraries are bumped (googleapis 144 to 176, google-auth-library 10, gaxios 7) so token fetches use Node's native fetch; the old node-fetch path failed to decompress Google's gzip token responses on Node 22 and newer, which broke service accounts, most visibly on Windows. Credit to wilotas for the full diagnosis and the verified fix. Also fixed: the one-click desktop bundle. Every previous .mcpb shipped without the googleapis package internals (the packer silently pruned them), so the extension could never start, and "Unable to connect to extension server" was this bug, not your config. The v2.5.1 bundle carries the complete production dependency tree and was runtime-tested against the live API before upload, which is why it is bigger. Credit to VeloWulf for the report.

v2.5.0 Image page audit. image_page_audit fetches up to 5 pages from your own site and audits every image on them against the on-page factors that decide image-search performance: missing, empty, generic, filename-as-alt or duplicate alt text, camera-default and stock-agency-default filenames (shutterstock_524347192.jpg tells Google nothing), missing width/height attributes, lazy loading on the LCP candidate, srcset coverage, file format and weight (flags photos shipped as PNG and anything over 500KB), intrinsic dimensions against Google's ~250x200 indexing minimum, ImageObject and licensable-field schema, primaryImageOfPage, max-image-preview, inline background images, and the metadata inside the image files via exifr: camera EXIF and GPS that should be stripped, IPTC Creator/Copyright/Caption that should survive your CMS, and XMP DigitalSourceType on AI-generated images. Returns per-image findings, page-level checks, and an ordered top_fixes list. Pairs with image_impressions_no_clicks and image_search_quick_wins: those name the pages, this names the reasons. Fetches only the URLs it is given, so the privacy model is unchanged: your data goes to Google and your own site and nowhere else. New dependencies: node-html-parser, image-size, exifr (all pure JS, no native builds). The 7 image-search analysis tools also gain the optional site_url override that advanced_search_analytics already had, so any of them can be pointed at any property your credentials can see without editing the config. Launch post with the full workflow on real client data: "One Page Earned 102,657 Image Impressions and 2 Clicks".

Per-image findings from image_page_audit

v2.4.0 Generative AI conversation queries. genai_conversation_queries finds the AI conversation fragments hiding in your regular query data and sorts them into seven kinds: reply artefacts ("yes", "go on"), pivot follow-ups ("what about resend?"), conversational questions, tracker probes, agent harnesses, pasted strings, and a review pile. Google counts every AI Mode follow-up as a brand new query, so these rows carry real impressions, positions and clicks, and the dedicated Generative AI report has no query view, which makes this the only query-level AI evidence available anywhere. One call classifies sixteen months of your queries, attaches landing pages via query and page grouping, and returns a monthly reply-artefact timeline. Plain Search Analytics API, no BigQuery, no new permissions. Full method and findings: the launch post. Sparked by Anastasia Kourou surfacing the queries with John Mueller confirming the mechanism, and by Ross Tavendale asking how to reverse engineer it.

Reply artefact queries classified by the new tool

v2.3.0 Image SEO suite and one command setup. 7 new tools that pass type=image to the GSC Search Analytics API, plus a type parameter on advanced_search_analytics covering all 6 GSC search surfaces (web, image, video, news, discover, googleNews). The image-search surface was invisible to most third-party SEO tools because they default to type=web and never expose the others; v2.3 makes it queryable end-to-end. Also new: npx suganthan-gsc-mcp setup, a wizard that signs you in, verifies the connection with a live call, and writes your Claude Desktop and Claude Code configs; a read only scope tier (GSC_SCOPES=readonly, now the setup default) so the standard consent asks for one view permission; and a one click Claude Desktop bundle (.mcpb) on the releases page.

v2.2.2 Published to npm as suganthan-gsc-mcp. Config can now use npx instead of a local checkout path.

v2.2.1 Fixed OAuth EADDRINUSE crash when multiple tool calls triggered concurrent authentication flows. The server now reuses the active auth session instead of spawning duplicate listeners. Thanks to Rushabh Rathod for finding and reporting this.

v2.2.0 Visual dashboard rendering. All analysis tools now produce rich, interactive visualisations in Claude Desktop with summary cards, colour coded indicators, bar charts, and tabbed sections instead of plain text output. No reinstall needed, just restart Claude Desktop.

Visual dashboard rendering in Claude Desktop

v2.1.0 Added Indexing API tools: submit_url, submit_batch, submit_sitemap, list_sitemaps. Request Google to crawl and index pages directly from Claude.

v2.0.0 Added OAuth authentication, advanced search analytics, check_alerts, content_recommendations, generate_report, multi_site_dashboard, verify_claim. Server grew from 10 to 16 tools.

v1.1.0 Added hallucination guardrails: explicit prompts in tool descriptions, data provenance metadata in responses, and verify_claim self-checking tool. Thanks to Krinal Mehta for the feedback.

v1.0.0 Initial release with 10 analysis tools and service account authentication.

Licence

Apache 2.0

Built by Suganthan Mohanadasan. If you find it useful, star it.

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "suganthan-mohanadasan-suganthans-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "suganthan-gsc-mcp"
      ]
    }
  }
}

将 GSC MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 GSC MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 GSC MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 GSC MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "suganthan-mohanadasan-suganthans-gsc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "suganthan-gsc-mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 GSC MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 GSC MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 GSC MCP Server 帮我完成这项任务吗?
GSC MCP Server
当然,我看过了。
以下是我使用 GSC MCP Server 得到的结果。

常见问题

GSC MCP Server MCP 服务器有什么用途?

GSC MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 GSC MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 GSC MCP Server。

为什么在 TypingMind 中使用 GSC MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 GSC MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 GSC MCP Server MCP 连接到 TypingMind?

GSC MCP Server 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

GSC MCP Server MCP 在 TypingMind 中提供哪些工具?

GSC MCP Server 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 GSC MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 GSC MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇