# Google Search Console

Local MCP server for Google Search Console data. Inspect indexing status, sitemaps, clicks, and ranking shifts directly through AI chat.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8
- Author: onlymoein
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/onlymoein/google-search-console-mcp
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/onlymoein-google-search-console

## What it does

This server connects coding agents to the Google Search Console API. It retrieves metrics for clicks, impressions, positions, and CTR across dimensions like device, query, and country. Built-in tools like `explain_change` isolate traffic fluctuations and match them against official Google updates.

API pitfalls are caught locally. The server checks invalid regex patterns, bad country codes, and future ranges before querying Google, preventing silent empty responses. If you do not mark your OAuth setup as In production inside Google Cloud, your login token will expire after 7 days.

Running the tool requires `uv` and an authenticated Google Cloud project. Modification tools support adding properties and sitemaps, but you can turn off mutation requests using `GSC_ENABLE_WRITES=0`.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `GSC_SERVICE_ACCOUNT_FILE`, `GSC_ENABLE_WRITES` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env GSC_SERVICE_ACCOUNT_FILE=<GSC_SERVICE_ACCOUNT_FILE> --env GSC_ENABLE_WRITES=<GSC_ENABLE_WRITES> --transport stdio onlymoein-google-search-console -- uvx open-gsc-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from open-gsc-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add onlymoein-google-search-console --env GSC_SERVICE_ACCOUNT_FILE=<GSC_SERVICE_ACCOUNT_FILE> --env GSC_ENABLE_WRITES=<GSC_ENABLE_WRITES> -- uvx open-gsc-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from open-gsc-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "onlymoein-google-search-console": {
            "command": "uvx",
            "args": [
                "open-gsc-mcp"
            ],
            "env": {
                "GSC_SERVICE_ACCOUNT_FILE": "<GSC_SERVICE_ACCOUNT_FILE>",
                "GSC_ENABLE_WRITES": "<GSC_ENABLE_WRITES>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from open-gsc-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "onlymoein-google-search-console": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "open-gsc-mcp"
            ],
            "env": {
                "GSC_SERVICE_ACCOUNT_FILE": "<GSC_SERVICE_ACCOUNT_FILE>",
                "GSC_ENABLE_WRITES": "<GSC_ENABLE_WRITES>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from open-gsc-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e GSC_SERVICE_ACCOUNT_FILE=<GSC_SERVICE_ACCOUNT_FILE> -e GSC_ENABLE_WRITES=<GSC_ENABLE_WRITES> onlymoein-google-search-console uvx open-gsc-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from open-gsc-mcp <command>

## When to use it
- pull query impressions and click-through rates by country
- pinpoint queries with traffic drops after core updates
- verify URL indexing status across sitemap files
- submit updated XML sitemaps to Search Console

## Example prompts
- Audit the indexing status for all pages in our sitemap.
- Show hourly impressions and click counts for the past three days.

## Similar
- [New-Term Radar](https://affpapa.org/en/nevibecode/mcp/new-term-radar.md) — MCP server · ★ 1823
- [NotFair](https://affpapa.org/en/nevibecode/mcp/notfair.md) — MCP server · ★ 4064
- [seo-monster](https://affpapa.org/en/nevibecode/mcp/seo-monster.md) — MCP server · ★ 555
- [Google Maps MCP Server](https://affpapa.org/en/nevibecode/mcp/google-maps-mcp-server.md) — MCP server · ★ 484
- [Search Console MCP](https://affpapa.org/en/nevibecode/mcp/search-console-mcp.md) — MCP server · ★ 310
- [squirrelscan](https://affpapa.org/en/nevibecode/mcp/squirrelscan.md) — MCP server · ★ 298

## Other versions with the same name
- [Google Search Console · acamolese](https://affpapa.org/en/nevibecode/mcp/google-search-console.md) — ★ 9
- [Google Search Console · akzar1el](https://affpapa.org/en/nevibecode/mcp/akzar1el-google-search-console.md) — ★ 6

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
