Google Search Console MCP
Provides tools for interacting with Google Search Console, enabling keyword mining, search analytics queries, sitemap management across multiple properties, and URL index inspection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Search Console MCP Show me my top queries and CTR for last month across all sites"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 buildFor 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_....jsonThe 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.jsonLinux:
${XDG_CONFIG_HOME:-~/.config}/google-search-console-mcp/credentials.jsonWindows:
%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: discoverssearchAppearancevalues available for a property.gsc_list_sitemaps: lists submitted sitemaps.gsc_get_sitemap: fetches sitemap status and metadata.gsc_submit_sitemap: submits a sitemap. Requireshttps://www.googleapis.com/auth/webmasters.gsc_delete_sitemap: deletes a submitted sitemap. Requireshttps://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:
Use
gsc_search_analyticsorgsc_top_querieswithtype: "web"for clicks, impressions, CTR, and position.Use
gsc_search_appearance_typesto discover anysearchAppearancevalues Google exposes for your property.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
Search Analytics API: https://developers.google.com/webmaster-tools/v1/searchanalytics/query
Getting all Search Analytics data: https://developers.google.com/webmaster-tools/v1/how-tos/all-your-data
Sites API: https://developers.google.com/webmaster-tools/v1/sites/list
Sitemaps API: https://developers.google.com/webmaster-tools/v1/sitemaps
URL Inspection API: https://developers.google.com/webmaster-tools/v1/urlInspection.index/inspect
AI features and Search Console measurement: https://developers.google.com/search/docs/appearance/ai-features
Generative AI performance report: https://support.google.com/webmasters/answer/16984139
MCP TypeScript server SDK: https://github.com/modelcontextprotocol/typescript-sdk
Available Tools
12 toolsgsc_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
Scored across 12 tools
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.
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.
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.
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
Related MCP Connectors
Query your SEO data in plain language: rankings, audits, backlinks, competitors and AI visibility.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.
Google Search Console in your AI: overview, opportunities, index gaps, page checks, long history.
Related MCP Servers
- AlicenseAqualityDmaintenanceTurns Google Search Console into an SEO copilot by enabling natural language queries for search analytics, URL inspection, sitemap management, and opportunity discovery.16MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying Google Search Console data, including search analytics with advanced filtering, quick wins detection, and rich dimensions, through natural language.9,024 npmMIT
- AlicenseAqualityFmaintenanceEnables natural language interaction with Google Search Console data, including property management, search analytics, URL inspection, and sitemap management via MCP.21MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to analyze Google Search Console SEO data through natural language, including search analytics, URL inspection, sitemap management, and property management.21MIT