Skip to main content
Glama

gsc-mcp

npm version

English | 한국어

MCP Badge

MCP server for Google Search Console API and Google Indexing API — full API coverage.

When to Use

Task

Tool

"Check which queries my site ranks for"

search_analytics_query

"Submit a URL for indexing"

indexing_publish

"Find pages with indexing errors"

url_inspection_inspect

"Get search performance data for the last 30 days"

search_analytics_query

"Compare click-through rates between mobile and desktop"

search_analytics_query (group by device)

"Submit my sitemap to Google"

sitemaps_submit

"Batch submit URLs for indexing"

indexing_batch_publish

For AI agents: See llms.txt for a machine-readable summary. Copy templates/CLAUDE.md or templates/AGENTS.md into your project to teach your agent about this MCP.

Unlike other GSC MCP servers that only wrap searchAnalytics.query, this server exposes every endpoint available in the Google Search Console and Indexing APIs.

Related MCP server: gsc-mcp

Tools (13)

Sites

Tool

Description

sites_list

List all sites (properties) in your Search Console

sites_get

Get details of a specific site

sites_add

Add a new site (property)

sites_delete

Remove a site

Sitemaps

Tool

Description

sitemaps_list

List all submitted sitemaps for a site

sitemaps_get

Get details of a specific sitemap

sitemaps_submit

Submit a sitemap

sitemaps_delete

Delete a sitemap

Search Analytics

Tool

Description

search_analytics_query

Query search performance data (clicks, impressions, CTR, position) with filtering and grouping. Supports hourly data with the hour dimension.

URL Inspection

Tool

Description

url_inspection_inspect

Inspect a URL's index status, crawl info, rich results, AMP, and mobile usability

Indexing API

Tool

Description

indexing_publish

Notify Google about URL updates or removals

indexing_get_metadata

Get latest notification status for a URL

indexing_batch_publish

Batch notify Google about up to 100 URL updates/removals in a single request

Authentication

Two authentication methods are supported:

Option 1: OAuth2 Refresh Token

{
  "mcpServers": {
    "gsc-mcp": {
      "command": "npx",
      "args": ["-y", "@mikusnuz/gsc-mcp"],
      "env": {
        "GSC_CLIENT_ID": "your-client-id",
        "GSC_CLIENT_SECRET": "your-client-secret",
        "GSC_REFRESH_TOKEN": "your-refresh-token"
      }
    }
  }
}

Required OAuth2 scopes:

  • https://www.googleapis.com/auth/webmasters

  • https://www.googleapis.com/auth/indexing

Option 2: Service Account

{
  "mcpServers": {
    "gsc-mcp": {
      "command": "npx",
      "args": ["-y", "@mikusnuz/gsc-mcp"],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY_PATH": "/path/to/service-account-key.json"
      }
    }
  }
}

The service account must be added as an owner or user in Google Search Console for each site.

Setup Guide

OAuth2 Setup

  1. Go to Google Cloud Console

  2. Create a project (or select existing)

  3. Enable Search Console API and Indexing API

  4. Create OAuth 2.0 credentials (Desktop app type)

  5. Use the OAuth Playground to generate a refresh token with scopes:

    • https://www.googleapis.com/auth/webmasters

    • https://www.googleapis.com/auth/indexing

Service Account Setup

  1. Go to Google Cloud Console

  2. Create a service account

  3. Download the JSON key file

  4. Enable Search Console API and Indexing API

  5. In Search Console, add the service account email as an owner for your sites

License

MIT

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
25dResponse time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    B
    maintenance
    SEO audit and Google Search Console MCP server with 23 tools. Search analytics, URL inspection, Indexing API, Core Web Vitals (CrUX), striking distance keywords, keyword cannibalization detection, branded query analysis, and automated site audits.
    30
    2
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP server for querying Google Search Console data — search analytics, URL inspection, sitemap monitoring, and more — read-only tools for any MCP-compatible AI client.
    7
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    A lightweight, fast MCP server for Google Search Console. Query search analytics, manage sitemaps, and inspect URLs directly from your AI assistant.
    7
    Apache 2.0
  • A
    license
    -
    quality
    A
    maintenance
    OAuth-protected Google Search Console MCP for analytics, URL inspection, sitemap management, indexing requests, and SEO diagnostics. Open-source Cloudflare Workers implementation with 17 tools.
    14
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • SEO MCP server: crawl your site, find AI-visibility gaps, and ship the fix from your coding agent.

  • MCP server for Google search results via SERP API

  • Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/gsc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server