Google Search Console MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}" google-search-console -- npx -y @smithery/cli install mcp-server-gsc --client claude
Required:GOOGLE_APPLICATION_CREDENTIALS
README.md

Provides access to Google Search Console to retrieve search performance data.

Google Search Console MCP Server

A Model Context Protocol (MCP) server providing access to Google Search Console.

Features

  • Search analytics data retrieval with dimensions support
  • Rich data analysis with customizable reporting periods

Prerequisites

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

Installation

Installing via Smithery

To install Google Search Console for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-server-gsc --client claude

Manual 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:

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 search performance data from Google Search Console with customizable parameters:

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)
  • type: Search type (web, image, video, news)
  • aggregationType: Aggregation method (auto, byNewsShowcasePanel, byProperty, byPage)
  • rowLimit: Maximum rows to return (default: 1000)

Example:

{
  "siteUrl": "https://example.com",
  "startDate": "2024-01-01",
  "endDate": "2024-01-31",
  "dimensions": "query,country",
  "type": "web",
  "rowLimit": 500
}

License

MIT

Contributing

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

Tools (1)

search_analyticsGet search performance data from Google Search Console with customizable parameters.

Environment Variables

GOOGLE_APPLICATION_CREDENTIALSrequiredPath to the service account JSON credentials file

Configuration

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

Try it

Get the search performance data for my site https://example.com for the last 30 days.
What are the top queries driving traffic to my website this month?
Show me the search performance breakdown by country for my domain.
Retrieve the top 50 pages by clicks for the last week.

Frequently Asked Questions

What are the key features of Google Search Console?

Search analytics data retrieval with dimensions support. Rich data analysis with customizable reporting periods. Support for various search types including web, image, video, and news. Configurable row limits and aggregation methods.

What can I use Google Search Console for?

Analyzing top-performing search queries to inform content strategy. Monitoring search traffic trends across different countries and devices. Identifying high-traffic pages to optimize for better conversion. Automating monthly SEO performance reporting for stakeholders.

How do I install Google Search Console?

Install Google Search Console by running: npx -y @smithery/cli install mcp-server-gsc --client claude

What MCP clients work with Google Search Console?

Google Search Console works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Google Search Console docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare