GSC MCP
Provides read-only access to Google Search Console data, including listing accessible properties, querying Search Analytics for clicks, impressions, CTR, and position, and inspecting the indexed state of URLs.
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., "@GSC MCP Show me clicks and impressions for example.com over the last 28 days"
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
GSC MCP is a small, security-focused Model Context Protocol server for first-party Google Search Console data. It exposes property discovery, Search Analytics, and URL Inspection through the official Google APIs.
The server is structurally read-only: it contains no write tools and requests
only Google's webmasters.readonly OAuth scope.
Tools
Tool | Purpose | Google request |
| List accessible Search Console properties |
|
| Query clicks, impressions, CTR, position, and dimensions |
|
| Read the indexed state of a URL |
|
The two POST endpoints are read operations. The implementation blocks site,
sitemap, Indexing API, arbitrary HTTP, and all other non-allowlisted requests.
Every tool is annotated with readOnlyHint=true and destructiveHint=false.
Related MCP server: ga-gsc-analytics
Requirements
Python 3.10 or newer
Google Search Console API enabled for your Google Cloud project
Application Default Credentials (ADC) with access to the properties you query
The read-only OAuth scope:
https://www.googleapis.com/auth/webmasters.readonly
Google's Search Console API requires OAuth 2.0 for private user data. Follow the official Search Console authorization guide and ADC setup guide. Keep OAuth client files, service-account keys, ADC files, and tokens outside the repository.
Install from PyPI
With uv:
uvx --from gsc-readonly-mcp gsc-mcpWith pipx:
pipx install gsc-readonly-mcp
gsc-mcpWith pip in a virtual environment:
python -m venv .venv
python -m pip install gsc-readonly-mcp
gsc-mcpThe PyPI distribution is named gsc-readonly-mcp; the installed command and
short project name are gsc-mcp / GSC MCP.
Install from source
git clone https://github.com/muryulia/google-search-console-mcp.git
cd google-search-console-mcp
python -m venv .venv
python -m pip install -e ".[dev]"Run with either:
gsc-mcp
python -m gsc_mcp.serverThe process uses STDIN and STDOUT for MCP protocol messages. Diagnostics go to STDERR and exclude query strings, page rows, tokens, credential contents, and raw Google response bodies.
Authentication
The server uses Google's standard ADC lookup. Common options are:
local user ADC created with the Google Cloud CLI and the read-only Search Console scope;
a service account that has been granted access to the target Search Console property, selected through
GOOGLE_APPLICATION_CREDENTIALS;workload credentials in a supported Google Cloud environment.
Example environment variable names are provided in .env.example. The server
does not automatically load .env; pass variables through your shell,
secret manager, or MCP client configuration. Never commit a credential file.
On Windows or a managed network, REQUESTS_CA_BUNDLE or SSL_CERT_FILE may
point to a trusted external CA bundle. TLS verification is never disabled.
See docs/LOCAL_SETUP.md and
docs/TROUBLESHOOTING.md.
MCP client configuration
Codex
When uv is on PATH:
[mcp_servers.gsc_mcp]
command = "uvx"
args = ["--from", "gsc-readonly-mcp", "gsc-mcp"]
env_vars = [
"GOOGLE_APPLICATION_CREDENTIALS",
"SSL_CERT_FILE",
"REQUESTS_CA_BUNDLE",
"GRPC_DEFAULT_SSL_ROOTS_FILE_PATH",
]
enabled_tools = ["list_sites", "query_search_analytics", "inspect_url"]
startup_timeout_sec = 20
tool_timeout_sec = 120JSON-based MCP clients
Replace the credential path with an external file owned by your user account:
{
"mcpServers": {
"gsc_mcp": {
"command": "uvx",
"args": ["--from", "gsc-readonly-mcp", "gsc-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/secure/path/to/credentials.json"
}
}
}
}For a source checkout, point the client at the virtual environment's Python and
use -m gsc_mcp.server.
Tool behavior
list_sites
Input is {}. Output preserves Google's exact siteUrl; URL-prefix and
sc-domain: properties are never converted into one another.
query_search_analytics
Required inputs:
site_urlstart_dateend_date
Optional inputs include dimensions, search type, filters, aggregation type, manual pagination, and bounded automatic pagination. One response can contain at most 100,000 rows. CTR remains a raw fraction and position remains Google's average position without rounding. Dates use Pacific Time.
Search Console returns top rows within internal limits and omits anonymized queries. A missing query is not evidence of zero demand, and results must not be described as a complete query universe.
inspect_url
Required inputs are inspection_url and the exact site_url property;
language_code defaults to en-US. The URL must be under the supplied
property. The server sends it only as data to Google's fixed URL Inspection
endpoint and never fetches the user-supplied URL.
URL Inspection describes the version in Google's index. It is not a live-page test and never requests indexing.
Development and verification
python -m pip install -e ".[dev]"
ruff check src tests scripts
pytest
python -m buildThe test suite verifies the exact three-tool inventory, read-only annotations, fixed endpoint/method allowlist, bounded retries and pagination, property/URL identity, credential-safe errors, TLS enforcement, and real STDIO discovery.
The optional live helper returns a minimized summary and does not print query or page rows:
python scripts/live_acceptance.py \
--site-url "https://example.com/" \
--start-date "2026-07-01" \
--end-date "2026-07-31" \
--inspection-url "https://example.com/"A guarded OpenAI Secure MCP Tunnel workflow is documented in
docs/TUNNEL_SETUP.md. It is optional and is not needed
for ordinary local MCP clients.
Security and privacy
GSC MCP is self-hosted. It does not provide a hosted backend, database, telemetry service, or credential store. Data flows between the local MCP client, this local process, and Google's fixed Search Console API endpoints.
Review SECURITY.md before deployment. Please report
vulnerabilities privately through GitHub Security Advisories rather than a
public issue.
Support and contributing
Use GitHub Issues
for reproducible bugs and feature proposals. Read CONTRIBUTING.md
before submitting a change. Write-capable tools and broader OAuth scopes are
outside this project's scope.
License
MIT © 2026 Yuliya Murtazina.
Official references
Available Tools
3 toolsinspect_urlInspect indexed URL stateARead-onlyIdempotent
Read-only. Return Google URL Inspection information for the version currently in Google's index. This is not a live URL test and never requests indexing.
Inputs: site_url (required), inspection_url (required), language_code. Returns: object
list_sitesList Search Console propertiesARead-onlyIdempotent
Read-only. List every Google Search Console property available to the current ADC identity, preserving each exact property identifier and permission level.
Inputs: no named parameters. Returns: object
query_search_analyticsQuery Search AnalyticsARead-onlyIdempotent
Read-only. Query first-party Google Search Console performance data and return named dimensions with clicks, impressions, raw CTR fraction, and Search Console average position. Results are top rows, not a complete query universe.
Inputs: end_date (required), site_url (required), start_date (required), filters, +7 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct concern: site discovery, performance querying, and URL inspection. There is no overlap between listing properties, pulling analytics, or checking indexed URL status.
All tool names follow a consistent snake_case verb_noun pattern: list_sites, query_search_analytics, inspect_url. The naming clearly communicates the action and resource.
Three tools is lean but reasonable for a read-only Search Console server focused on core workflows. The count is not excessive, though adding a couple more relevant operations could make the set feel fuller.
The core Search Console needs are covered: site selection, performance data, and URL inspection status. Missing operations like sitemap submission or site management are notable but not critical for a read-only analytics-oriented server.
Maintenance
Related MCP Connectors
Read-only Search Console analytics, URL inspection, indexing diagnostics, and sitemaps.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Read-only Google Search Console and Google Analytics for AI agents.
Hosted, read-only Google Search Console MCP: performance, comparisons, URL inspection, sitemaps.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Google Search Console data, including search analytics, sitemap status, and URL inspection, for MCP clients like Claude.5 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables read-only access to Google Analytics 4 and Google Search Console data, allowing users to run reports, query search analytics, and generate combined snapshots for reporting.-
- 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.20Apache 2.0

io.scalably/gsc-mcpofficial
AlicenseAqualityBmaintenanceEnables read-only access to Google Search Console data, including properties, Search Analytics with filters and auto-pagination, sitemaps, and URL inspection with batch support and throttling.541 PyPI1MIT