
Mcp Gsc
io.github.pijusz由 GitHub 帳號 pijusz 發布v0.1.7更新於 Oct 24, 2026
Google Search Console MCP server — query performance, sitemaps, indexing & more
概覽
本機 MCP 伺服器,讓助理連接 Google Search Console,查詢搜尋成效、檢查網址收錄、管理網站地圖並產生 SEO 報告。
- 可以做什麼
- 列出資源屬性,並顯示每個屬性的驗證、擁有權與權限資訊。依查詢字詞、頁面、國家、裝置、日期與搜尋類型查詢搜尋分析資料,並可匯出為 CSV。列出並檢視網站地圖的狀態、已收錄數量與錯誤。檢查單一網址或最多 10 個網址的收錄狀態、檢索資訊與標準網址。選用的擴充工具提供期間比較、漲跌最大項目、快速見效機會、關鍵字互相競爭、點擊率異常、內容衰退與每週 SEO 報告。選用的寫入工具可新增或刪除網站、提交或刪除網站地圖,並要求建立索引。
- 適用情境
- 適合需要處理 Google Search Console 資料、希望用自然語言讓助理回答 SEO 問題的情境,例如熱門查詢字詞、收錄檢查、網站地圖健康狀態、期間比較或定期 SEO 報告。
- 執行需求
- 透過 npx(Node 22+)或 Bun 在本機執行。需要 Google Cloud Console 中啟用 Search Console API 後建立的 OAuth 用戶端憑證或服務帳戶金鑰,透過 GOOGLE_GSC_CREDENTIALS_PATH 傳入。首次需執行 setup 指令,在瀏覽器中完成 OAuth 授權並快取更新權杖。需要連線至 Google API 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Gsc,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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:
- Run setup to authorize:
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
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 vianpx.
Claude Desktop / Cursor
Add to your claude_desktop_config.json:
Codex CLI
Add to ~/.codex/config.toml (TOML, not 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
Search Analytics
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
URL Inspection
Rate limits: 600/minute + 2,000/day per site (tracked automatically).
Export
Extended Tools (disabled by default)
Enable with GOOGLE_GSC_ENABLE_EXTENDED_TOOLS=true:
Reporting Suite
SEO Suite
Technical SEO Suite
Write Tools (disabled by default)
Enable with GOOGLE_GSC_ENABLE_WRITES=true:
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:
- Re-run
mcp-gsc setup— credentials created before this feature lack theauth/indexingscope. The tools say so explicitly if yours do.- Enable the Indexing API on your Google Cloud project — console.cloud.google.com/apis/library/indexing.googleapis.com
- 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
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.
Development
Requires Bun.
License
MIT
來源:README.md,提交 4b24854
工具
0版本歷史
1- v0.1.7最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分