Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Connecting Google Search Console to Claude Code with MCP

说明与用途

通过 mcp-gsc MCP 服务器将 Google Search Console 与 Claude Code 集成,可以在开发环境中直接分析搜索数据。这消除了手动导出 CSV 和使用电子表格的需要,使 AI 助手能够根据真实的 SEO 指标建议代码更改。

问题

Analyzing Google Search Console (GSC) data requires switching between GSC, spreadsheets, and the codebase, creating friction in the SEO optimization workflow.

结果

The integration eliminates manual data transfer, allowing the AI assistant to access real-time search data to investigate pages and suggest precise code changes, streamlining the SEO-to-code loop.

工作流

  • Create a dedicated project in Google Cloud Console.
  • Enable the Google Search Console API.
  • Configure OAuth consent screen (External, Testing) and add test users.
  • Create an OAuth 2.0 Client ID for Desktop app and download the JSON credentials.
  • Install 'uv' and verify 'uvx' availability.
  • Add the mcp-gsc server to Claude Code configuration using absolute paths for uvx and credentials.
  • Authorize the connection via browser OAuth flow.
  • Verify connection by listing properties and checking authentication status.
  • Use specific prompts to analyze performance, diagnose low CTR, compare periods, or check indexing.

证据

My SEO workflow changed from: GSC → CSV export → spreadsheet → codebase to: Search data → opportunity → page → code change → measurement

来源

The biggest benefit is not generating more SEO content. It is giving the coding assistant real search data so it can investigate the correct page before making a change.

来源

  • 记录日期: 2026-09-02T14:27:34.700Z