Skip to main content
Glama
Google Search Console MCP Server

Google Search Console MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SEARCH_CONSOLE_TOKEN_FILENoToken saved by `search-console-mcp auth`. Default: your config directory.
SEARCH_CONSOLE_OAUTH_CLIENTNoDesktop OAuth client JSON for `search-console-mcp auth`, instead of `--client-secrets`.
GOOGLE_APPLICATION_CREDENTIALSNoApplication Default Credentials; used when there's no key or token.
SEARCH_CONSOLE_MCP_TOOL_GROUPSNoComma-separated tool groups to register, e.g. `analytics,inspection`. The `--tools` flag wins over the variable. Default: all groups.
SEARCH_CONSOLE_SERVICE_ACCOUNT_KEYNoService account key; used instead of the token when set.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Google Search Console: search performance, sitemaps and URL Inspection. Start with list_sites and pass each site_url exactly as it returns it (sc-domain:example.com or https://www.example.com/). Data runs two to three days behind; dates default to 30daysAgo..3daysAgo. Use compare_performance for period-over-period reports. URL Inspection allows 2,000 calls a day and 600 a minute per property; batch_inspect_urls paces itself. submit_sitemap and delete_sitemap need --allow-write and the webmasters scope; nothing else writes. Limit tools to groups with --tools or SEARCH_CONSOLE_MCP_TOOL_GROUPS: analytics, sitemaps, inspection.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_sitesA

Lists the Search Console properties the signed-in account can see.

Returns each property's exact site_url (pass it unchanged to every other tool), whether it's a domain property ('sc-domain:example.com') or a URL-prefix property ('https://www.example.com/'), and your permission level (siteOwner, siteFullUser, siteRestrictedUser or siteUnverifiedUser; unverified properties return no data).

get_siteA

Gets one property's type and your permission level.

Args: site_url: The property, exactly as list_sites returns it, e.g. 'sc-domain:example.com' or 'https://www.example.com/'.

query_search_analyticsA

Queries Search Console performance: clicks, impressions, CTR, position.

Rows come back sorted by clicks. With no dimensions you get one row of totals. Data is usually two to three days behind; the most recent days are partial unless data_state is 'all'.

Args: site_url: The property, exactly as list_sites returns it. start_date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'. end_date: Same formats. Defaults to '3daysAgo' (complete data). dimensions: Any of 'query', 'page', 'country', 'device', 'date', 'searchAppearance' (and 'hour' with data_state 'hourly_all'). Countries are ISO 3166-1 alpha-3 codes in lower case (e.g. 'gbr'); devices are DESKTOP, MOBILE or TABLET. search_type: 'web' (default), 'image', 'video', 'news', 'discover' or 'googleNews'. Discover and Google News don't support the query dimension. filters: Filters combined with AND, each {'dimension': 'query', 'operator': 'contains', 'expression': 'shoes'}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex (RE2 syntax; prefix '(?i)' for case-insensitive). aggregation_type: 'auto', 'byPage' or 'byProperty'. Totals by page count a URL once per result; by property count the site once. data_state: 'final' (complete days only), 'all' (includes fresh, partial data) or 'hourly_all'. row_limit: Rows to return, 1 to 25,000. Default 1,000. start_row: Zero-based offset for paging; use next_start_row from the previous call.

Note: queries Google treats as anonymised are left out of rows that have the query dimension, so those rows add up to less than the totals.

compare_performanceA

Compares a period with the one before it (or the year before).

Returns totals for both periods with the change, and, with a dimension, the top rows (e.g. top queries or pages) with their previous values. Use it for "top queries this month vs last month", winners and losers, and brand vs non-brand trends.

Args: site_url: The property, exactly as list_sites returns it. dimension: Optional 'query', 'page', 'country', 'device' or 'searchAppearance'. Leave out for totals only. start_date: Start of the current period. Default '30daysAgo'. end_date: End of the current period. Default '3daysAgo'. comparison: 'previous_period' (same length, immediately before) or 'previous_year' (same dates a year earlier). search_type: 'web' (default), 'image', 'video', 'news', 'discover' or 'googleNews'. filters: Same as query_search_analytics; applied to both periods. brand_terms: Optional brand terms, e.g. ['acme', 'acme shoes']. Adds brand and non-brand totals (queries containing any term, case insensitive) for both periods. sort_by: 'clicks', 'impressions', 'ctr', 'position', 'clicks_change', 'impressions_change' or 'position_change' (current period). descending: Sort order. Use False with 'clicks_change' for the biggest losers. row_limit: Rows to return after sorting. Default 50. fetch_limit: Rows fetched per period before joining, up to 25,000. Rows outside it count as zero, so raise it for long-tail work.

Note: changes in position are current minus previous, so negative means better. Brand plus non-brand totals are lower than the overall total because Google leaves anonymised queries out of query filters; the gap is reported as 'anonymised_or_unmatched'.

get_queries_for_pageA

Lists the search queries a page shows up for, with the page's totals.

Args: site_url: The property, exactly as list_sites returns it. page_url: Full URL of the page. A path such as '/products/x' works for URL-prefix properties. start_date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'. end_date: Same formats. Default '3daysAgo'. match: 'exact' (default) or 'contains' (e.g. every URL with '/blogs/'). search_type: 'web' (default), 'image', 'video' or 'news'. row_limit: Queries to return, up to 25,000. Default 100.

The page totals include anonymised queries, so they're usually higher than the sum of the query rows.

get_pages_for_queryA

Lists the pages that rank for a query, to spot cannibalisation.

Several pages sharing impressions for the same query often means they compete with each other.

Args: site_url: The property, exactly as list_sites returns it. query: The search query. start_date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'. end_date: Same formats. Default '3daysAgo'. match: 'exact' (default) or 'contains' (every query containing it). search_type: 'web' (default), 'image', 'video' or 'news'. row_limit: Pages to return, up to 25,000. Default 100.

list_sitemapsA

Lists the sitemaps submitted for a property, with their status.

Shows when Google last downloaded each sitemap, error and warning counts, whether it's still pending, and how many URLs it lists. Google no longer reports indexed counts here; use inspect_url for index status.

Args: site_url: The property, exactly as list_sites returns it. sitemap_index: Optional sitemap index URL; lists only the sitemaps in that index.

get_sitemapA

Gets one sitemap's status: downloads, errors, warnings and URL counts.

Args: site_url: The property, exactly as list_sites returns it. sitemap_url: The sitemap's full URL.

inspect_urlA

Inspects a URL in Google's index, as the URL Inspection tool does.

Shows whether the URL is indexed and why not (coverage state), robots.txt and fetch status, last crawl, the canonical Google chose versus the one the page declares, sitemaps and referring URLs, and rich result and mobile usability findings. It reports Google's indexed copy, not a live test.

Quota: 2,000 inspections a day and 600 a minute per property.

Args: site_url: The property, exactly as list_sites returns it. The URL must belong to it. url: Full URL to inspect. A path such as '/products/x' works for URL-prefix properties. language_code: Language for issue messages, e.g. 'en-GB'. Default 'en-US'. include_raw: Also return Google's full response.

batch_inspect_urlsA

Inspects up to 200 URLs, paced to Google's URL Inspection quota.

Runs a few inspections at a time, never more than max_per_minute per minute or 2,000 per property per day (counted by this server). Stops cleanly if Google reports the quota is used up; URLs not inspected are listed under 'skipped'. Returns a short summary (index verdicts, coverage states, canonical mismatches) and one result per URL as inspect_url gives.

Args: site_url: The property, exactly as list_sites returns it. urls: Full URLs (paths work for URL-prefix properties). Duplicates are inspected once. language_code: Language for issue messages. Default 'en-US'. max_per_minute: Pacing limit, 1 to 600. Default 600. concurrency: Inspections in flight at once, 1 to 10. Default 4.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 10 tools

Disambiguation5/5

Each tool has a clearly distinct target: site listing/detail, search analytics, period comparison, page/query inversions, sitemap listing/detail, and single vs batch URL inspection. The specialized query/page tools overlap slightly with query_search_analytics dimensions, but their purposes are explicit and unlikely to be confused.

Naming Consistency5/5

All tool names are snake_case and follow a predictable verb_noun pattern (list_sites, get_site, get_queries_for_page, inspect_url, batch_inspect_urls). The occasional multi-word object is still readable and consistent.

Tool Count5/5

Ten tools is well scoped for a Google Search Console analysis server. Each tool covers a distinct resource or workflow, with no obvious filler tools.

Completeness4/5

The surface strongly covers Search Console analytics, site access checks, sitemap inspection, and URL inspection including batch processing. Minor gaps remain around write operations such as sitemap submission/deletion, but core read/analysis workflows are well covered.