mcp-server-gsc

mcp-server-gsc

MCP.Pizza Chef: ahonn

Ask which search terms send people to your site, which pages earn the clicks, and how that shifts by country or device, then get the answer explained in plain words rather than a spreadsheet. It can also list the sites you own, check whether a page has been indexed, and submit a sitemap. The real hurdle is getting in: you create a Google Cloud project, download a credentials file, and grant that account access to your property.

Data
Web/Research

Use This MCP server To

Find which search terms bring visitors to my site Spot pages sitting just below the first results page Compare how phone and desktop visitors find me See which countries my search traffic comes from Check whether a new page has been indexed yet Submit an updated sitemap without opening the dashboard

README

Google Search Console MCP Server

A Model Context Protocol (MCP) server providing comprehensive access to Google Search Console data with enhanced analytics capabilities.

Features

  • Enhanced Search Analytics: Retrieve up to 25,000 rows of performance data
  • Advanced Filtering: Support for regex patterns and multiple filter operators
  • Quick Wins Detection: Automatically identify optimization opportunities
  • Rich Dimensions: Query, page, country, device, and search appearance analysis
  • Flexible Date Ranges: Customizable reporting periods with historical data access

Sponsored by

macuse.app

macuse.app is a native macOS application that gives your AI superpowers by integrating AI assistants with macOS apps like Calendar, Mail, and Notes, plus universal UI control for any application. Supports Claude Desktop, Cursor, and Raycast with one-click setup. Privacy-first, runs locally.

Prerequisites

  • Node.js 18 or later
  • Google Cloud Project with Search Console API enabled
  • Service Account credentials with Search Console access

Installation

npm install mcp-server-gsc

Authentication Setup

To obtain Google Search Console API credentials:

  1. Visit the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the API:
  1. Create credentials:
  • Navigate to "APIs & Services" > "Credentials"
  • Click "Create Credentials" > "Service Account"
  • Fill in the service account details
  • Create a new key in JSON format
  • The credentials file (.json) will download automatically
  1. Grant access:
  • Open Search Console
  • Add the service account email (format: name@project.iam.gserviceaccount.com) as a property administrator

Usage

Claude Desktop Configuration

{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": ["-y", "mcp-server-gsc"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
      }
    }
  }
}

Available Tools

search_analytics

Get comprehensive search performance data from Google Search Console with enhanced analytics capabilities.

Required Parameters:

  • siteUrl: Site URL (format: http://www.example.com/ or sc-domain:example.com)
  • startDate: Start date (YYYY-MM-DD)
  • endDate: End date (YYYY-MM-DD)

Optional Parameters:

  • dimensions: Comma-separated list (query, page, country, device, searchAppearance, date)
  • type: Search type (web, image, video, news, discover, googleNews)
  • aggregationType: Aggregation method (auto, byNewsShowcasePanel, byProperty, byPage)
  • rowLimit: Maximum rows to return (default: 1000, max: 25000)
  • dataState: Data freshness (all or final, default: final)

Filter Parameters:

  • pageFilter: Filter by page URL (supports regex with regex: prefix)
  • queryFilter: Filter by search query (supports regex with regex: prefix)
  • countryFilter: Filter by country ISO 3166-1 alpha-3 code (e.g., USA, CHN)
  • deviceFilter: Filter by device type (DESKTOP, MOBILE, TABLET)
  • searchAppearanceFilter: Filter by search feature (e.g., AMP_BLUE_LINK, AMP_TOP_STORIES)
  • filterOperator: Operator for filters (equals, contains, notEquals, notContains, includingRegex, excludingRegex)

Quick Wins Detection:

  • detectQuickWins: Enable automatic detection of optimization opportunities (default: false)
  • quickWinsConfig: Configuration for quick wins detection:
    • positionRange: Position range to consider (default: [4, 20])
    • minImpressions: Minimum impressions threshold (default: 100)
    • minCtr: Minimum CTR percentage (default: 1)

Example - Basic Query:

{
  "siteUrl": "https://example.com",
  "startDate": "2024-01-01",
  "endDate": "2024-01-31",
  "dimensions": "query,page",
  "rowLimit": 5000
}

Example - Advanced Filtering with Regex:

{
  "siteUrl": "https://example.com",
  "startDate": "2024-01-01",
  "endDate": "2024-01-31",
  "dimensions": "page,query",
  "queryFilter": "regex:(AI|machine learning|ML)",
  "filterOperator": "includingRegex",
  "deviceFilter": "MOBILE",
  "rowLimit": 10000
}

Example - Quick Wins Detection:

{
  "siteUrl": "https://example.com",
  "startDate": "2024-01-01",
  "endDate": "2024-01-31",
  "dimensions": "query,page",
  "detectQuickWins": true,
  "quickWinsConfig": {
    "positionRange": [4, 15],
    "minImpressions": 500,
    "minCtr": 2
  }
}

License

MIT

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting pull requests.

mcp-server-gsc FAQ

Is this still maintained?
The most recent commit was February 2026, so it has been quiet for several months. Nothing is marked archived or deprecated.
Do I need a key or login?
Yes, despite what some listings say. You create a Google service account, download its credentials file, and add that account to your Search Console property.
Can I use this to see which searches send people to my site?
Yes, that is its main job. It can pull up to 25,000 rows at a time and filter by page, country or device.
Can it change anything, or does it only read?
Almost everything only reads. The one action that writes is submitting a sitemap to your property.
Does the project description list everything it does?
No. The write-up describes a single reporting tool, but the shipped version offers eight, including site listing, index checks and sitemap submission.
How hard is setup?
Harder than most. Pasting the config block is quick, but the Google Cloud credentials step walks through several screens in Google's console.
Which apps does it work in?
Claude Desktop and Cursor are documented, and the same arrangement works in other MCP-compatible apps.