
Gsc
io.github.mikusnuz由 GitHub 账号 mikusnuz 发布v1.3.6更新于 Oct 26, 2026
MCP server for Google Search Console & Indexing API — search analytics, sitemaps, URL inspection
概览
本地 MCP 服务器,让助手访问 Google Search Console 与 Indexing API:搜索分析、站点地图、网址检查和索引通知。
- 可以做什么
- 列出、查看、添加和移除 Search Console 资源
- 列出、查看、提交和删除站点地图
- 按筛选、分组和小时维度查询搜索表现数据(点击、展示、点击率、排名)
- 检查网址的索引状态、抓取信息、富媒体搜索结果和 AMP
- 为符合条件的招聘信息或直播网址发送 Indexing API 通知,支持最多 100 条批量提交
- 适用场景
- 适合希望助手直接回答网站搜索表现问题、查找索引出错的页面、管理站点地图,或就符合条件的招聘信息与直播网址通知 Google 的场景。
- 运行要求
- 通过 npx 以 npm 包 @mikusnuz/gsc-mcp 在本地运行,需要 Node.js 20 或更高版本。认证方式二选一:OAuth2(GSC_CLIENT_ID、GSC_CLIENT_SECRET、GSC_REFRESH_TOKEN,需 webmasters 与 indexing 权限范围),或服务账号密钥文件路径 GSC_SERVICE_ACCOUNT_KEY_PATH。需在 Google Cloud 项目中启用 Search Console API 与 Indexing API,账号需对相应资源拥有所有者或足够权限。
安装
README
gsc-mcp
MCP server for Google Search Console API and Google Indexing API — full API coverage.
Requires Node.js 20 or newer, matching the MCP SDK's installed runtime dependencies.
When to Use
For AI agents: See
llms.txtfor a machine-readable summary. Copytemplates/CLAUDE.mdortemplates/AGENTS.mdinto your project to teach your agent about this MCP.
Unlike other GSC MCP servers that only wrap searchAnalytics.query, this server exposes every endpoint available in the Google Search Console and Indexing APIs.
Tools (13)
Sites
Sitemaps
Search Analytics
URL Inspection
Indexing API
Indexing API eligibility: Google supports this API only for pages with
JobPostingstructured data or livestream pages withBroadcastEventembedded in aVideoObject. The tools requirecontentTypeso callers must identify which supported type applies. A successful API response confirms receipt of the notification; it does not guarantee that Google indexed the URL. Useurl_inspection_inspectto check index status. See Google's Indexing API usage guide.
Indexing API quotas
Google's default per-project limits are 200 publish requests per day, 180 metadata requests per minute, and 380 requests per minute across endpoints. The daily limit resets at midnight Pacific Time. A batch of 100 URLs still consumes 100 requests; batching reduces connections, not quota usage. Check your project's actual quota before sending notifications. See the official quota reference.
Authentication
Two authentication methods are supported:
Option 1: OAuth2 Refresh Token
Required OAuth2 scopes:
https://www.googleapis.com/auth/webmastershttps://www.googleapis.com/auth/indexing
Option 2: Service Account
For Search Console read/write tools, add the service account as an owner or user with sufficient permission. For Indexing API tools, Google requires the service account to be added as a delegated owner of the property; user-level access is not sufficient.
Setup Guide
OAuth2 Setup
- Go to Google Cloud Console
- Create a project (or select existing)
- Enable Search Console API and Indexing API
- Create OAuth 2.0 credentials (Desktop app type)
- Use the OAuth Playground to generate a refresh token with scopes:
https://www.googleapis.com/auth/webmastershttps://www.googleapis.com/auth/indexing
Service Account Setup
- Go to Google Cloud Console
- Create a service account
- Download the JSON key file
- Enable Search Console API and Indexing API
- In Search Console, add the service account email as an owner for your sites
License
MIT
来源:README.md,提交 16a3f5a
工具
0版本历史
3- v1.3.6最新Oct 19, 2026
- v1.3.4Oct 8, 2026
- v1.3.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分