google-search-console
Query Google Search Console via LinkDR’s free hosted MCP (or a self-hosted server) for Search Analytics, striking-distance pushes, CTR leaks, cannibalization, and URL inspection.
# Google Search Console
Query first-party Search Console data directly from your coding agent using LinkDR's free hosted MCP (built by Ilias, `https://linkdr.com/mcp`):
- **Zero GCP setup:** no Google Cloud project, OAuth consent app, or service account JSON keys.
- **Connect once, query any site you pick:** uses Google's read-only `webmasters.readonly` scope so you can connect your Google account once at [linkdr.com/gsc](https://linkdr.com/gsc) and import whichever sites you want to query.
- **One MCP endpoint:** includes 4 read-only Search Console tools alongside LinkDR project and browser `/agent/checkout` quote tools (never charges a card).
- **Clean disconnect:** disconnecting revokes Google access and deletes your stored tokens and Search Console data.
Using a local self-hosted GSC MCP instead? Swap the `linkdr_*` calls below for your server's Search Analytics, URL Inspection, and Sitemaps tools.
## Setup
Add LinkDR's hosted MCP in your client:
**Claude Code**
```bash
claude mcp add --transport http linkdr https://linkdr.com/mcp
```
**Cursor** (`.cursor/mcp.json`)
```json
{
"mcpServers": {
"linkdr": { "type": "http", "url": "https://linkdr.com/mcp" }
}
}
```
**Codex** (`~/.codex/config.toml` or CLI)
```bash
codex mcp add linkdr --url https://linkdr.com/mcp
```
**Windsurf** (`~/.codeium/windsurf/mcp_config.json`)
```json
{
"mcpServers": {
"linkdr": { "serverUrl": "https://linkdr.com/mcp" }
}
}
```
Call `linkdr_list_my_gsc_properties` first. If no properties are imported yet, send the user `https://linkdr.com/gsc` to connect one and re-run. Match the repo's production domain (prefer `sc-domain:` when present).
## Read-only GSC tools
| Tool | Returns | Key parameters |
| --- | --- | --- |
| `linkdr_list_my_gsc_properties` | Imported GSC properties on your account (or `connectUrl` if none) | None |
| `linkdr_query_my_gsc` | Search Analytics rows (`clicks`, `impressions`, `ctr`, `position`) | Target (`projectSlug`, `domain`, or `siteUrl`), `period` (`7d`\|`28d`\|`90d`\|`12m`) or `startDate`/`endDate` (`YYYY-MM-DD`), `dimensions` (`query`, `page`, `date`, `country`, `device`, `searchAppearance`), `filters`, `searchType`, `limit` (up to `500`), `offset` |
| `linkdr_inspect_my_gsc_url` | Index verdict, coverage state, `robots.txt`, user vs. Google canonical, `lastCrawlTime`, rich results | Target (`projectSlug`, `domain`, or `siteUrl`), `url` |
| `linkdr_list_my_gsc_sitemaps` | Submitted and indexed counts, warnings, errors, `lastDownloaded` | Target (`projectSlug`, `domain`, or `siteUrl`) |
Use exact numbers, queries, and URLs from tool responses, and map URLs to real repo files before proposing edits. Never commit raw GSC query dumps into public repositories.
## Workflows
If a query returns `500` rows, paginate with `offset` or add `filters` so results are not silently truncated.
### 1. Striking-distance push (positions 5 to 20)
- Pull `period: "28d"` with `dimensions: ["query", "page"]`, `limit: 500`.
- Filter to non-brand queries at position 5 to 20 with `impressions >= 100` (`>= 30` on smaller sites), group by `page`, and rank product-relevant URLs by impressions.
- Compare the top 1 to 3 pages against live top-3 SERPs: align `<title>`/`<h1>` and opening lead, add missing sections or tables (`on-page`, `blog-refresher`), add contextual internal links (`internal-linking`), or flag off-page link gaps (`linkdr`).
### 2. Breakout and AI fan-out queries
- Pull two consecutive 28-day windows with `startDate`/`endDate` (allowing for GSC's 2 to 3 day reporting lag) and `dimensions: ["query", "page"]`, `limit: 500`.
- Isolate breakouts (new queries with `>= 50` impressions or `3x+` spikes with `>= 75` impressions) and 5+ word natural-language fan-out queries (`>= 20` impressions).
- Inspect each landing page in the repo: tighten headings if already covered, add a dedicated Q&A `<h2>` or comparison table if buried, or ship a dedicated route when the wrong page ranks.
### 3. CTR leak audit (positions 1 to 8)
- Pull `period: "28d"` with `dimensions: ["page", "query"]`, `limit: 500`; filter to `position <= 8` and `impressions >= 200` (separate brand from non-brand).
- Flag non-brand CTR below position floors: pos 1.0-1.5 (`< 14%`), 1.6-2.5 (`< 7%`), 2.6-3.5 (`< 4.5%`), 3.6-5.5 (`< 2.5%`), 5.6-8.0 (`< 1.2%`).
- Check `dimensions: ["page", "searchAppearance"]` or live SERPs for ad/AI Overview distortion first, then rewrite `<title>` (40-55 chars, top query near front) and meta description (135-155 chars) via `seo-title-optimization`.
### 4. Cannibalization check
- Pull `period: "90d"` with `dimensions: ["query", "page"]`, `limit: 500` so short Google tests do not look like conflicts.
- Skip queries where one URL holds `position <= 2.5` and `>= 85%` of clicks; flag queries (`>= 100` impressions) where 2+ URLs each take `>= 15%` of impressions at avg position `>= 4`.
- Resolve in code: merge overlapping posts with a 1-hop `301`, fix canonicals or URL variants, retarget an informational post outranking a money page, or split vague titles into distinct intents.
### 5. Live index and sitemap check
- Call `linkdr_list_my_gsc_sitemaps` for errors, warnings, stale downloads, or submitted vs. indexed gaps, and diff sitemap routes against the repo.
- Run `linkdr_inspect_my_gsc_url` on priority money pages and recently shipped URLs (15 to 25 per pass).
- Fix real blockers in code: `robots.txt` blocks, stray `noindex`, `4xx`/`5xx` routes, canonical mismatches, broken JSON-LD, or thin/orphaned pages (`on-page`, `internal-linking`).
## Related
- `on-page` (structural upgrades), `seo-title-optimization` (CTR rewrites), `blog-refresher` (slipping posts), `seo-roast` (full teardown), `seo-autopilot` (recurring repo SEO), `linkdr` (referring-domain gaps).