Skip to main content
Glama
Google Search Console MCP

Google Search Console MCP

by rohoswagger

Google Search Console MCP

Stdio MCP server for Google Search Console. It focuses on keyword mining, Search Analytics metrics, sitemap management across multiple properties, and URL index inspection.

Install

npm install
npm run build

For a published package, install it globally or use the gsc-mcp binary from your package manager. This scoped package is configured for public npm access.

Related MCP server: Google Search Console MCP Server

Auth

For personal use from npm, create a Desktop OAuth client in Google Cloud, enable the Search Console API, download the OAuth client JSON, then run:

npx @rohoswagger/google-search-console-mcp auth \
  --client-secrets ~/Downloads/client_secret_....json

The browser consent flow saves the client ID, client secret, and refresh token to your user config directory. Nothing sensitive is printed to stdout. The default credential locations are:

  • macOS: ~/Library/Application Support/google-search-console-mcp/credentials.json

  • Linux: ${XDG_CONFIG_HOME:-~/.config}/google-search-console-mcp/credentials.json

  • Windows: %APPDATA%/google-search-console-mcp/credentials.json

The credentials file and its directory use owner-only permissions. Future npx ... or globally installed gsc-mcp processes load it automatically.

Environment variables remain available as overrides:

GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
GOOGLE_REFRESH_TOKEN=...

For repository development, you can instead copy .env.example to .env and fill in the client ID and secret before running npm run dev -- auth. The callback updates that env file as well as the persistent user credentials file. .env is gitignored.

The server also accepts GOOGLE_ACCESS_TOKEN for quick tests and GOOGLE_APPLICATION_CREDENTIALS for Application Default Credentials. Service accounts only work for Search Console if the service account email has access to the property.

The auth helper uses http://127.0.0.1:53682/oauth2callback by default. Add that redirect URI to your OAuth client, or set GOOGLE_REDIRECT_URI and GSC_MCP_AUTH_PORT to match your Google Cloud configuration.

MCP config

Example client config:

{
  "mcpServers": {
    "google-search-console": {
      "command": "npx",
      "args": ["-y", "@rohoswagger/google-search-console-mcp"]
    }
  }
}

The example assumes you authenticated once with the npx ... auth --client-secrets ... command. No credentials need to be copied into the MCP client configuration.

Tools

  • gsc_list_sites: lists all properties available to the authenticated account.

  • gsc_search_analytics: raw Search Analytics query for one property, selected properties, or all properties.

  • gsc_top_queries: convenience keyword mining tool for queries/pages across one or many properties.

  • gsc_keyword_opportunities: finds high-impression, low-CTR queries across one or many properties.

  • gsc_search_appearance_types: discovers searchAppearance values available for a property.

  • gsc_list_sitemaps: lists submitted sitemaps.

  • gsc_get_sitemap: fetches sitemap status and metadata.

  • gsc_submit_sitemap: submits a sitemap. Requires https://www.googleapis.com/auth/webmasters.

  • gsc_delete_sitemap: deletes a submitted sitemap. Requires https://www.googleapis.com/auth/webmasters.

  • gsc_batch_submit_sitemaps: submits sitemap URLs across multiple properties with per-target results.

  • gsc_batch_delete_sitemaps: deletes sitemap URLs across multiple properties with per-target results.

  • gsc_inspect_url: checks indexed URL status.

AI search visibility

Google Search Console has a dedicated Generative AI performance report in the UI, rolled out worldwide on August 31, 2026. The public Search Console API docs do not expose a matching REST endpoint yet. Google documents AI Overviews and AI Mode as included in the web search type in Search Console performance data.

The practical API path today is:

  1. Use gsc_search_analytics or gsc_top_queries with type: "web" for clicks, impressions, CTR, and position.

  2. Use gsc_search_appearance_types to discover any searchAppearance values Google exposes for your property.

  3. Treat dedicated Generative AI report data as UI/export-only until Google adds it to the API.

Useful examples

Top Gojo alternative-query impressions across all connected sites:

{
  "allSites": true,
  "startDate": "2026-08-01",
  "endDate": "2026-08-31",
  "type": "web",
  "queryContains": "alternatives",
  "limit": 100
}

Find queries around a competitor page:

{
  "siteUrl": "sc-domain:example.com",
  "startDate": "2026-08-01",
  "endDate": "2026-08-31",
  "pageContains": "notchnook-alternatives",
  "includePages": true,
  "limit": 500
}

Find high-impression queries that are earning few clicks:

{
  "allSites": true,
  "startDate": "2026-08-01",
  "endDate": "2026-08-31",
  "minImpressions": 100,
  "maxCtr": 0.03,
  "includePages": true,
  "limit": 5000
}

