Google Search Console MCP Server
v1.2.0Google Search Console for AI agents: search analytics, sitemaps, URL inspection.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gsc_list_sites List Search Console properties
List the Search Console properties (sites) the signed-in Google account can access, with each one's permission level. This is the entry point: every other tool needs a property string in the exact form returned here.
gsc_search_analytics Query search performance
Query Search Console search analytics for a property over a date range: clicks, impressions, CTR, and average position, grouped by the dimensions you pass (query, page, country, device, date). Returns compact rows. Use this for 'what are my top queries / pages' and trend questions. GSC data lags ~2-3 days, so end your range a few days before today.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date, YYYY-MM-DD (Pacific Time, inclusive). |
site_url * | string | The Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://exa… |
start_date * | string | Start date, YYYY-MM-DD (Pacific Time, inclusive). |
dimension_filter_groups | array | Optional filters, e.g. only rows where page contains '/blog/'. Each group's filters are AND-ed. |
dimensions | array | How to group rows. Default ['query']. Combine for breakdowns, e.g. ['page','query']. |
row_limit | number | Max rows to return (default 25, cap 1000). Keep low; rows cost tokens. |
type | string | Search type filter. Defaults to web when omitted. |
gsc_striking_distance Striking-distance keywords
The SEO goldmine view: queries ranking just off page one (average position 8-25) with enough impressions to be worth optimizing. These are the keywords where a small content tweak can win real clicks. Computed client-side from search analytics; returns queries sorted by impressions.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date, YYYY-MM-DD (lag ~2-3 days behind today). |
site_url * | string | The Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://exa… |
start_date * | string | Start date, YYYY-MM-DD (default: 28 days before end_date if omitted in your call). |
limit | number | Max queries to return, ranked by impressions (default 25). |
min_impressions | number | Only include queries with at least this many impressions (default 10). |
position_max | number | Upper bound of the striking-distance band (default 25). |
position_min | number | Lower bound of the striking-distance band (default 8). |
gsc_list_sitemaps List sitemaps
List the sitemaps submitted for a property, with each one's submit/download times, pending state, and warning/error counts. Use this to check whether a sitemap was processed and is error-free.
| Parameter | Type | Description |
|---|---|---|
site_url * | string | The Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://exa… |
gsc_submit_sitemap Submit a sitemap
Submit (or re-submit) a sitemap to Google Search Console for a property. This is a WRITE action: it registers the sitemap and pings Google to crawl it. Requires the full webmasters OAuth scope — if the saved credential is read-only, re-mint with scripts/seo-auth-setup.py. Idempotent: re-submitting the same sitemap URL just refreshes it.
| Parameter | Type | Description |
|---|---|---|
feedpath * | string | Full URL of the sitemap to submit, e.g. https://example.com/sitemap.xml. Must be within the property. |
site_url * | string | The Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://exa… |
gsc_delete_sitemap Delete a sitemap
Remove a sitemap from a property in Search Console. This is a DESTRUCTIVE write action: it deregisters the sitemap (it does not delete the file from your server, but Google stops tracking it). Requires the full webmasters OAuth scope.
| Parameter | Type | Description |
|---|---|---|
feedpath * | string | Full URL of the sitemap to remove, e.g. https://example.com/sitemap.xml. |
site_url * | string | The Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://exa… |
gsc_inspect_url Inspect a URL's index status
Inspect a single URL with the URL Inspection API: whether Google has it indexed, its coverage state, last crawl time, Google's chosen canonical, and a one-line mobile/rich-results summary. Returns a compact projection, not the full raw blob. Use this to debug 'why isn't this page indexed'.
| Parameter | Type | Description |
|---|---|---|
inspection_url * | string | The fully-qualified URL to inspect. Must be within the property. |
site_url * | string | The Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://exa… |
language_code | string | Optional BCP-47 language code for issue messages, e.g. 'en-US'. |