gsc-mcp-server
Provides read-only tools for Google Search Console, including listing properties, querying Search Analytics, top queries/pages, period comparisons, traffic-drop analysis, CTR opportunities, striking-distance queries, position buckets, keyword cannibalization, and URL inspection.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
gsc-mcp-server
A read-only MCP server for Google Search Console. It lets an AI client (Claude Code, Claude Desktop, Cursor, Antigravity...) answer questions like "which pages lost traffic this month?" or "which queries are one push away from page one?" directly from your own Search Console data.
It is not a thin wrapper around the API: besides raw queries it ships the analyses an SEO actually runs, computed server-side so the model gets a short, ranked answer instead of 25,000 rows.
Status: v0.1. The analysis logic and the server are covered by 15 offline tests (fake Google service). The OAuth flow and live API calls have not been exercised end to end yet: run
gsc-mcp-server auth, thenlist_sites, before relying on results.
Tools
Tool | What it answers |
| Which properties can I read, and with what permission? |
| Raw query for an explicit date range, any dimensions, with page/query/country/device filters. |
| Top queries or pages by clicks, optionally scoped to a path or term. |
| Last N days vs the previous N days, per page or query (new / lost / up / down). |
| Pages or queries that lost >= X % of their clicks, biggest absolute loss first. |
| Queries with a CTR far below what your own site gets at that position (rewrite candidates). |
| Queries/pages ranking 8-20 with real impressions: the cheapest wins. |
| How many queries sit in 1-3, 4-10, 11-20, 21-50, 51+. |
| Queries where two or more of your pages share the impressions. |
| URL Inspection: index status, Google-selected canonical, last crawl, mobile usability. |
Design choices worth knowing:
Read-only. The only OAuth scope requested is
webmasters.readonly. The server cannot change anything in your property.No external benchmarks.
ctr_opportunitiescompares each query with the median CTR of the same site at the same position (needs >= 3 data points per position), instead of a generic CTR curve that would not fit your SERPs.Data lag handled. Date ranges end 3 days ago because recent Search Console data is incomplete.
Capped output. Every tool caps its rows so results stay small enough for an LLM context.
Credentials stay local. The refresh token lives in
~/.config/gsc-mcp-server/token.jsonand is never printed or logged.
Related MCP server: Google Search Console MCP Server
Setup
In Google Cloud Console, create a project, enable the Google Search Console API, and create an OAuth client ID of type "Desktop app". Download the JSON.
Install:
pip install git+https://github.com/gradientseo432/gsc-mcp-serverAuthorize once (opens the browser, read-only consent):
export GSC_OAUTH_CLIENT_SECRETS=/path/to/client_secret.json gsc-mcp-server authRegister it with your client.
Claude Code
claude mcp add gsc -- gsc-mcp-serverClaude Desktop / Cursor (
mcpServersin the client's JSON config){ "mcpServers": { "gsc": { "command": "gsc-mcp-server" } } }
Environment variables: GSC_OAUTH_CLIENT_SECRETS (OAuth client file, default ./client_secret.json) and
GSC_TOKEN_PATH (token location, default ~/.config/gsc-mcp-server/token.json).
Example prompts
"List my sites, then show the pages that lost more than 30 % of their clicks in the last 28 days."
"Which queries rank between 8 and 15 with more than 100 impressions? Group them by page."
"Find CTR opportunities for
/blog/and propose new titles for the top 5.""Do any of my pages cannibalize each other for the same query?"
"Is
https://example.com/pricingindexed, and which canonical did Google pick?"
Development
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytestThe analysis logic (src/gsc_mcp/analysis.py) is pure Python with no network access; the server tests use a fake
Google service, so the suite needs no credentials.
Limitations
Search Console API quotas apply; very large properties return the top rows only (the API caps rows per request).
inspect_urluses the URL Inspection API, which has its own daily per-property limit.Anonymized queries are not returned by Search Console, so totals from the UI can differ from summed rows.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
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.
Read-only Google Search Console and Google Analytics for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides read-only access to Google Search Console data, allowing AI assistants to query site performance metrics like keywords, clicks, and rankings using natural language. It supports listing verified properties, querying search analytics with dimension filters, and retrieving sitemap information.31MIT
- AlicenseAqualityBmaintenanceProvides AI agents with read-only access to Google Search Console data, including search analytics, index coverage, and sitemap status. It enables users to query clicks, impressions, and ranking performance or check URL indexing status through natural language.499 npm9MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access Google Search Console search performance and index health data, including clicks, impressions, rankings, URL inspection, and sitemap management.22 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to analyze Google Search Console SEO data through natural language, including search analytics, URL inspection, sitemap management, and property management.21MIT