Google Search Console MCP Server
Google 搜索控制台 MCP 服务器
提供对 Google Search Console 的访问的模型上下文协议 (MCP) 服务器。
特征
支持维度的搜索分析数据检索
丰富的数据分析,可定制报告期
Related MCP server: Google Search Console API MCP Server
先决条件
Node.js 18 或更高版本
已启用 Search Console API 的 Google Cloud 项目
具有 Search Console 访问权限的服务帐户凭据
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Google Search Console:
npx -y @smithery/cli install mcp-server-gsc --client claude手动安装
npm install mcp-server-gsc身份验证设置
要获取 Google Search Console API 凭据:
创建新项目或选择现有项目
启用 API:
前往“API 和服务”>“库”
搜索并启用 “Search Console API”
创建凭证:
点击“创建凭证”>“服务帐户”
填写服务帐户详细信息
以 JSON 格式创建新密钥
凭证文件(.json)将自动下载
授予访问权限:
打开搜索控制台
将服务帐户电子邮件(格式: name@project.iam.gserviceaccount.com )添加为属性管理员
用法
Claude桌面配置
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-server-gsc"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}可用工具
搜索分析
使用可自定义的参数从 Google Search Console 获取搜索性能数据:
必需参数:
siteUrl:网站网址(格式:http://www.example.com/或sc-domain:example.com)startDate:开始日期(YYYY-MM-DD)endDate: 结束日期 (YYYY-MM-DD)
可选参数:
dimensions:逗号分隔列表(query,page,country,device,searchAppearance)type:搜索类型(web、image、video、news)aggregationType:聚合方法(auto、byNewsShowcasePanel、byProperty、byPage)rowLimit:返回的最大行数(默认值:1000)
例子:
{
"siteUrl": "https://example.com",
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"dimensions": "query,country",
"type": "web",
"rowLimit": 500
}执照
麻省理工学院
贡献
欢迎贡献代码!提交 PR 前请阅读我们的贡献指南。
Available Tools
8 toolsdetect_quick_winsC
Automatically detect SEO quick wins and optimization opportunities
Inputs: siteUrl (required), startDate (required), endDate (required), minImpressions, +5 more.
enhanced_search_analyticsC
Enhanced search analytics with up to 25,000 rows, regex filters, and quick wins detection
Inputs: siteUrl (required), startDate (required), endDate (required), dimensions, +11 more.
get_sitemapC
Get a sitemap for a site in Google Search Console
Inputs: feedpath, siteUrl.
index_inspectC
Inspect a URL to see if it is indexed or can be indexed
Inputs: siteUrl (required), inspectionUrl (required), languageCode.
list_sitemapsC
List sitemaps for a site in Google Search Console
Inputs: sitemapIndex, siteUrl.
list_sitesB
List all sites in Google Search Console
Inputs: no named parameters.
search_analyticsC
Get search performance data from Google Search Console
Inputs: siteUrl (required), startDate (required), endDate (required), dimensions, +9 more.
submit_sitemapC
Submit a sitemap for a site in Google Search Console
Inputs: feedpath (required), siteUrl (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes targeting different Google Search Console operations, but there is some overlap between 'search_analytics' and 'enhanced_search_analytics' which could cause confusion as both handle search performance data. The 'detect_quick_wins' tool also overlaps with the quick wins detection feature mentioned in 'enhanced_search_analytics', creating minor ambiguity.
Tool names follow a consistent verb_noun pattern throughout (e.g., list_sites, get_sitemap, submit_sitemap), with all using snake_case. The only deviation is 'index_inspect' which uses a noun_verb structure instead of verb_noun, but this is minor and doesn't significantly impact readability.
With 8 tools, the count is well-scoped for a Google Search Console server, covering core functionalities like site management, sitemap handling, search analytics, and URL inspection. Each tool appears to earn its place without feeling excessive or insufficient for the domain.
The tool set provides good coverage for Google Search Console operations, including listing sites, managing sitemaps, inspecting URLs, and analyzing search data. A minor gap exists in missing tools for more advanced features like URL removal requests or security issue reporting, but core workflows are well-covered.
Maintenance
Related MCP Connectors
Read-only Google Search Console MCP server for AI assistants.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Hosted MCP server for GA4, Google Ads and Search Console. Google OAuth, nothing to install.
Hosted Google Search Console MCP server, with each action switched on or off per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides unified access to Google Analytics 4 and Google Search Console data through real-time analytics queries.2MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP Server that provides access to Google's Search Console API, allowing users to interact with website search performance data and manage search presence through natural language.-
- AlicenseBqualityAmaintenanceModel Context Protocol (MCP) server that provides AI agents with access to Google Search Console data.251,169 npm330MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Google Search Console API that enables querying search analytics, managing sites, inspecting URLs, and supporting domain delegation via service accounts.1MIT