Google Search Console MCP
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 clicks and impressions for the last 28 days, grouped by query."
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
A secure, community-maintained Model Context Protocol server for Google Search Console. It gives MCP clients structured access to Search Analytics, properties, sitemaps, and URL Inspection.
Features
Query clicks, impressions, CTR, and average position.
List and inspect Search Console properties.
List and inspect submitted sitemaps.
Inspect the indexed version of a URL.
Return both readable text and structured MCP output.
Restrict access to an explicit property allowlist.
Keep sitemap mutation tools disabled by default.
Authenticate with a service account or Google Application Default Credentials.
Install with
npx; no global package installation is required.
Related MCP server: mcp-google-search-console-crunchtools
Requirements
Node.js 22.14 or newer.
A Google Cloud project with the Search Console API enabled.
A Google identity that has access to at least one Search Console property.
An MCP client such as Claude Code.
Quick start
1. Prepare Google credentials
For a service account:
Enable the Google Search Console API in a Google Cloud project.
Create a service account and download its JSON key.
In Google Search Console, add the service account email under Settings → Users and permissions for each property it should access.
See Authentication for Application Default Credentials and detailed setup instructions.
2. Run the setup wizard
npx -y google-search-console-mcp setupThe wizard validates Google access, stores only the credential file path in the user configuration directory, and registers the MCP server with Claude Code at user scope.
Non-interactive setup is also supported:
npx -y google-search-console-mcp setup \
--credentials /absolute/path/to/service-account.json \
--allowed-sites sc-domain:example.com,https://www.example.com/ \
--non-interactiveOn Windows PowerShell, use one line or PowerShell backticks instead of backslashes.
3. Use it from Claude Code
Restart Claude Code after setup, then try:
List my Google Search Console properties.
Show clicks and impressions for the last 28 days, grouped by query.
Inspect https://www.example.com/article for indexing issues.
List the sitemaps submitted for sc-domain:example.com.Run diagnostics at any time:
npx -y google-search-console-mcp doctorManual Claude Code registration
macOS and Linux:
claude mcp add google-search-console --scope user \
--env GSC_CREDENTIALS_FILE=/absolute/path/to/service-account.json \
-- npx -y google-search-console-mcpWindows:
claude mcp add google-search-console --scope user --env GSC_CREDENTIALS_FILE=C:\path\to\service-account.json -- cmd /c npx -y google-search-console-mcpSee Client setup for project-level JSON configuration.
Tools
Tool | Default | Description |
| Enabled | List accessible Search Console properties. |
| Enabled | Get permission information for one property. |
| Enabled | Query Search Analytics metrics and dimensions. |
| Enabled | List submitted sitemaps. |
| Enabled | Get details about one sitemap. |
| Enabled | Inspect the version of a URL known to Google's index. |
| Opt-in | Submit a sitemap. |
| Opt-in | Remove a submitted sitemap. |
URL Inspection does not run a live test and cannot request indexing. Google does not expose those actions through the Search Console API.
See the complete Tool reference.
Configuration
Variable | Default | Description |
| ADC | Path to a service account JSON file. |
| ADC | Standard Google credential file variable. |
| All accessible | Comma-separated property allowlist. |
|
| Register sitemap mutation tools. |
|
| Google API request timeout. |
|
| Retry count for transient failures. |
|
| Maximum rows returned by one analytics request. |
|
|
|
| OS config directory | Override the setup-generated config path. |
Environment variables take precedence over the stored user configuration. See Configuration.
Security defaults
Read-only Google scope unless write tools are enabled.
No credentials or API response data are written to logs.
Logs go to stderr so MCP stdio messages remain valid.
Write tools are absent from the tool list unless explicitly enabled.
Property access can be constrained with
GSC_ALLOWED_SITES.No telemetry.
Read Security model and Security policy before enabling write tools.
Development
git clone https://github.com/dienhokhanh/google-search-console-mcp.git
cd google-search-console-mcp
npm install
npm run checkRun the development server:
npm run devSee Development and Contributing.
License
Available Tools
6 toolsgsc_get_siteGet a Search Console propertyBRead-onlyIdempotent
Get permission information for one Google Search Console property.
Inputs: siteUrl (required).
gsc_get_sitemapGet a sitemapBRead-onlyIdempotent
Get details about a submitted sitemap.
Inputs: siteUrl (required), sitemapUrl (required).
gsc_inspect_urlInspect a URLARead-onlyIdempotent
Inspect the version of a URL currently known to Google's index. This does not run a live test or request indexing.
Inputs: siteUrl (required), inspectionUrl (required), languageCode.
gsc_list_sitemapsList sitemapsCRead-onlyIdempotent
List sitemaps submitted for a Google Search Console property.
Inputs: siteUrl (required), sitemapIndex.
gsc_list_sitesList Search Console propertiesARead-onlyIdempotent
List Google Search Console properties available to the configured identity.
Inputs: no named parameters.
gsc_query_search_analyticsQuery Search AnalyticsCRead-onlyIdempotent
Query clicks, impressions, CTR, and average position from Google Search Console. Use startRow for pagination.
Inputs: endDate (required), siteUrl (required), startDate (required), type, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource and action: sites (list vs permission get), sitemaps (list vs detail get), URL inspection, and search analytics. The list/get pairs are clearly separated by their descriptions, and query_search_analytics and inspect_url have no overlap.
All tools use a uniform gsc_ prefix followed by a consistent verb_noun pattern (list_sites, inspect_url, get_site, query_search_analytics, list_sitemaps, get_sitemap). No style mixing.
Six tools is well-scoped for a Search Console read surface, covering properties, sitemaps, analytics, and URL inspection without redundancy. Each tool earns its place.
Core read operations (list/get sites, list/get sitemaps, analytics query, URL inspection) are covered. Notable gaps exist on the write side: no sitemap submission/deletion and no indexing request, which limits lifecycle coverage but is workable for a read-focused server.
Maintenance
Related MCP Connectors
Read-only Google Search Console MCP server for AI assistants.
Hosted, read-only Google Search Console MCP: performance, comparisons, URL inspection, sitemaps.
Audit, rank-track and analyze SEO for sites via an authenticated MCP server.
Hosted Google Search Console MCP server, with each action switched on or off per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Search Console via MCP, offering search analytics, performance summaries, URL inspection, sitemap management, and property listing for SEO workflows.262 npm1MIT
- AlicenseAqualityBmaintenanceSecure MCP server for Google Search Console. Query search analytics (clicks, impressions, CTR, position), manage sitemaps, inspect URL indexing status, and manage site properties.10AGPL 3.0
- AlicenseBqualityBmaintenanceEnables Google Search Console data queries via MCP, including search analytics, performance comparisons, URL inspection, and sitemap management.121MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to query Google Search Console search performance, inspect indexing, analyze sitemaps, and run SEO analyses such as cannibalisation detection, query clustering, and wins/losses, all with read-only access.20397 npmApache 2.0