gsc-doctor
Provides tools for diagnosing page indexing issues, inspecting individual URLs, viewing search analytics, and managing sitemaps in Google Search Console.
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-doctor Why aren't my pages indexed?"
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-doctor
An MCP server for Google Search Console, built around one question that the existing tools answer badly: why are my pages not indexed?
Google exposes the Pages report in the Search Console UI, but there is no bulk API for it. You can only inspect URLs one at a time. Most Search Console MCP servers stop at thin one-tool-per-endpoint wrappers and leave you to do that fan-out by hand. gsc-doctor does it for you: it reads your sitemap, inspects every URL, groups the results by coverage state, and annotates each group with what the state actually means and what to do about it.
Tools
Tool | What it does |
| Reads URLs from your sitemap (or an explicit list), inspects each, and returns a grouped coverage report with plain-language guidance. This is the reason the project exists. |
| Lists the properties your service account can read, with permission levels. Run this first to get the exact |
| Full URL Inspection result for a single page: index status, Google's chosen canonical, crawl details, mobile usability, rich results. |
| Clicks, impressions, CTR and average position, broken down by query, page, country, device, date or search appearance. |
| Every submitted sitemap with last download time, errors, warnings and URL counts. |
| Submits a sitemap. Only registered when |
Beyond the raw coverage state, diagnose_indexing flags problems that are easy to miss in the UI:
Pages where Google picked a different canonical than the one you declared
noindexarriving via meta tag orX-Robots-Tagheaderrobots.txt blocks
Failed page fetches
Indexed pages that no submitted sitemap references
Related MCP server: gsc-mcp
Setup
1. Enable the API and create a service account
Open the Google Cloud Console and create (or pick) a project.
Enable the Google Search Console API for that project.
Go to IAM & Admin > Service Accounts and create a service account.
Under its Keys tab, add a key of type JSON and download it.
2. Grant it access to your property
Open Search Console, then Settings > Users and permissions > Add user. Paste the service account's client_email (it looks like name@project.iam.gserviceaccount.com) and give it Full or Restricted access.
This step is the one people forget. Without it every call returns HTTP 403.
3. Install
git clone https://github.com/gerald-guledew/gsc-doctor.git
cd gsc-doctor
npm install
npm run build4. Register with Claude Code
claude mcp add gsc-doctor --env GSC_CREDENTIALS_PATH=/absolute/path/to/key.json -- node /absolute/path/to/gsc-doctor/dist/index.jsOr add it to your MCP client config directly:
{
"mcpServers": {
"gsc-doctor": {
"command": "node",
"args": ["/absolute/path/to/gsc-doctor/dist/index.js"],
"env": {
"GSC_CREDENTIALS_PATH": "/absolute/path/to/key.json"
}
}
}
}Configuration
Variable | Purpose |
| Path to the service account JSON key. |
| The key as an inline JSON string, for environments that inject secrets as env vars. Takes precedence over the path. |
| Set to |
If neither credential variable is set, the server falls back to Application Default Credentials.
Usage
Ask your assistant things like:
"Why aren't my pages indexed?"
"Diagnose indexing for sc-domain:example.com"
"Which queries drove impressions last month but almost no clicks?"
"Is https://example.com/pricing/ indexed, and which canonical did Google choose?"
Property identifiers must match Search Console exactly: sc-domain:example.com for a domain property, https://example.com/ for a URL-prefix property. Use list_properties if you are unsure.
Security
Writes are opt-in. With
GSC_ALLOW_WRITESunset the server requests the read-only OAuth scope, so the token it holds is incapable of mutating your property even if something tried.Credentials never leave your machine. The server runs locally and talks only to Google's API.
.gitignorealready excludes the common service account key filename patterns. Keep your key out of the repo.
Limitations
These are constraints of Google's API, not of this server:
No "Request Indexing". The UI button has no API equivalent. The separate Indexing API officially accepts only
JobPostingandBroadcastEventmarkup. Tools that point it at ordinary pages are working outside Google's documented policy.No bulk Pages report. URL Inspection is per-URL, quota roughly 2,000 per day and 600 per minute per property.
diagnose_indexingdefaults to 50 URLs per run for that reason.No Removals, manual actions or security issues. Not exposed by the API at all.
No Core Web Vitals. That data lives in the separate CrUX API.
Search Console data lags real time by about three days, which is why
search_analyticsdefaults its end date accordingly.
License
MIT
Available Tools
5 toolsdiagnose_indexingDiagnose index coverageARead-only
Explains why pages are or are not indexed. Reads URLs from the site's sitemap (or takes an explicit list), inspects each one, and groups the results by coverage state with plain-language guidance. This reconstructs the Pages report, which Google exposes in the UI but not as a bulk API.
Inputs: siteUrl (required), urls, maxUrls, sitemapUrl, +1 more.
inspect_urlInspect a single URLARead-only
Returns the full URL Inspection result for one page: index status, canonical Google selected, crawl details, mobile usability and detected rich results.
Inputs: url (required), siteUrl (required).
list_propertiesList Search Console propertiesARead-only
Lists every Search Console property the configured service account can read, with its permission level. Run this first to discover the exact siteUrl string other tools need.
Inputs: no named parameters.
list_sitemapsList submitted sitemapsARead-only
Shows every sitemap submitted for the property with its last download time, warnings, errors and per-type URL counts.
Inputs: siteUrl (required).
search_analyticsQuery search performanceARead-only
Returns clicks, impressions, CTR and average position from the Performance report, broken down by the dimensions you choose.
Inputs: siteUrl (required), type, endDate, rowLimit, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct Search Console concern: property discovery, sitemap listing, bulk indexing analysis, single-URL inspection, and performance analytics. The potential overlap between diagnose_indexing and inspect_url is clearly separated by bulk versus single-page scope.
Most names follow a verb_noun snake_case pattern, with list_properties and list_sitemaps being perfectly parallel. diagnose_indexing uses a gerund object and search_analytics reads as a domain term rather than a clear verb_noun action, so the pattern is not perfectly uniform.
Five tools is a tight, well-scoped set for a diagnostic Search Console server. Each tool earns its place and there are no redundant or filler tools.
The read-only diagnostic workflow is covered end-to-end: discover the property, inspect sitemaps, analyze indexing at scale, drill into a single URL, and query performance metrics. Mutation tools would be out of scope for a 'doctor' server.
Related MCP Connectors
Search Console index health audits with fixes, plus SEO checks for any public URL
Get websites indexed: Google index status, unindexed pages, IndexNow and sitemap discovery.
Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.
Audits AI search crawlers, citation blockers, llms.txt, JSON-LD, canonicals & sitemaps.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables SEO auditing and site analysis by crawling websites, identifying issues, and generating reports like sitemaps and markdown exports.54MIT
- AlicenseAqualityDmaintenanceTurns Google Search Console into an SEO copilot by enabling natural language queries for search analytics, URL inspection, sitemap management, and opportunity discovery.16MIT
- AlicenseAqualityDmaintenanceConnects Google Search Console to AI assistants, enabling natural language queries for SEO data, indexing audits, sitemap management, and full site audits.20MIT
- AlicenseBqualityCmaintenanceEnables keyword mining, Search Analytics queries, sitemap management across multiple properties, and URL index inspection through natural language.12MIT