Skip to main content
ClaudeWave
ni-c avatar
ni-c

google-search-console-mcp

View on GitHub

MCP server for Google Search Console: properties, sitemaps, search analytics and URL inspection

MCP ServersOfficial Registry0 stars0 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 9/8/2026
Install in Claude Code / Claude Desktop
Method: NPX · @ni-c/google-search-console-mcp
Claude Code CLI
claude mcp add google-search-console-mcp -- npx -y @ni-c/google-search-console-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "google-search-console-mcp": {
      "command": "npx",
      "args": ["-y", "@ni-c/google-search-console-mcp"],
      "env": {
        "GSC_SITE_URL": "<gsc_site_url>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
GSC_SITE_URL
Use cases

MCP Servers overview

# google-search-console-mcp

<!-- badges: start -->

[![CI](https://img.shields.io/github/actions/workflow/status/ni-c/google-search-console-mcp/ci.yml?branch=main&label=CI)](https://github.com/ni-c/google-search-console-mcp/actions/workflows/ci.yml)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/ni-c/google-search-console-mcp/badge)](https://scorecard.dev/viewer/?uri=github.com/ni-c/google-search-console-mcp)
<a href="https://socket.dev/npm/package/@ni-c/google-search-console-mcp"><img src="https://socket.dev/api/badge/npm/package/@ni-c/google-search-console-mcp" alt="Socket supply-chain report" height="20"></a>
[![Glama score](https://glama.ai/mcp/servers/ni-c/google-search-console-mcp/badges/score.svg)](https://glama.ai/mcp/servers/ni-c/google-search-console-mcp)
<br>
[![npm version](https://img.shields.io/npm/v/%40ni-c%2Fgoogle-search-console-mcp)](https://www.npmjs.com/package/@ni-c/google-search-console-mcp)
[![container image](https://img.shields.io/badge/ghcr.io-ni--c%2Fgoogle--search--console--mcp-4f46e5?logo=docker&logoColor=white)](https://github.com/ni-c/google-search-console-mcp/pkgs/container/google-search-console-mcp)
[![HTTP via mcp-hub](https://img.shields.io/badge/HTTP-via%20mcp--hub-4f46e5?logo=modelcontextprotocol&logoColor=white)](https://mcp-hub.ni-c.de)
<br>
[![docs](https://img.shields.io/badge/docs-google--search--console--mcp.ni--c.de-4f46e5?logo=readthedocs&logoColor=white)](https://google-search-console-mcp.ni-c.de)
[![sponsor](https://img.shields.io/badge/sponsor-ni--c-ea4aaa?logo=githubsponsors&logoColor=white)](https://github.com/sponsors/ni-c)
<!-- badges: end -->

A [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server for
[Google Search Console](https://search.google.com/search-console/about), 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](#choosing-which-tools-load).

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://google-search-console-mcp.ni-c.de/architecture-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="https://google-search-console-mcp.ni-c.de/architecture-light.svg">
  <img src="https://google-search-console-mcp.ni-c.de/architecture.svg" alt="An MCP client talks to google-search-console-mcp over stdio; the server calls the Search Console, Site Verification and Indexing APIs over HTTPS." width="800">
</picture>

![Listing the tools, narrowing them to the essential preset, and the startup abort a mistyped tool name produces](https://google-search-console-mcp.ni-c.de/demo.gif)

## What makes it different

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

## Requirements

- Node.js 22 or newer (or the container image)
- A Google credential — a service account key, an OAuth2 refresh token, or
  application default credentials
- The APIs you intend to use enabled in a Google Cloud project: **Search
  Console API**, and separately **Site Verification API** and **Indexing API**

## Configuration

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.

### Which credential

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.

### Choosing which tools load

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:

```sh
GSC_ALLOW_TOOLS=essential          # the curated five
GSC_ALLOW_TOOLS='list_*,get_site'  # exact names, or one trailing *
GSC_DENY_TOOLS='delete_*'          # subtracted from whatever allow left
```

`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](https://mcp-hub.ni-c.de) is
the other answer — its `/hub` endpoint replaces every server's tools with six
meta-tools.

Narrowing the list a
google-search-consoleindexing-apimcpmcp-servermodel-context-protocolsearch-consoleseosite-verificationsitemaptypescript

What people ask about google-search-console-mcp

What is ni-c/google-search-console-mcp?

+

ni-c/google-search-console-mcp is mcp servers for the Claude AI ecosystem. MCP server for Google Search Console: properties, sitemaps, search analytics and URL inspection It has 0 GitHub stars and its last recorded update is dated 2026-09-07.

How do I install google-search-console-mcp?

+

You can install google-search-console-mcp by cloning the repository (https://github.com/ni-c/google-search-console-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is ni-c/google-search-console-mcp safe to use?

+

Our security agent has analyzed ni-c/google-search-console-mcp and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains ni-c/google-search-console-mcp?

+

ni-c/google-search-console-mcp is maintained by ni-c. The last recorded GitHub activity is dated 2026-09-07, with 0 open issues.

Are there alternatives to google-search-console-mcp?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy google-search-console-mcp to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: ni-c/google-search-console-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ni-c-google-search-console-mcp)](https://claudewave.com/repo/ni-c-google-search-console-mcp)
<a href="https://claudewave.com/repo/ni-c-google-search-console-mcp"><img src="https://claudewave.com/api/badge/ni-c-google-search-console-mcp" alt="Featured on ClaudeWave: ni-c/google-search-console-mcp" width="320" height="64" /></a>