Google Search Console MCP server

Google Search Console MCP server

gsc-mcp-server-appsyogi-com•byappsyogi-com

An MCP server that connects Google Search Console data to MCP clients, exposing tools for search analytics, sitemaps, URL inspection, SEO opportunities, reports and exports.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Queries search performance data including clicks, impressions, CTR and position with dimensions and filters, plus comparing time periods.
  • •Lists, submits and deletes sitemaps, and inspects URL indexing status with full scope.
  • •Finds low-CTR high-position quick-win keywords, detects keyword cannibalization, and generates weekly performance summaries.
  • •Exports data as CSV or JSON and supports compact responses and date rollups to reduce token consumption.

BEST FOR

  • •SEO analysis to find quick-win keywords and cannibalization issues in Search Console data.
  • •Generating weekly performance summaries and comparing search performance between periods.
  • •Exporting top queries over a date range to CSV for further analysis.

ABOUT GSC-MCP-SERVER-APPSYOGI-COM

Google Search Console MCP server is cataloged as an MCP server attributed to appsyogi-com. An MCP server that connects Google Search Console data to MCP clients, exposing tools for search analytics, sitemaps, URL inspection, SEO opportunities, reports and exports. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Google Search Console MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server's data be joined with GA4 and AdSense data?

Yes; rows with a page include a url_key that is normalized the same way as the GA4 MCP server and AdSense MCP server do it, enabling per-page joins.

What permission levels does GSC-MCP support?

A readonly default level covering search analytics, sitemap listing and SEO analysis, and a full level adding sitemap submit/delete and URL inspection.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3b6c73a31518 · 采集于 2026-11-13 10:35:29 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

GSC-MCP-Server

Google Search Console MCP Server — Connect Google Search Console to Claude, Cursor, and other MCP clients.

npm version npm downloads License: MIT CI

Features

  • 🔍 Search Analytics — Query clicks, impressions, CTR, and position data
  • 📊 SEO Opportunities — Find low-CTR keywords, detect cannibalization issues
  • 📈 Reports — Weekly summaries, period comparisons
  • 🗺️ Sitemaps — List, submit, and manage sitemaps
  • 🔎 URL Inspection — Check indexing status (requires full scope)
  • 💾 Caching — SQLite cache for faster repeated queries
  • 🔐 Secure — OAuth tokens stored in OS keychain

Quick Start

# Install globally
npm install -g @appsyogi/gsc-mcp-server

# Set up OAuth credentials
gsc-mcp init

# Verify setup
gsc-mcp doctor

# Start the server (for MCP clients)
gsc-mcp run

Prerequisites

1. Create Google Cloud OAuth Credentials

You need to create your own OAuth credentials in Google Cloud Console:

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Search Console API:
    • Go to "APIs & Services" → "Library"
    • Search for "Google Search Console API"
    • Click "Enable"
  4. Create OAuth credentials:
    • Go to "APIs & Services" → "Credentials"
    • Click "Create Credentials" → "OAuth client ID"
    • Choose "Desktop application"
    • Name it (e.g., "GSC-MCP")
    • Click "Create"
  5. Copy the Client ID and Client Secret
  6. Add test users (required while app is in testing mode):
    • Go to "APIs & Services" → "OAuth consent screen"
    • Scroll to "Test users" section
    • Click "Add users"
    • Add the Google account email(s) you'll use to authenticate
    • Click "Save"

Note: While your app's publishing status is "Testing", only test users can authenticate. You can add up to 100 test users.

2. Configure GSC-MCP

Run the init command and enter your credentials:

gsc-mcp init

This will:

  • Prompt for your Client ID and Client Secret
  • Open a browser for Google authentication
  • Store your refresh token securely in the OS keychain

Usage

CLI Commands

# Initialize with OAuth (interactive)
gsc-mcp init

# Initialize with service account
gsc-mcp init --service-account /path/to/key.json

# Initialize with full scope (for sitemap submission, URL inspection)
gsc-mcp init --scope full

# Check configuration and connectivity
gsc-mcp doctor
gsc-mcp doctor --verbose

# Start MCP server (stdio mode)
gsc-mcp run

# Start in HTTP mode (for debugging)
gsc-mcp run --http 3333

# View current configuration
gsc-mcp config

# Clear credentials
gsc-mcp logout

MCP Client Configuration

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "gsc": {
      "command": "gsc-mcp",
      "args": ["run"]
    }
  }
}

VS Code (Copilot)

Add to your VS Code MCP settings (~/.vscode/mcp.json or workspace settings):

{
  "servers": {
    "gsc": {
      "command": "gsc-mcp",
      "args": ["run"],
      "type": "stdio"
    }
  }
}

Cursor

Add to your Cursor MCP config:

{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": ["-y", "@appsyogi/gsc-mcp-server", "run"]
    }
  }
}

Available Tools

Search Analytics

