
Google Search Console
com.getmcpads由 getmcpads.com 发布v2.1.2更新于 Nov 8, 2026
Google Search Console MCP server: 20 read tools, no write tools.
概览
只读的 Google Search Console MCP 服务器,提供 20 个工具,用于搜索效果分析、索引、站点地图与 SEO 分析。
- 可以做什么
- 列出并查看资源、权限级别与凭据健康状态
- 查询 Search Analytics,并在执行前校验指标、维度与搜索类型的组合
- 检查单个或多个网址的索引状态、抓取信息、移动可用性与富媒体搜索结果
- 列出站点地图、读取站点地图健康状况并跟踪站点地图变化
- 执行 SEO 分析:两个周期的得失对比、查询聚类、关键词蚕食、搜索类型对比、富结果趋势、索引监控清单与大型站点抽样计划
- 读取内置资源,了解指标、维度、过滤器、兼容性规则与工作流配方
- 适用场景
- 适合让助手调查自有站点的自然搜索表现、索引问题和站点地图健康状况,并回答以变化为核心的问题,例如两个周期之间哪些查询或页面出现下滑,同时不授予写入权限。
- 运行要求
- 通过 npm 包 @getmcpads/google-search-console-mcp-server 以 stdio 在本地运行,需要 Node.js 22.23.4、24.22.1 或 26.12.1(或这些版本线中更新的版本)以及支持 stdio 的 MCP 客户端。需要已启用 Search Console API 的 Google Cloud OAuth 客户端提供的 GSC_CLIENT_ID、GSC_CLIENT_SECRET 和 GSC_REFRESH_TOKEN,或使用短期有效的 GSC_ACCESS_TOKEN。可选 GSC_SITE_URL 与 GSC_SITE_URLS。需要访问 Google API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Google Search Console,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Google Search Console MCP server
Bring your search performance into the conversation.
Investigate queries, pages, indexing and sitemaps through a read-only MCP server.
[Release] [CI] [Smithery] [License: Apache 2.0] [Node]
Watch the film · What's new · Install · Tool reference · Try hosted getmcpads
[Watch the getmcpads film: every ad account in one conversation with your AI assistant]
The film shows hosted getmcpads with sample data. Its MCP Apps, from creative galleries and alerts to Google Sheets exports and bulk launches, belong to the hosted product. This repository provides the standalone native API tools.
20 read tools · Read-only by design.
Run locally with your own platform credentials and a client that supports stdio MCP, such as Claude Desktop, Claude Code or Cursor. Your requests go directly to the platform. For managed connections, including supported ChatGPT setups, use the hosted option.
What's new
v2.1.1: Zod 4 security update · October 26, 2026
- Update
zodto 4.6.7. Every Zod release before 4.6.6 is covered by the high-severity advisory GHSA-mrhx-c7xc-m3w5: validating an oversized constrained collection can exhaust memory, and no Zod 3 release carries the fix.npm audit --omit=devreports no vulnerability again. - Keep the Zod 3 validation behaviour. A parameter default is still validated and completed before use, so an omitted object must still supply its required fields.
- Keep each parameter's own description when the parameter is optional or has a default. Zod 4 stores a description on the wrapped schema only, so the shared fallback description could otherwise replace it.
- Tool names, parameters and descriptions published over MCP are unchanged.
server-card.jsonis regenerated with Zod 4's JSON Schema output, which spells some constraints differently.
Earlier releases
Source synchronization: SOURCE_SYNC.md.
Upgrade notes
Requires Node.js 22.23.4, 24.22.1 or 26.12.1, or a newer release of one of these lines. Older releases lack the October 2026 security fixes, and the server prints a warning on stderr when it starts on one. CI covers Node 22, 24 and 26.
This release makes no breaking change to the configuration. One change is announced for 3.0.0: GSC_SITE_URLS is optional in 2.x and becomes required. When set, every tool is limited to the listed properties, and GSC_SITE_URL must be one of them. When unset, the server starts as before and prints one line on stderr recommending it. The 20 tools, their schemas and the bounded reporting limits are unchanged.
Install this release
This is a GitHub source release. npm and MCP Registry versions are published separately. The commands below select this exact version; unpinned npx examples later in this document select the version currently available on npm.
Configure your MCP client to run node with the absolute path to dist/cli.js and the platform credentials documented below.
Prefer a managed connection? Use Google Search Console with hosted getmcpads. Connect your account, select the data your assistant may access and use the hosted MCP connection. See the site for current features and plans.
What you get
What it does beyond fetching rows
Search Console answers questions about rows. Most real questions are about change: which queries did we lose, which pages compete for the same term, is indexing drifting.
These tools do that work rather than leaving it to the model:
One thing to know before you trust a number
Search Console returns a top N, not a site total.
When you query with a dimension such as query or page, the API returns the highest
ranked rows up to your row limit, ordered by clicks. Summing the clicks of those rows does
not give you the site total: the long tail is missing, and on a large site it can be most
of the traffic.
To get a real total, query without dimensions. To compare periods, compare like with like: same dimensions, same row limit, same search type.
gsc_query_search_analytics reports what it actually returned, and gsc_validate_query
checks a combination before it runs. But the arithmetic mistake is yours to avoid, and it is
the most common one in Search Console analysis.
Two other limits worth carrying in your head:
- Roughly 16 months of history. Anything older is gone, not slow.
- Data settles over about three days.
gsc_get_data_freshnesstells you what is final.
Read-only, and why it stays that way
There are no write tools, and no environment variable that adds any. The Search Console API can submit and delete sitemaps, add and remove properties, and request indexing. This server exposes none of that.
The scope it asks for reflects that: webmasters.readonly, not webmasters. Even if the
model tried, the token cannot write.
Our ad platform servers, where writes make sense, do have them, guarded by a mandatory preview: Meta Ads · Google Ads · TikTok Ads
The hosted version at getmcpads.com keeps the same rule: Search Console stays read-only there too.
Getting credentials
Three values, obtained once.
1. OAuth client
In a Google Cloud project, enable the Google Search Console API, then create an OAuth client under APIs & Services → Credentials. Choose Desktop app for local use. Note the client ID and client secret.
2. Refresh token
Run the OAuth consent flow once, signed in as a Google account that owns or can read your
properties, and keep the refresh token. Request webmasters.readonly and nothing more.
📖 Google OAuth for installed apps
The refresh token does not expire. Use an OAuth client dedicated to this server so you can revoke it on its own.
For a quick trial you can set GSC_ACCESS_TOKEN to a short-lived token instead, but it
expires within the hour and is useless for daily work.
If setting up an OAuth client is more than you want to do for one property, getmcpads.com handles the consent flow for you and gives you the same tools behind a hosted endpoint.
3. Site URL, optional
Set GSC_SITE_URL to avoid passing it on every call. Both property forms work:
List what you can reach with gsc_list_sites, and run gsc_health_check as your first
call. It verifies the credentials without printing any secret.
Setup
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. Ask it: "which queries did we lose last month?".
Claude Code
Cursor
.cursor/mcp.json in your project, same shape as the Claude Desktop config above.
From source
Configuration
Either the three OAuth values, or GSC_ACCESS_TOKEN. The server refuses to start with neither.
Tools
Every tool is listed below. See server-card.json for complete parameter and output schemas.
20 read tools
7 resources
Security
- The client secret and refresh token are never logged, at any log level, or written to disk.
- A revoked refresh token is reported once. When Google answers
invalid_grant, every later call returns the same message with the steps to authorize again, and the server stops asking Google for a token until it restarts. - Properties can be limited. With
GSC_SITE_URLSset, a call naming another property is refused before any request, andgsc_list_siteslists only the allowed properties. - Three hosts are contacted, and only three:
searchconsole.googleapis.comandwww.googleapis.comfor the API,oauth2.googleapis.comfor the token refresh. A test fails the build if a fourth host appears in the source. - No fetch follows a redirect. Every outbound call sets
redirect: "error", so a redirect cannot forward a bearer token or client secret to another host. A test fails the build if any fetch omits this. - The scope is
webmasters.readonly. The token itself cannot write. - No telemetry. The server makes no network call other than to Google.
Full policy: SECURITY.md.
Looking for a managed, multi-platform version?
Try hosted Search Console if you want to use this source without operating a local server. getmcpads also connects advertising, Search Console and GA4 through one MCP URL. Source availability and plan limits are listed on the site; connecting an account is still required.
- Follow the Search Console connection guide.
- Select the account or property your assistant may read.
- Connect Claude, ChatGPT or Codex.
- Try a read-only review: “Find which pages and queries account for a change in organic clicks. State missing data and do not change anything.”
See the current hosted tool catalogue and pricing before choosing a paid plan. This Apache 2.0 adapter remains independently useful with your own credentials.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md. Please read SECURITY.md before reporting anything security-related.
Licence
Apache License 2.0. See also NOTICE.
Google and Google Search Console are trademarks of Google LLC. This project is not affiliated with, endorsed by, or sponsored by Google LLC. It is an independent client of a public API.
MCP contracts and desktop bundle
Every tool declares read/write annotations, parameter descriptions and a structured output schema. Successful calls expose the payload as structuredContent.result; errors retain isError: true. The generated server card contains definitions only.
Run npm run bundle -- /path/to/output to build a .mcpb desktop bundle from the current catalog. Credentials are entered locally during installation. This server remains read-only.
More from getmcpads
Meta Ads · Google Ads · Google Analytics 4 · TikTok Ads · Pinterest Ads · X Ads
Maintained by Emmanuel at getmcpads. Questions: [email protected].
来源:README.md,提交 9c7df6a
工具
0版本历史
4- v2.1.1Oct 26, 2026
- v2.1.0Oct 23, 2026
- v2.0.1Sep 23, 2026
- v1.0.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分