gsc-mcp
Allows querying Google Search Console search analytics, inspecting URLs, monitoring SEO performance, and managing sitemaps.
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 my top 10 search queries for last week."
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.
gsc-mcp
Google Search Console as MCP tools — query search analytics, inspect URLs, and monitor SEO performance from any MCP-compatible AI client (Claude Desktop, Claude Code, Claude.ai, Gemini CLI, Cursor, etc.).
Zero vendor middleware. Zero ongoing cost. Each user authenticates with their own Google account against Google's free Search Console API.
Why this exists
Pulling GSC data into an AI client normally means either (a) manual CSV exports, (b) a paid data-pipeline vendor like Windsor or Coupler, or (c) building your own script and glue. This is option (d): a small, self-contained MCP server you install once and use from anywhere. Pairs naturally with Google's Analytics MCP for a complete SEO + user behavior picture.
Related MCP server: gsc-mcp
Tools
All tools are read-only. No writes in v1.
Tool | What it does |
| Enumerate every verified Search Console property for the authenticated user |
| Flexible analytics query — any combination of dimensions (query, page, country, device, date, searchAppearance) and filters |
| Convenience: top N search queries for a site over a recent window |
| Convenience: top N landing pages for a site over a recent window |
| URL inspection — indexing verdict, coverage state, Google-chosen canonical, last crawl, mobile usability, rich results |
| List registered sitemaps with status, errors, warnings, last submitted date |
| Auth + API reachability diagnostic (use this first when something breaks) |
Setup
Three steps. ~15 minutes total.
1. Google Cloud — create an OAuth client
Open Google Cloud Console.
Create (or reuse) a project. Name it something like
gsc-mcp.Enable the Search Console API: one-click link.
Go to APIs & Services → Credentials.
If you haven't already, configure the OAuth consent screen:
User type: External.
App name:
gsc-mcp, support email: your email, developer email: your email.Add yourself as a Test user (under "Audience" / "Test users").
Click Create Credentials → OAuth client ID.
Application type: Desktop app.
Name:
gsc-mcp-local.
Download JSON. Move the downloaded file to:
~/.config/gsc-mcp/credentials.json(Create the directory if it doesn't exist:
mkdir -p ~/.config/gsc-mcp)
2. Install the server
pipx install gsc-mcpOr with pip:
pip install gsc-mcpThis installs the gsc-mcp console command and the gsc_mcp Python module.
3. Authenticate once
gsc-mcp authA browser window opens. Sign in with the Google account that owns your Search Console properties. You'll see a "Google hasn't verified this app" screen — that's expected because the app is for your personal use; click Advanced → Go to gsc-mcp (unsafe) and continue.
The token is saved to ~/.config/gsc-mcp/token.json (chmod 600) and refreshed automatically from here on.
Verify everything works:
gsc-mcp info
# gsc-mcp version: 0.1.0
# Credentials path: /Users/you/.config/gsc-mcp/credentials.json (exists: True)
# Token path: /Users/you/.config/gsc-mcp/token.json (exists: True)Connect it to a client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent path on Linux/Windows, and add:
{
"mcpServers": {
"gsc": {
"command": "gsc-mcp"
}
}
}Restart Claude Desktop. Type /mcp in a chat — you should see gsc listed with 7 tools.
Claude Code
claude mcp add gsc -- gsc-mcpOr edit ~/.claude.json / the project .claude/mcp.json directly:
{
"mcpServers": {
"gsc": {
"command": "gsc-mcp"
}
}
}Claude.ai
Settings → Connectors → Add custom connector.
Name:
GSC. Command:gsc-mcp.Enable it.
Cursor, Windsurf, Gemini CLI, etc.
Any MCP-compatible client accepts the same stdio server config. Command: gsc-mcp. No args.
Example prompts once connected
What verified sites do I have in Search Console?
Show me the top 20 search queries for defusely.com over the last 30 days.
Which pages on defusely.app have the biggest impression-to-click gap?
Inspect https://defusely.com/pricing — is it indexed, what's the canonical, when
was it last crawled?
List all sitemaps registered for defusely.com and flag any with errors.
Compare CTR on mobile vs desktop for the top 10 queries on defusely.com this month.Configuration
All paths are overrideable via environment variables:
Variable | Default | Purpose |
|
| OAuth client JSON from Google Cloud |
|
| Cached access token (auto-managed) |
Troubleshooting
Error 403 on every call — the Search Console API isn't enabled on your Google Cloud project, or the authenticated Google account doesn't own the property. Enable the API at the Search Console API library page and verify site ownership in Search Console.
Error 401 / token refresh fails — your refresh token was revoked (Google does this after ~6 months of non-use or on password change). Delete the token and re-auth:
rm ~/.config/gsc-mcp/token.json
gsc-mcp authSite not found — call gsc_list_sites first to see the exact siteUrl format. Domain properties use sc-domain:example.com; URL-prefix properties use https://example.com/ with the trailing slash.
URL inspection returns "quota exceeded" — the URL Inspection API is capped at ~2000 calls per property per day. Wait 24 hours or use bulk URL inspection sparingly.
Data looks stale — Search Console data typically lags real-time by 2-3 days. The default date range in this server ends 3 days ago for this reason. Don't query end_date = today and expect full data.
License
Apache 2.0 — see LICENSE.
Contributing
Issues and PRs welcome. This is deliberately small; keep changes focused on the GSC API surface.
Available Tools
7 toolsgsc_health_checkARead-onlyIdempotent
Diagnostic: confirm the OAuth token is valid and the Search Console API is reachable.
Run this first when setting up the server or after errors to determine whether the issue is auth, network, or a specific site.
Inputs: params (required). Returns: result
gsc_inspect_urlARead-onlyIdempotent
Run the URL Inspection API for a specific page.
Returns indexing verdict, coverage state, last crawl time, Google-chosen canonical, mobile usability, rich results — everything the Inspect URL panel in Search Console shows. Use this to diagnose why a page isn't ranking, confirm indexing after a publish, or spot canonical mismatches.
Rate limit: ~2000 calls per property per day. For bulk inspections, add a sleep between calls (a future bulk tool will handle this).
Inputs: params (required). Returns: result
gsc_list_sitemapsARead-onlyIdempotent
List every sitemap registered for a property, with status and error counts.
Useful for: verifying a sitemap was accepted, spotting sitemaps that have parse errors, and confirming fresh submission dates.
Inputs: params (required). Returns: result
gsc_list_sitesARead-onlyIdempotent
List every Google Search Console property the authenticated user can access.
Returns a table of site URLs and permission levels. Use the exact siteUrl string returned here when calling other tools — the format matters (domain properties use 'sc-domain:example.com' prefix).
Inputs: params (required). Returns: result
gsc_query_search_analyticsARead-onlyIdempotent
Run a flexible Search Analytics query against a property.
This is the general-purpose analytics tool. For common cases, prefer the
convenience tools gsc_top_queries or gsc_top_pages. Use this tool when
you need multi-dimensional grouping (e.g. query x device x country) or
non-default search types (image, video, news, discover).
Returns clicks, impressions, CTR and average position per row.
Inputs: params (required). Returns: result
gsc_top_pagesARead-onlyIdempotent
Return the top N landing pages for a site over a recent period.
Convenience wrapper over gsc_query_search_analytics. Use this to spot which URLs drive the most organic traffic and which are underperforming.
Inputs: params (required). Returns: result
gsc_top_queriesARead-onlyIdempotent
Return the top N search queries for a site over a recent period.
Convenience wrapper over gsc_query_search_analytics. Use this when you want a quick ranking of which queries are driving impressions/clicks — ideal for weekly SEO check-ins.
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: health check, URL inspection, sitemap listing, site listing, and three levels of analytics (general, top pages, top queries). No overlap that would confuse an agent.
All tools follow a consistent 'gsc_underscore' pattern with descriptive names (e.g., gsc_health_check, gsc_inspect_url, gsc_top_queries). No mixing of conventions.
7 tools cover key Search Console functionalities (health, inspection, sitemaps, sites, analytics) without being excessive. The scope is well-mapped to the domain.
Common read operations are present, but write/mutate tools are missing (e.g., no submit or delete sitemap, no request indexing, no site removal). This creates notable gaps for complete lifecycle management.
Maintenance
Related MCP Connectors
Read-only Google Search Console MCP server for AI assistants.
Hosted SEO MCP server for AI agents: keyword research, live Google SERPs and Maps, local rank tracking, backlinks, site audits, competitor research, and Search Console data.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Hosted, read-only Google Search Console MCP: performance, comparisons, URL inspection, sitemaps.
Related MCP Servers
- AlicenseAqualityDmaintenanceA lightweight, fast MCP server for Google Search Console. Query search analytics, manage sitemaps, and inspect URLs directly from your AI assistant.713 PyPIApache 2.0
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes the Google Search Console API, allowing LLMs to query SEO data, inspect URLs, manage sitemaps, and analyze search performance via natural language.-
- AlicenseAqualityDmaintenanceMCP server for Google Search Console, enabling querying search performance, listing properties, and inspecting URL indexing status from MCP-compatible clients.438 npm1MIT
- AlicenseNot gradedqualityDmaintenanceRead-only MCP server that gives AI clients access to Google Search Console data, enabling natural language queries about traffic, rankings, and SEO opportunities.MIT