ToolDescription
searchanalytics.queryQuery search performance data with dimensions and filters
report.comparePeriodsCompare two time periods (totals are the property's totals for each period)

Sitemaps

ToolDescriptionScope
sitemaps.listList all sitemapsreadonly
sitemaps.getGet sitemap detailsreadonly
sitemaps.submitSubmit a sitemapfull
sitemaps.deleteDelete a sitemapfull

URL Inspection

ToolDescriptionScope
urlInspection.inspectInspect a URL's indexing statusfull
urlInspection.batchInspectInspect multiple URLsfull

SEO Opportunities

ToolDescription
opportunities.lowCtrHighPosFind quick-win keywords (position 4-20, low CTR)
opportunities.cannibalizationDetect keyword cannibalization
report.weeklySummaryGenerate weekly performance summary

Export

ToolDescription
export.csvExport data as CSV
export.jsonExport data as JSON

Joining with GA4 and AdSense (url_key)

Every row with a page (in searchanalytics.query, report.comparePeriods, report.weeklySummary, the opportunity tools and the exports) has a url_key: the page's host and path, normalized the same way as the GA4 MCP server and the AdSense MCP server do it, so an agent can join Search Console, Analytics and AdSense data for the same page.

https://www.Example.com/blog/post/?utm_source=x  ->  example.com/blog/post
  • The host is lowercased, without www. or a port.
  • The path keeps its case, without the query string, a trailing slash or /index.html.

Page URLs themselves are returned exactly as Search Console reports them in full format, so http:// and https://, www and bare-host variants of a page stay distinct rows. They share a url_key, so add them up when joining.

LLM Optimization (v0.2.0+)

All tools support parameters to reduce token consumption for LLM use cases:

Compact Response Format

Add format: "compact" to any tool for LLM-optimized output:

{
  "siteUrl": "sc-domain:example.com",
  "startDate": "2026-01-01",
  "endDate": "2026-01-28",
  "dimensions": ["query"],
  "format": "compact"
}

Compact format features:

  • Short key names (imp instead of impressions, pos instead of position)
  • CTR as percentage string ("5.41%" instead of 0.054123...)
  • Natural language summary field
  • Page URLs on the property's own host shortened to paths (/blog/post). Variants such as http:// and https:// then look alike, so use url_key to tell pages apart, or full format for exact URLs.

Example compact response:

{
  "summary": "Top query 'example keyword' got 150 clicks at position 3.2",
  "rows": [
    {"key": "example keyword", "clicks": 150, "imp": 2800, "ctr": "5.36%", "pos": 3.2}
  ]
}

Date Rollup Granularity

For date dimension queries, use granularity to reduce row count:

{
  "siteUrl": "sc-domain:example.com",
  "startDate": "2025-07-01",
  "endDate": "2026-01-28",
  "dimensions": ["date"],
  "granularity": "weekly"
}

Options:

  • daily — Default, returns daily data
  • weekly — Aggregates by ISO week (Monday to Sunday), keyed by the week's Monday
  • monthly — Aggregates by calendar month (YYYY-MM)
  • auto — Picks based on date range (>90 days = monthly, >21 days = weekly)

Rollups cover the whole date range: rowLimit applies to the weekly or monthly rows, not the daily ones. Position is impression-weighted, as Search Console averages it.

Default Row Limits

Default rowLimit is 25 (optimized for LLM context windows). Use higher values when needed:

{
  "siteUrl": "sc-domain:example.com",
  "rowLimit": 100
}

Maximum: 25,000 rows.

Resources

The server exposes browsable resources:

  • gsc://sites — List all properties
  • gsc://sites/{siteUrl}/sitemaps — List sitemaps for a property

Scopes

GSC-MCP supports two permission levels:

Readonly (default)

  • Search analytics queries
  • List sitemaps
  • SEO analysis tools
gsc-mcp init  # Uses readonly by default

Full

  • Everything in readonly, plus:
  • Submit/delete sitemaps
  • URL inspection
gsc-mcp init --scope full

Configuration Files

GSC-MCP stores configuration in platform-specific locations:

PlatformConfig Path
macOS~/.config/gsc-mcp/
Linux~/.config/gsc-mcp/
Windows%APPDATA%/gsc-mcp/

Files:

  • config.json — OAuth client ID/secret, scope settings
  • cache.sqlite — Query cache and saved presets

Tokens are stored securely in the OS keychain when available.

Service Account Setup

For automated/server use, you can use a service account instead of OAuth:

  1. Create a service account in Google Cloud Console
  2. Download the JSON key file
  3. Add the service account email as an owner in Google Search Console
  4. Initialize:
gsc-mcp init --service-account /path/to/key.json

API Quotas

Google Search Console API has a default quota of 1,200 queries per day. GSC-MCP includes:

  • Automatic retry with exponential backoff
  • Query caching to reduce API calls
  • Pagination handling for large result sets

Examples

Find Quick-Win Keywords

Use gsc-mcp to find quick-win opportunities for my site https://example.com

Weekly Report

Generate a weekly performance summary for https://example.com

Compare Periods

Compare search performance for https://example.com between last week and the week before

Export Data

Export the top 1000 queries for https://example.com in the last 28 days as CSV

Development

# Clone the repo
git clone https://github.com/AppsYogi-com/gsc-mcp-server.git
cd gsc-mcp-server

# Install dependencies
npm install

# Build
npm run build

# Run in dev mode
npm run dev

# Typecheck, lint and test (Node.js 20+ for lint and tests)
npm run typecheck
npm run lint
npm test
npm run test:smoke   # the built CLI over stdio; run `npm run build` first

# Test locally
node dist/cli/index.js doctor

License

MIT

Contributing

Contributions are welcome! Please open an issue or PR.

Credits

Built with:

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Google Search Console MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/gsc-mcp-server-appsyogi-com)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research