MCP Gsc
概览
作者提供的说明(英文原文)
Google Search Console MCP server — query performance, sitemaps, indexing & more
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i正在增长↓ 2.8万/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"mcp-gsc"
]
}
}
}在终端中运行这条命令
claude mcp add gsc -- npx -y mcp-gsc或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"mcp-gsc"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"gsc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-gsc"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 pijusz 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5727 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5727 个服务器的 7% 更新
- 基础检查结果等于或优于此分类中其他 5727 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
MCP Gsc 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.7)于8个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
mcp-gsc
Google Search Console MCP server — query search analytics, inspect URLs, manage sitemaps & more via natural language.
Built with Bun + TypeScript. Works with Claude, Cursor, and any MCP client.
Quick Start
1. Get Credentials
You need OAuth client credentials from Google Cloud Console.
- Go to Google Cloud Console
- Create a project (or select existing)
- Enable the Google Search Console API:
- APIs & Services → Library → search "Google Search Console API" → Enable
- Configure OAuth consent screen (if not done):
- APIs & Services → OAuth consent screen → External
- Fill in app name + your email, add scope
https://www.googleapis.com/auth/webmasters
- Create credentials:
- APIs & Services → Credentials → Create Credentials → OAuth client ID
- Application type: Desktop app (allows localhost redirects automatically)
- Download the JSON file
- Set the credentials path:
export GOOGLE_GSC_CREDENTIALS_PATH=/path/to/credentials.json
- Run setup to authorize:
npx mcp-gsc setup
This opens your browser for OAuth consent, saves a refresh token, verifies access to your GSC properties, and prints config snippets for your MCP client.
2. Add to Claude Code
claude mcp add gsc --scope user --transport stdio \
-e GOOGLE_GSC_CREDENTIALS_PATH=/path/to/credentials.json \ -- npx -y mcp-gsc@latest
That's it. Restart Claude Code and the tools are available.
Also works with
bunx mcp-gsc@latestif you have Bun.
Requires Node 22+ when running via
npx.
Claude Desktop / Cursor
Add to your claude_desktop_config.json:
{
"mcpServers": { "gsc": { "command": "npx", "args": ["-y", "mcp-gsc@latest"], "env": { "GOOGLE_GSC_CREDENTIALS_PATH": "/path/to/credentials.json" } } } }
Codex CLI
Add to ~/.codex/config.toml (TOML, not JSON):
[mcp_servers.gsc]
command = "npx" args = ["-y", "mcp-gsc@latest"] startup_timeout_sec = 30 env = { GOOGLE_GSC_CREDENTIALS_PATH = "/path/to/credentials.json" }
Codex defaults to a 10s startup timeout, which is often too short for a cold
npxfetch. Bumpstartup_timeout_sec(30 is safe) or install the package globally (npm i -g mcp-gsc) and usecommand = "mcp-gsc"instead.
Service Account (alternative)
For server-to-server auth without browser-based OAuth:
- Create a service account in Google Cloud Console
- Download the JSON key file
- In Google Search Console, add the service account email as a user for each property
- Point
GOOGLE_GSC_CREDENTIALS_PATHto the key file — auth type is auto-detected
Tools (25)
Core Tools (always available)
Sites
| Tool | Description |
|---|---|
list_properties | List all GSC properties with permission levels |
get_property_details | Verification info, ownership, permissions for a property |
Search Analytics
| Tool | Description |
|---|---|
search_analytics | Query search performance (clicks, impressions, CTR, position) with dimensions, filters, and brand segmentation |
Dimensions: query, page, country, device, date, searchAppearance, hour
Types: web, image, video, news, discover, googleNews
Note: searchAppearance cannot combine with query or page. hour requires data_state="hourly_all" (last 10 days only). Country codes are ISO 3166-1 alpha-3 (usa, gbr, deu).
Sitemaps
| Tool | Description |
|---|---|
list_sitemaps | List sitemaps with status, type, indexed counts, errors |
get_sitemap | Detailed sitemap info with content breakdown |
URL Inspection
| Tool | Description |
|---|---|
inspect_url | URL indexing status, crawl info, rich results, canonicals |
batch_inspect_urls | Inspect up to 10 URLs at once with categorized results |
Rate limits: 600/minute + 2,000/day per site (tracked automatically).
Export
| Tool | Description |
|---|---|
export_csv | Export full search analytics to a local CSV file (auto-paginates 25K rows per call, up to 1M rows) |
Extended Tools (disabled by default)
Enable with GOOGLE_GSC_ENABLE_EXTENDED_TOOLS=true:
Reporting Suite
| Tool | Description |
|---|---|
performance_overview | Aggregate metrics + daily trend breakdown |
compare_periods | Compare two date ranges with delta calculations |
top_movers | Biggest gains and drops between periods |
device_country_breakdown | Performance by device and/or country |
SEO Suite
| Tool | Description |
|---|---|
quick_wins | High-impression, low-CTR queries in striking distance (position 4-20) |
cannibalization | Multiple pages competing for the same query |
opportunity_finder | Emerging queries, growing impressions with low CTR, declining performers |
position_tracking | Position changes over time for specific queries/pages |
ctr_anomalies | Queries with abnormal CTR relative to position |
content_decay | Pages/queries with impressions dropping >50% from historical peak |
weekly_seo_report | All-in-one report: overview + quick wins + top movers |
Technical SEO Suite
| Tool | Description |
|---|---|
indexing_coverage | Batch URL inspection with categorized indexing status |
sitemap_health | Sitemap error patterns, freshness, indexed vs submitted ratio |
Write Tools (disabled by default)
Enable with GOOGLE_GSC_ENABLE_WRITES=true:
| Tool | Description |
|---|---|
add_site | Add a new site to GSC |
delete_site | Remove a site from GSC |
submit_sitemap | Submit a new sitemap |
delete_sitemap | Remove/unsubmit a sitemap |
request_indexing | Ask Google to crawl a URL via the Indexing API |
get_indexing_status | When a URL was last submitted for indexing |
Indexing API prerequisites. The last two use a different Google API to the
rest of this server, so they need three things the other tools don't:
1. Re-run `mcp-gsc setup` — credentials created before this feature lack
the
auth/indexingscope. The tools say so explicitly if yours do.
2. Enable the Indexing API on your Google Cloud project —
console.cloud.google.com/apis/library/indexing.googleapis.com
3. Be a verified _owner_ of the property in Search Console. Full-user
access is not enough.
Google officially supports the Indexing API only for pages carrying
JobPostingorBroadcastEventstructured data, with a default quota of
200 URLs/day. It requests a crawl — it never guarantees indexing.
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
GOOGLE_GSC_CREDENTIALS_PATH | Yes | — | Path to OAuth client JSON or service account key |
GOOGLE_GSC_TOKEN_PATH | No | Derived | Path to cached OAuth token (default: *_token.json next to credentials) |
GOOGLE_GSC_PROPERTY | No | — | Default property URL (e.g., sc-domain:example.com). Accepts bare domains. |
GOOGLE_GSC_ENABLE_WRITES | No | false | Enable write tools |
GOOGLE_GSC_ENABLE_EXTENDED_TOOLS | No | false | Enable extended analytics tools (13 extra) |
GOOGLE_GSC_ENV_FILE | No | .env | Path to .env file |
DEBUG | No | — | Enable debug logging |
Property resolution: You can pass bare domains like example.com — the server auto-resolves to sc-domain:example.com or https://example.com/ by matching against your verified properties.
Examples
Ask your AI assistant:
- "Show me my top 10 queries this month"
- "Find quick wins for example.com"
- "Which pages have declining traffic over the last 3 months?"
- "Check if these URLs are indexed: url1, url2, url3"
- "Compare this week's performance to last week"
- "Export all search analytics data to CSV for the last 28 days"
- "Run a weekly SEO report for my site"
- "Find keyword cannibalization issues"
Future Tool Ideas
- Content gap analysis (requires competitor data integration)
- Core Web Vitals integration (via PageSpeed Insights API)
- Multi-property comparison
- Search appearance deep analysis
- Integration with Google Analytics for conversion data
- Automated reporting schedules
Updates
Using `npx @latest` (recommended): You always get the latest version.
Using a binary: The server checks for new releases on startup and logs to stderr if outdated.
mcp-gsc --version
Development
Requires Bun.
git clone https://github.com/pijusz/mcp-gsc.git
cd mcp-gsc bun install bun test # tests bun run build # standalone binary bun run inspect # MCP Inspector bun run check # biome format + lint
License
MIT