Google Search Console MCP Server

v1.2.0
io.github.conorbronsdon/gsc-mcp Checked 9 hours ago Published 15 days ago

Google 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.

ParameterTypeDescription
end_date *stringEnd date, YYYY-MM-DD (Pacific Time, inclusive).
site_url *stringThe 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 *stringStart date, YYYY-MM-DD (Pacific Time, inclusive).
dimension_filter_groupsarrayOptional filters, e.g. only rows where page contains '/blog/'. Each group's filters are AND-ed.
dimensionsarrayHow to group rows. Default ['query']. Combine for breakdowns, e.g. ['page','query'].
row_limitnumberMax rows to return (default 25, cap 1000). Keep low; rows cost tokens.
typestringSearch 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.

ParameterTypeDescription
end_date *stringEnd date, YYYY-MM-DD (lag ~2-3 days behind today).
site_url *stringThe 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 *stringStart date, YYYY-MM-DD (default: 28 days before end_date if omitted in your call).
limitnumberMax queries to return, ranked by impressions (default 25).
min_impressionsnumberOnly include queries with at least this many impressions (default 10).
position_maxnumberUpper bound of the striking-distance band (default 25).
position_minnumberLower 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.

ParameterTypeDescription
site_url *stringThe 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.

ParameterTypeDescription
feedpath *stringFull URL of the sitemap to submit, e.g. https://example.com/sitemap.xml. Must be within the property.
site_url *stringThe 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.

ParameterTypeDescription
feedpath *stringFull URL of the sitemap to remove, e.g. https://example.com/sitemap.xml.
site_url *stringThe 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'.

ParameterTypeDescription
inspection_url *stringThe fully-qualified URL to inspect. Must be within the property.
site_url *stringThe 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_codestringOptional BCP-47 language code for issue messages, e.g. 'en-US'.