Google Search Console Audit MCP
Analyze Google Search Console performance and produce client-ready audits through read-only tools.
List accessible properties and inspect property details.
Query Search Analytics with dates, dimensions, filters, pagination, and TSV/JSON output.
Compare periods, overview performance, and rank changes by click delta.
Find quick wins, CTR gaps, keyword cannibalization, traffic drops, content decay, alerts, and portfolio health.
Check indexing for batches of URLs or inspect one URL in full.
List sitemaps with errors and warnings.
Run diagnostics on configuration, auth, cache, properties, and defaults.
Generate a self-contained, white-label HTML audit in English or Italian with KPIs, issues, strategy, roadmap, and optional branding.
Provides tools for querying Google Search Console data, including performance reports (queries, pages, devices, countries), URL inspection, indexing checks, sitemaps listing, and generating complete HTML SEO audit reports.
Google Search Console MCP
English · Italiano
Eighteen read-only tools over the Google Search Console API, plus a deterministic white-label HTML audit report an agency can put its own name on and send to a client, in English or Italian.

Regenerate that report from committed synthetic data, with no credentials:
python scripts/render_sample_report.py --lang en --openWhat's new in 4.0
4.0 is about trust: every number the server reports now says what it is based on, and nothing incomplete is presented as a finding.
Comparisons hold whole days. Search Console's latest days are partial for a while, so a 7-day window ending today used to start 15-20% down against the week before. Comparison tools now end rolling windows on the last day with final data and report it as
data_through.Year over year.
compare="year"on the overview, period comparison, traffic drops, alerts and the audit. Whole months map to the same months last year; other ranges move back 52 weeks so weekdays line up.Filters everywhere. The analysis tools and
gsc_compare_periodsaccept the samefiltersandtypeasgsc_query: analyse/blog/, one country, mobile only, or Discover.Brand vs non-brand, done properly. The new
gsc_brand_splittool, and the audit, compute the split over every query with server-side regex filters and report the clicks Google does not disclose as a third share. Brand terms match whole words only.No more false alarms. Content decay compares complete months only. A page below a row limit is no longer reported as lost. A failed URL Inspection is no longer an indexing problem. Cannibalisation leaves out brand queries and queries one page clearly owns.
A sounder report. One definition of a low CTR, thresholds per kind of row, inspection of the pages that lost clicks, a "pages in steady decline" section, a "how to read this report" section, translated verdicts, darker default colours and accessible charts and tables. The pagination advice no longer recommends canonicalising to page one.
Upgrading from 3.x: see the breaking changes at the top of the changelog.
Related MCP server: Google Search Console MCP Server
Install
Claude Code
/plugin marketplace add acamolese/google-search-console-mcp
/plugin install google-search-console@acamoleseThe plugin brings the MCP server, five skills (weekly review, cannibalisation check, indexing audit, content opportunities, white-label client audit) and a config prompt for the three credentials.
Claude Desktop
Download google-search-console.mcpb from the
latest release
and open it. It needs uv installed. Or edit the
config file directly:
{
"mcpServers": {
"google-search-console": {
"command": "uvx",
"args": ["mcp-google-search-console"],
"env": {
"GSC_CLIENT_ID": "...",
"GSC_CLIENT_SECRET": "...",
"GSC_REFRESH_TOKEN": "..."
}
}
}
}Cursor, Codex, Gemini CLI, Zed
Any MCP client takes the same three lines: command uvx, argument
mcp-google-search-console, and the three GSC_* environment variables.
# Codex
codex mcp add google-search-console -- uvx mcp-google-search-console
# Gemini CLI
gemini mcp add google-search-console uvx mcp-google-search-consoleDocker
docker build -t mcp-gsc .
docker run --rm -p 127.0.0.1:8765:8765 \
-e GSC_CLIENT_ID -e GSC_CLIENT_SECRET -e GSC_REFRESH_TOKEN \
-v "$PWD/reports:/reports" mcp-gscThe container speaks streamable HTTP on /mcp. It has no authentication of its
own: keep it on loopback or behind a reverse proxy.
Authentication
The OAuth scope is webmasters.readonly and nothing else. No tool in this server
can modify a property, a sitemap or anything else in Search Console.
Credentials are resolved in this order:
GSC_AUTH_MODEif set (oauth,service_account,adc)GSC_SERVICE_ACCOUNT_FILEorGSC_SERVICE_ACCOUNT_JSONGSC_CLIENT_ID+GSC_CLIENT_SECRET+GSC_REFRESH_TOKENA token file in
~/.config/mcp-google-search-console/Application Default Credentials
OAuth, once
In Google Cloud Console, enable the Google Search Console API and create an OAuth client of type Desktop app.
Export the client, or save the downloaded JSON as
~/.config/mcp-google-search-console/oauth_credentials.json:export GSC_CLIENT_ID="...apps.googleusercontent.com" export GSC_CLIENT_SECRET="..." uvx mcp-google-search-console authThe browser flow stores a token at
~/.config/mcp-google-search-console/token.jsonwith0600permissions. Secrets are never printed by default; add--print-envto also get the threeexportlines for a stateless setup.
On a headless machine, run auth --print-env on your laptop and copy the three
environment variables across. --no-browser prints the URL instead of opening one, but still
needs a local redirect.
Service account
Grant the service account's email read access to the property in Search Console, then point the server at the key:
export GSC_SERVICE_ACCOUNT_FILE=/path/to/key.json
# or, for a container:
export GSC_SERVICE_ACCOUNT_JSON='{"type":"service_account",...}'Check it works
uvx mcp-google-search-console doctorPrints the auth mode in use, when the token expires, how many properties the account can read, and the defaults every tool applies. Secrets are masked. Exits 1 when nothing resolves, which is the answer to most "the server won't start" reports.
Tools
Tool | What it answers |
| Which properties can this account read, and in what exact format |
| Permission level and type for one property |
| The Search Analytics report, with filters, dimensions and pagination |
| Is the site up or down, against the previous period or last year |
| What changed between two periods, ranked by click delta |
| Queries close enough to the top that a push would pay off |
| Pages that rank but are not clicked |
| Queries where several pages compete against each other |
| Pages that lost clicks, with a likely cause for each |
| Brand, non-brand and undisclosed clicks, month by month |
| Pages sliding down month after month |
| What moved sharply enough to be worth a message today |
| Every property at a glance, worst first |
| Which of these URLs are indexed, and why not |
| Full URL Inspection for one page |
| Which sitemaps Google knows about, with errors and warnings |
| What is configured, and does the API answer |
| The full HTML report |
Three prompts wrap the workflows that repeat: gsc_weekly_report,
gsc_indexing_audit, gsc_content_opportunities.
Why this server
Here | Typical GSC MCP server | |
Client-ready report | Self-contained HTML, English or Italian, white-label | none |
Analysis | Cannibalisation, CTR gaps, decay, drop diagnosis, brand split, run server-side | raw rows, analysed by the model |
Honesty | Truncation, skipped sections and anchors declared in every response | silent gaps |
Thresholds | Adapt to the size of the property | fixed, or none |
Dates |
| explicit dates only |
Freshness |
| windows that end on partial days |
Auth | OAuth, service account, ADC | OAuth only |
Output | TSV by default, roughly a third of the tokens of pretty JSON |
|
Errors | Google's reason plus what to do about it | bare HTTP status |
Tests | 350+, on both | usually none |
Report customisation
Colours, logo, report name, brand terms and thresholds come from a JSON file.
Pass branding_path, or place it at
~/.config/mcp-google-search-console/branding.json to apply it everywhere:
{
"brand_name": "Your Agency",
"logo": "logo.png",
"brand_terms": ["clientbrand", "client brand"],
"colors": { "primary": "#2b6cb0", "primary_dark": "#1a365d" },
"thresholds": { "min_impressions": 200 }
}A local logo is base64-encoded into the document. A remote one is only kept if
allow_external_fonts is true, because the report is otherwise guaranteed to
contain no external URL at all: no CDN, no font service, nothing that phones home
when a client opens it.
brand_terms matters more than it looks. Without it, the first label of the
domain is used as the brand, which is wrong for abbreviations, holding companies
and invented names, and it silently mislabels the brand/non-brand split. The
report says when it had to guess.
Quotas and limits
16 months of daily data. Anything older is not available at any price.
Hourly data: the last 10 days only.
URL Inspection: 600 per minute and 2,000 per day per property. This is the limit that bites on a large site.
Search Analytics: 1,200 queries per minute per site. Responses are cached in memory for 6 hours (1 hour for inspections);
no_cache=truebypasses it.Rows: 25,000 per API call. Tools default to 100 and cap at 1,000, with
start_rowfor pagination; the cap is reported in the response, never applied silently.
Environment variables
Variable | Default | Purpose |
| Stateless OAuth | |
| Service account | |
| auto | Force |
|
| Report language: |
|
|
|
|
| Response cache TTL; |
|
| Parallel URL inspections |
|
| Logging, always to stderr |
|
| Transport |
Troubleshooting
spawn uvx ENOENT — the client cannot find uvx on its PATH. GUI apps do
not inherit a shell PATH. Use the absolute path: which uvx gives it, typically
/Users/you/.local/bin/uvx.
403 forbidden on every call — almost always the property format. A domain
property is sc-domain:example.com; a URL-prefix property is
https://example.com/, trailing slash included. gsc_sites returns the exact
strings.
401 invalid_grant — the refresh token was revoked or expired. Google expires
refresh tokens for OAuth apps still in "testing" after seven days; publish the
app, or re-run auth.
403 quotaExceeded — the daily URL Inspection quota is gone. It resets
tomorrow; nothing retries past it.
Empty report on a small site — check the thresholds in the response meta. They
adapt to the property, but the floors (50 impressions, 10 clicks) still apply.
Pass thresholds to lower them.
Anything else — run doctor and include its output in the issue.
Security
Read-only scope, requested and never widened.
Token files are written atomically with
0600permissions. Credentials supplied through the environment are never written to disk.gsc_doctormasks the client ID and never returns a token.No telemetry, no analytics, no request to any host other than Google's API.
See SECURITY.md for the reporting policy.
Development
uv venv && uv pip install -e ".[dev]"
ruff check src tests scripts && ruff format --check src tests scripts
pytest -q --cov=google_search_console_mcp
python scripts/sync_versions.py
python scripts/render_sample_report.py --lang it --openTests never hit the network. Live tests exist behind -m live and require
GSC_LIVE_TESTS=1 plus credentials; they never run in CI.
Releases: see docs/RELEASING.md. Decisions not covered by the code are logged in docs/DECISIONS.md.
License
MIT. Chart.js 4.5.1 is vendored under src/google_search_console_mcp/static/,
also MIT, with its licence alongside.
Available Tools
18 toolsgsc_alertsARead-onlyIdempotent
What changed sharply enough to be worth a message today.
Compares the last window_days against the window before (or a year
earlier) across queries and pages, and returns only movements past fixed
alerting rules, listed in the meta: lost positions, collapsed CTR, dropped
or vanished pages. The window ends on the last day with final data.
Inputs: site_url (required), type, compare, date_to, +5 more. Returns: result
gsc_auditARead-onlyIdempotent
Build a complete, self-contained HTML SEO audit for one property.
Collects the period and its baseline (previous period or a year earlier), top queries and pages, devices, countries, the daily trend, six complete months of history, brand totals, sitemaps and an indexing check, then detects issues and builds a prioritised strategy and roadmap. Sections that could not be fetched are named, never shown as clean. English and Italian.
Ask the user for the period if they have not named one: the 28-day default is rarely what a client report wants.
Returns a compact JSON summary first (KPIs with deltas, issue counts, top quick wins, roadmap), so the findings can be discussed without reading the HTML, followed by the report path or the document itself.
Inputs: site_url (required), days, output, period, +10 more.
gsc_brand_splitARead-onlyIdempotent
Brand, non-brand and undisclosed clicks, month by month.
Computed over every query with server-side regex filters, so no row limit
applies. anonymized is what Google counts but never shows as a query; it
belongs to neither side. Whole months only: the month in progress is left out.
Inputs: site_url (required), brand_terms (required), type, months, +4 more. Returns: result
gsc_cannibalizationARead-onlyIdempotent
Queries where several pages of the site compete for the same result.
Leaves out brand queries (pass brand_terms), queries where one page sits
in the top three with most of the clicks, and queries below the impression
threshold. Reads up to 25,000 query/page pairs; the meta says when the tail
was cut off.
Inputs: site_url (required), days, type, period, +10 more. Returns: result
gsc_compare_periodsARead-onlyIdempotent
Join two periods on one dimension and rank the rows by click delta.
Answers "what changed" without the model diffing two tables by hand. Rows present in only one period are kept, with zeros on the missing side; the biggest movers in both directions are returned, worst first. The meta counts how many rows gained and how many lost clicks. When a side was read only up to its row limit, the meta flags it: a row missing there may only be below the cut.
Inputs: site_url (required), days, type, period, +11 more. Returns: result
gsc_content_decayARead-onlyIdempotent
Pages sliding down month after month.
A period comparison hides this: a page that halves over six months never
shows a sharp drop in any single month-on-month check. Only whole calendar
months are compared, so the month in progress is left out (last_month in
the meta). One query per month runs in parallel.
Inputs: site_url (required), type, months, date_to, +7 more. Returns: result
gsc_ctr_gapsARead-onlyIdempotent
Rows that rank well but are clicked far less than their position implies.
The snippet, not the ranking, is the problem, which makes these the
cheapest fixes available. expected_ctr is what a result at that position
normally earns.
Inputs: site_url (required), days, type, entity, +10 more. Returns: result
gsc_doctorARead-onlyIdempotent
Report the server's configuration and whether Search Console answers.
Call this first when something fails: it names the auth mode in use, when the token expires, how many properties the account can read, the cache state and the defaults every other tool applies. Secrets are masked.
Inputs: no named parameters. Returns: Everything `gsc_doctor` reports. Secrets are masked before they get here.
gsc_indexing_issuesARead-onlyIdempotent
Check whether a batch of URLs is indexed, and why not when they are not.
Runs the inspections concurrently and returns one row per input URL, in input
order. A URL that fails gets an error column instead of a verdict; the rest
of the batch still comes back. For the full payload of a single page
(mobile usability, rich results, AMP) use gsc_inspect_url.
Quota: 600 inspections per minute and 2,000 per day, per property.
Columns: url, verdict (PASS / PARTIAL / FAIL / NEUTRAL), coverage_state, robots_txt_state, indexing_state, page_fetch_state, crawled_as, last_crawl_time, google_canonical, user_canonical, error. The meta carries a verdict summary.
Inputs: pages (required), site_url (required), no_cache, response_format. Returns: result
gsc_inspect_urlARead-onlyIdempotent
Full URL Inspection for one page: index, mobile, rich results and AMP.
Use this when one page needs a diagnosis. For an indexed-or-not sweep across
many URLs use gsc_indexing_issues.
Quota: 600 inspections per minute and 2,000 per day, per property.
Inputs: page_url (required), site_url (required), no_cache. Returns: The URL Inspection payload for one page, with the sub-objects left as-is.
gsc_performance_overviewARead-onlyIdempotent
Site totals for a period, compared with a baseline by default.
Start here: it answers "is the site up or down" in one call, with the
percentage change on every metric. position_delta is negative when the
average position improves. With a comparison, a rolling window ends on the
last day with final data (data_through), so both sides hold whole days.
Inputs: site_url (required), days, type, period, +7 more. Returns: Site totals for a period, optionally compared with the preceding one.
gsc_portfolioARead-onlyIdempotent
Every accessible property at a glance, ranked worst first.
One row per property with the current period, the previous one and a health flag: critical below -30% clicks, warning below -15%. Use it to decide which property to look at before running anything else.
Inputs: days, limit, date_to, no_cache, +1 more. Returns: result
gsc_queryARead-onlyIdempotent
Query the Search Analytics report: clicks, impressions, CTR, position.
This is the general-purpose tool. With no dates it covers the last 28 days ending today (UTC), with data_state=all so today's partial data is included, matching what the Search Console UI shows.
Example: site_url="sc-domain:example.com", dimensions="query,page", period="last_28_days", row_limit=100.
Returns a # meta ... line then a TSV table, or JSON with meta and rows.
The meta names the exact range, the row count, whether more rows exist and
the start_row to pass next.
Inputs: site_url (required), days, type, period, +11 more. Returns: result
gsc_quick_winsARead-onlyIdempotent
Queries close enough to the top that a push would pay off.
Ranked by the clicks each query would gain at target_position, not by
impressions: a big query already near its ceiling is not an opportunity.
The meta reports the thresholds that were applied.
Inputs: site_url (required), days, type, period, +10 more. Returns: result
gsc_site_detailsBRead-onlyIdempotent
Permission level and property type for one property.
Inputs: site_url (required), no_cache, response_format. Returns: result
gsc_sitemapsARead-onlyIdempotent
List the sitemaps Google knows about for a property, with errors and warnings.
Read-only: submitting or deleting a sitemap needs the read-write scope, which this server never requests.
Returns one row per sitemap: path, last submitted and downloaded timestamps, pending flag, index flag, warning and error counts, and the submitted / indexed URL counts when Google reports them.
Inputs: site_url (required), no_cache, response_format. Returns: result
gsc_sitesARead-onlyIdempotent
List every property the authenticated account can read.
Call this first when a property string fails: it returns the exact site_url
values the other tools expect, and whether each one is a domain property
(sc-domain:example.com) or a URL-prefix property.
Inputs: no_cache, response_format. Returns: result
gsc_traffic_dropsARead-onlyIdempotent
Pages that lost clicks against the baseline, each with a likely cause.
diagnosis tells a ranking loss from fewer impressions at a stable position,
a collapsed CTR and a page gone from the results: they need different fixes,
and both periods' numbers are in the row. Rolling windows end on the last day
with final data (data_through in the meta); compare=year handles seasonality.
Inputs: site_url (required), days, type, period, +9 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The analytical tools (quick_wins, ctr_gaps, traffic_drops, content_decay, alerts, cannibalization) all read Search Analytics data, but each is anchored to a distinct question and the descriptions explicitly contrast them (e.g. month-on-month decay vs. sharp drops vs. alert windows). gsc_indexing_issues and gsc_inspect_url cross-reference each other for batch vs. single-page use, and gsc_sites vs. gsc_site_details differ only mildly (all properties vs. one property's permissions). A handful of boundaries require reading the descriptions, but true misselection risk is low.
Every tool shares the gsc_ prefix and lowercase snake_case, which makes the set immediately recognizable and sorted together. The second element mixes conventions (nouns like gsc_sitemaps, gsc_portfolio vs. verbs like gsc_query, gsc_compare_periods), but the style is uniform enough that names remain predictable.
18 tools sits at the upper end but each maps to a concrete SEO audit question (overview, quick wins, CTR gaps, cannibalization, drops, decay, alerts, brand split, indexing, audit, diagnostics). No tool looks like filler or a duplicate of another; the set is granular rather than bloated.
Coverage across discovery (sites, site_details, portfolio), analytics (query, overview, compare_periods), diagnosis (indexing_issues, inspect_url, sitemaps) and a full audit report is thorough for a read-only audit domain. The only dead end is the deliberately declared read-only scope — no sitemap submission or any mutation — which is documented rather than an oversight.
Maintenance
Related MCP Connectors
Read-only Google Search Console MCP server for AI assistants.
Hosted, read-only Google Search Console MCP: performance, comparisons, URL inspection, sitemaps.
Free MCP server that audits any public URL: technical SEO, Core Web Vitals, indexing checks.
Read Search Console queries, clicks and positions, and inspect URLs for indexing.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for querying Google Search Console data — search analytics, URL inspection, sitemap monitoring, and more — read-only tools for any MCP-compatible AI client.7Apache 2.0
- AlicenseNot gradedqualityDmaintenanceRead-only MCP server that gives AI clients access to Google Search Console data, enabling natural language queries about traffic, rankings, and SEO opportunities.MIT
- AlicenseNot gradedqualityCmaintenanceRead-only MCP server for Google Search Console data, enabling search analytics, URL inspection, indexing diagnostics, and sitemap management through MCP clients.3 npm1MIT
- AlicenseAqualityBmaintenanceSecure MCP server for Google Search Console. Query search analytics (clicks, impressions, CTR, position), manage sitemaps, inspect URL indexing status, and manage site properties.10AGPL 3.0