MCP server for Google Search Console: properties, sitemaps, search analytics and URL inspection
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server for Google Search Console, the service that tells you how Google sees your site β this reads it and sets it up.
Lets MCP clients like Claude Code, Claude Desktop or Codex create a property and prove ownership of it, submit and refresh sitemaps, ask what any URL's index status is, and query the whole Performance report β with the irreversible operations put to a person first and the write tools switchable off entirely.
21 tools is the ceiling, not the floor: GSC_ALLOW_TOOLS=essential registers a
curated five instead, and a model picks the right tool far more reliably from
five than from 21 β see
choosing which tools load.

It can actually create a working property. Getting one takes four steps in a
fixed order β obtain a verification token, place it in DNS or on the page,
verify ownership, add the property β and nothing in Google's APIs enforces that
order. Calling sites.add first succeeds and leaves a property that appears in
every listing and answers 403 for every piece of data, which looks like a
permissions bug and is not. setup_site reports which step is missing and hands
over the exact DNS record to paste. Servers that expose sites.add alone can
only add properties somebody already verified by hand.
Three APIs, not one. Search Console v1 is ten methods and does not include
ownership. Site Verification is a separate service with its own scope, its own
host and an incompatible way of naming the same site β
sc-domain:example.com there is {type: INET_DOMAIN, identifier: example.com},
and passing the property spelling straight through is accepted and verifies a
domain literally called sc-domain:example.com. The Indexing API is a third.
All three are covered, and the translation between them is in
src/site-identity.ts.
The numbers are right. Search analytics come back as a table with totals where CTR is computed from the totals rather than averaged across rows, and average position is weighted by impressions. Unweighted, a thousand rare queries ranking 80th drag a property's real average of 12 up into the nineties. The result also says plainly that the rows do not sum to the property total when the query dimension is used β Google withholds rare queries for anonymity, commonly a third or more of all impressions, and a total printed without that caveat is a number people will quote.
It knows where these APIs are sharp. The trailing slash on
https://example.com/ is mandatory and its absence is a 403; a domain property
and a URL-prefix property for the same site are different properties with
different data, so a bare hostname is refused rather than guessed at; days are
counted in Pacific Time, so a last7days computed in UTC asks for a day
Google has no data for; the hour dimension silently returns nothing without
dataState: HOURLY_ALL; Google omits empty arrays entirely, so a fresh
credential's property list arrives as {}; and the Indexing API returns 200 for
any owned URL while only acting on JobPosting and BroadcastEvent pages.
The server starts without credentials and lists its tools; every call then fails with setup instructions rather than a Google error. That is deliberate, so registries and sandbox inspectors can introspect it.
| Variable | Description |
|---|---|
GSC_SERVICE_ACCOUNT_KEY | Service account key as raw JSON, or base64-encoded JSON |
GSC_SERVICE_ACCOUNT_KEY_FILE | Path to a service account key file. Alternative to the above β setting both is an error |
GSC_CLIENT_ID | OAuth2 client id |
GSC_CLIENT_SECRET | OAuth2 client secret |
GSC_REFRESH_TOKEN | OAuth2 refresh token. All three OAuth2 variables are required together |
GOOGLE_APPLICATION_CREDENTIALS | Application default credentials, used when no GSC_ credential is set |
GSC_SITE_URL | Default property, e.g. sc-domain:example.com or https://example.com/. Makes site_url optional everywhere |
GSC_ALLOWED_SITES | Comma-separated properties this server may touch at all; anything else is refused |
GSC_READ_ONLY | true (or 1/yes) registers only the twelve read tools |
GSC_ALLOW_TOOLS | Comma-separated tool names, a list_* prefix, or essential |
GSC_DENY_TOOLS | Same shape, subtracted from whatever the allow list left |
ELICITATION | false replaces the approval dialog with the two-call token. Not prefixed |
Credentials are tried in that order β explicit beats ambient. A partial OAuth triple is a startup error rather than a reason to fall through to application default credentials, because that fallback would quietly run the server as whatever account the machine is logged into.
A service account is the recommended one: it sees only the properties you
explicitly add it to, and revoking it does not touch anyone's Google account.
Add its client_email under Settings β Users and permissions in Search Console,
or give it ownership with verify_site. Note that the Indexing API requires
owner, not full user.
An OAuth2 refresh token acts as the person who consented and sees everything they see. Its scopes were fixed at consent time and cannot be widened later.
Every visible tool costs context on every request, and a model picks the right one far more reliably from five than from 21. Two variables narrow the list:
essential is list_sites, get_site, list_sitemaps,
query_search_analytics and inspect_url β everything needed to look at a
property, and nothing that changes it.
An entry that matches no tool stops the server with the list of real names.
An ignored typo would otherwise leave a tool missing from tools/list with
nothing pointing at the cause, and nobody traces an absence back to an
environment variable.
If you run several of these servers at once, mcp-hub is
the other answer β its /hub endpoint replaces every server's tools with six
meta-tools.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/google-search-console-4)<a href="https://allmcps.com/mcp/google-search-console-4"><img src="https://allmcps.com/api/badge/google-search-console-4?style=directory" alt="Google Search Console on AllMCPs" /></a>