SuperAPI AI Directory

google-search-console-mcp

Google Search Console: query performance data, inspect URLs, check indexing and generate HTML SEO audit reports with a 30/60/90-day roadmap.

Open website

About this tool

Purpose

This is an MCP (Model Context Protocol) server based on the Google Search Console API, mainly used for SEO data analysis and auditing. It provides 17 read-only tools to help users extract data from Google Search Console, diagnose issues, and generate reports, and it can run as a Claude Code plugin, .mcpb package, or Docker container.

Main Capabilities

  • Performance queries: Read search performance data from Google Search Console.
  • Quick optimization opportunities: Identify queries and pages that can be quickly improved.
  • Click-through rate gap analysis: Discover queries with high impressions but low click-through rates.
  • Keyword cannibalization detection: Identify situations where multiple pages compete for the same keyword.
  • Traffic decline diagnosis: Analyze the causes of traffic declines.
  • Index status checks: Check page indexing status through the URL Inspection tool.
  • Branded HTML audit reports: Generate standalone, self-contained HTML SEO audit reports, supporting English and Italian, with customizable colors, logo, report name, brand terms, and thresholds. The report includes a 30/60/90-day roadmap and does not contain any external URLs (no CDN, font services, etc.), making it safe to deliver to clients.

Usage

Integration Methods

  • Claude Code plugin: Includes the MCP server, five skills (weekly review, cannibalization check, index audit, content opportunities, branded client audit), and configuration prompts for three credentials.
  • .mcpb package: Download from the latest release google-search-console.mcpb and open it; requires installing uv.
  • Any MCP client (Cursor, Codex, Gemini CLI, Zed, etc.): Configure the command uvx, arguments mcp-google-search-console , and the three GSC_* environment variables.
  • Docker: The container uses streamable HTTP on /mcp , has no authentication of its own, and must remain on the loopback address or be placed behind a reverse proxy.

Authentication

The OAuth scope is only webmasters.readonly, and no tool can modify properties, sitemaps, or anything else in Search Console. Credential resolution order:GSC_AUTH_MODE、GSC_SERVICE_ACCOUNT_FILE or the token file under GSC_SERVICE_ACCOUNT_JSON、GSC_CLIENT_ID + GSC_CLIENT_SECRET + GSC_REFRESH_TOKEN、~/.config/mcp-google-search-console/ , application default credentials.

Supports the OAuth desktop app flow and service accounts. The OAuth flow prints three export lines and stores the token in ~/.config/mcp-google-search-console/token.json(permissions 0600). On headless machines, you can run auth on a laptop and copy the three environment variables. Service accounts need to be granted read access to their email in Search Console and pointed to the key file.

Report Customization

Configure colors, logo, report name, brand terms, and thresholds through a JSON file. Pass in branding_path, or place it in ~/.config/mcp-google-search-console/branding.json to apply it globally. Local logos are embedded in the document as base64; remote logos are retained only when allow_external_fonts is true, otherwise the report is guaranteed not to contain any external URLs.brand_terms is especially important; if not set, the first segment of the domain will be used as the brand, which may mislabel abbreviations, holding companies, and coined names.

Available Prompts

Three prompts encapsulate repetitive workflows:gsc_weekly_report、gsc_indexing_audit、gsc_content_opportunities.

Use Cases

  • SEO specialists and agencies performing website performance monitoring and client audits.
  • Content marketing teams discovering content opportunities and click-through rate gaps.
  • Website administrators diagnosing traffic drops and indexing issues.
  • Scenarios requiring branded, client-deliverable SEO reports in Chinese or Italian.

Limitations

  • Data range: Up to 16 months of daily data; earlier data is unavailable. Hourly data is limited to the most recent 10 days.
  • Quotas: URL Inspection 600 times per minute, 2,000 times per property per day; Search Analytics 1,200 queries per site per minute. Responses are memory-cached for 6 hours (1 hour for inspections),no_cache=true can be bypassed.
  • Row count: Up to 25,000 rows per API call; the tool defaults to 100, with an upper limit of 1,000, supporting start_row pagination; the upper limit is reported in the response and is not applied silently.
  • Read-only: No write permissions whatsoever.
  • Token security: Token files are written atomically with 0600 permissions; credentials provided via environment variables are not written to disk.gsc_doctor masks the client ID and never returns tokens. No telemetry, no analytics, and no host requests other than to Google APIs.
  • Testing: Tests never access the network. Live tests are located after -m live , require GSC_LIVE_TESTS=1 and credentials, and do not run in CI.

Troubleshooting

  • spawn uvx ENOENT: The client cannot find uvx in PATH. GUI applications do not inherit the shell PATH. Use an absolute path, such as which uvx output.
  • 403 forbidden: Almost always a property format issue. Domain properties are sc-domain:example.com; URL-prefix properties are https://example.com/, including the trailing slash.gsc_sites returns the exact string.
  • 401 invalid_grant: The refresh token has been revoked or has expired. Google expires refresh tokens after seven days for OAuth apps still in "Testing" status; publish the app or re-run auth.
  • 403 quotaExceeded: The daily URL Inspection quota has been used up; it resets tomorrow, with no retry.
  • Empty reports for small sites: Check the thresholds in the response metadata. Thresholds adapt to the property, but the floor (50 impressions, 10 clicks) still applies. Pass in thresholds to lower them.
  • Other issues: Run doctor and include its output in the issue.

Additional Information

  • License: MIT. Chart.js 4.5.1 is bundled under the MIT license in src/google_search_console_mcp/static/ .
  • Version releases are in docs/RELEASING.md; decisions not covered by the code are recorded in docs/DECISIONS.md.
  • Security policy is in SECURITY.md.

Repository address:https://github.com/acamolese/google-search-console-mcp