Submit a sitemap:

{
  "siteUrl": "https://example.com/",
  "feedpath": "https://example.com/sitemap.xml"
}

List sitemaps for every connected property:

{
  "allSites": true
}

Submit sitemaps across several properties:

{
  "targets": [
    {
      "siteUrl": "sc-domain:example.com",
      "feedpath": "https://example.com/sitemap.xml"
    },
    {
      "siteUrl": "https://docs.example.com/",
      "feedpath": "https://docs.example.com/sitemap.xml"
    }
  ]
}

References

Available Tools

12 tools
gsc_batch_delete_sitemapsDelete sitemaps across sitesA

Delete up to 100 submitted sitemap URLs across multiple Search Console properties. Each target reports success or its Google API error. Requires the webmasters OAuth scope.

Inputs: targets (required).

gsc_batch_submit_sitemapsSubmit sitemaps across sitesA

Submit up to 100 sitemap URLs across multiple Search Console properties. Each target reports success or its Google API error. Requires the webmasters OAuth scope.

Inputs: targets (required).

gsc_delete_sitemapDelete sitemapC

Remove a submitted sitemap from a Search Console property. Requires the webmasters OAuth scope.

Inputs: siteUrl (required), feedpath (required).

gsc_get_sitemapGet sitemapC

Fetch status and metadata for a submitted sitemap.

Inputs: siteUrl (required), feedpath (required).

gsc_inspect_urlInspect URL index statusB

Inspect the indexed status of a URL under a Search Console property.

Inputs: siteUrl (required), inspectionUrl (required), languageCode.

gsc_keyword_opportunitiesFind keyword opportunitiesB

Find high-impression, low-CTR queries across one or many properties. Returns clicks, impressions, CTR, and position sorted by impressions.

Inputs: endDate (required), startDate (required), type, limit, +12 more.

gsc_list_sitemapsList sitemapsC

List submitted sitemaps for a Search Console property.

Inputs: siteUrl, allSites, siteUrls, sitemapIndex.

gsc_list_sitesList Search Console sitesA

List all Search Console properties available to the authenticated Google account.

Inputs: no named parameters.

gsc_search_analyticsQuery Search AnalyticsC

Run a Search Analytics query for one property, selected properties, or all properties. Returns clicks, impressions, CTR, and average position.

Inputs: endDate (required), startDate (required), type, filters, +8 more.

gsc_search_appearance_typesList search appearance typesA

Discover searchAppearance values available for a property. Use these values to filter later Search Analytics calls.

Inputs: endDate (required), siteUrl (required), startDate (required), type, +1 more.

gsc_submit_sitemapSubmit sitemapB

Submit a sitemap URL to a Search Console property. Requires the webmasters OAuth scope.

Inputs: siteUrl (required), feedpath (required).

gsc_top_queriesFind working keywordsC

Fetch top query rows for one property, selected properties, or all properties. Supports filters for query, page, country, and device.

Inputs: endDate (required), startDate (required), type, limit, +9 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 12 tools

    Disambiguation3/5

    Most tools are clearly distinct (sites, inspection, sitemap CRUD), but there is meaningful overlap among gsc_search_analytics, gsc_top_queries, and gsc_keyword_opportunities, all of which return query-level performance data. Single and batch sitemap tools also overlap, though they are separable by operation scope.

    Naming Consistency4/5

    All tool names use a consistent gsc_ prefix and snake_case convention, which is predictable. However, some names are verb-noun (list_sites, delete_sitemap) while others are noun-only (top_queries, keyword_opportunities), creating minor stylistic inconsistency.

    Tool Count5/5

    Twelve tools is well-scoped for a Search Console server covering site listing, URL inspection, sitemap management, and search analytics. Each tool has a defensible place in the overall surface without feeling padded or redundant.

    Completeness4/5

    The tool surface covers the major Search Console workflows: property discovery, URL inspection, sitemap submission/deletion/status, and search performance analysis. Minor gaps like per-property detail retrieval or richer analytics dimensions exist but are workable around.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Turns Google Search Console into an SEO copilot by enabling natural language queries for search analytics, URL inspection, sitemap management, and opportunity discovery.
      16
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying Google Search Console data, including search analytics with advanced filtering, quick wins detection, and rich dimensions, through natural language.
      9,024 npm
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      Enables natural language interaction with Google Search Console data, including property management, search analytics, URL inspection, and sitemap management via MCP.
      21
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to analyze Google Search Console SEO data through natural language, including search analytics, URL inspection, sitemap management, and property management.
      21
      MIT