# Gsc

> Gsc is an open-source MCP server for marketing and seo. Google Search Console and Indexing API access for AI assistants over stdio. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Self-hosted, API, CLI
- **Repository:** https://github.com/mikusnuz/gsc-mcp
- **MCP Registry name:** io.github.mikusnuz/gsc
- **Categories:** [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo), [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-23

## About

Where other Search Console wrappers stop at the search analytics query, this server maps the whole of both Google APIs into 13 tools. They cover sites, sitemaps, search analytics, URL inspection and the Indexing API, so an assistant can manage a property as well as read from it.

Authentication is either an OAuth2 refresh token (client ID, secret and token) or a service account key file. The README lists the two OAuth scopes needed, webmasters and indexing, and walks through the Google Cloud setup. For the Indexing API tools a service account must be a delegated owner of the property.

The README is careful about the Indexing API: Google supports it only for pages with JobPosting data or livestream pages with BroadcastEvent markup, and a successful response means the notification was received, not that the URL was indexed. It also quotes Google's default quota of 200 publish requests per day, and notes that a batch of 100 URLs still uses 100 requests. It requires Node.js 20 or newer and is MIT licensed.

## Features

- **Full Search Console coverage:** Exposes the site, sitemap, search analytics and URL inspection endpoints rather than only the analytics query.
- **Search analytics queries:** Returns clicks, impressions, CTR and position with filtering and grouping, including an hourly dimension.
- **Sitemap management:** Lists, fetches, submits and deletes sitemaps for a property.
- **URL inspection:** Reports a URL's index status, crawl info, rich results and AMP data.
- **Indexing API tools:** Publishes, batch-publishes (up to 100 URLs) and fetches metadata for eligible job posting or livestream URLs.
- **Two auth methods:** Works with an OAuth2 refresh token or a service account JSON key.

## Good for

- Pull search performance for the last 30 days and compare mobile with desktop
- Submit or remove a sitemap without opening Search Console
- Find pages with indexing errors through URL inspection
- Notify Google of updated job posting or livestream pages

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add gsc --env GSC_CLIENT_ID='<GSC_CLIENT_ID>' --env GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' --env GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' -- npx -y @mikusnuz/gsc-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "gsc": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add gsc --env GSC_CLIENT_ID='<GSC_CLIENT_ID>' --env GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' --env GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' -- npx -y @mikusnuz/gsc-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.gsc]
command = "npx"
args = ["-y", "@mikusnuz/gsc-mcp"]
env = { GSC_CLIENT_ID = "<GSC_CLIENT_ID>", GSC_CLIENT_SECRET = "<GSC_CLIENT_SECRET>", GSC_REFRESH_TOKEN = "<GSC_REFRESH_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GSC_CLIENT_ID='<GSC_CLIENT_ID>' -e GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' -e GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' gsc npx -- -y @mikusnuz/gsc-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": [
        "-y",
        "@mikusnuz/gsc-mcp"
      ],
      "env": {
        "GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
        "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
        "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 13 tools delete data and 3 change data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `sites_list` (name suggests: reads): List all sites (properties) in your Search Console
- `sites_get` (name suggests: reads): Get details of a specific site
- `sites_add` (name suggests: changes): Add a new site (property)
- `sites_delete` (name suggests: deletes): Remove a site
- `sitemaps_list` (name suggests: reads): List all submitted sitemaps for a site
- `sitemaps_get` (name suggests: reads): Get details of a specific sitemap
- `sitemaps_submit`: Submit a sitemap
- `sitemaps_delete` (name suggests: deletes): Delete a sitemap
- `search_analytics_query` (name suggests: reads): Query search performance data with filtering and grouping
- `url_inspection_inspect` (name suggests: reads): Inspect a URL's index status, crawl info, rich results and AMP
- `indexing_publish` (name suggests: changes): Notify Google about an eligible JobPosting or BroadcastEvent URL update or removal
- `indexing_get_metadata` (name suggests: reads): Get latest notification metadata for an eligible URL
- `indexing_batch_publish` (name suggests: changes): Batch notify up to 100 eligible URLs

## FAQ

### Which pages can use the Indexing API tools?

Google supports the API only for pages with JobPosting structured data or livestream pages with BroadcastEvent inside a VideoObject.

### What are the Indexing API limits?

The README cites Google's default of 200 publish requests per day, 180 metadata requests per minute and 380 requests per minute overall.

### How do I authenticate?

Set an OAuth2 client ID, secret and refresh token, or point GSC_SERVICE_ACCOUNT_KEY_PATH at a service account key file.

### Does a successful publish mean the URL is indexed?

No. It confirms Google received the notification; use the URL inspection tool to check index status.

### Is Gsc free?

Yes. Gsc is open source, so you can use and self-host it for free.

### How do I add Gsc to Claude Code?

Run this command in your terminal: claude mcp add gsc --env GSC_CLIENT_ID='<GSC_CLIENT_ID>' --env GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' --env GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' -- npx -y @mikusnuz/gsc-mcp

### What are the best alternatives to Gsc?

The closest alternatives to Gsc are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, TryPost and Tapetide - Indian Stock Market MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [dashboard-icons](https://ai-powered.com/mcp/dashboard-icons): dashboard-icons is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Australian Economic Data (ABS, RBA & APRA)](https://ai-powered.com/mcp/australian-economic-data-abs-rba-and-apra): Australian Economic Data (ABS, RBA & APRA) is an open-source MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/gsc
