Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-server-gsc

MCP.Pizza Chef: ahonn

The mcp-server-gsc is a Model Context Protocol (MCP) server that provides seamless access to Google Search Console data. It enables retrieval of search analytics with support for multiple dimensions and customizable reporting periods, facilitating rich SEO data analysis. Designed for Node.js 18+ environments, it requires a Google Cloud project with the Search Console API enabled and service account credentials. This server integrates easily with MCP clients like Claude Desktop via Smithery, allowing models to query and analyze website performance metrics directly within AI workflows.

Use This MCP server To

Retrieve Google Search Console search analytics data Analyze website SEO performance with dimension filters Generate customizable SEO reports for specific periods Integrate Google Search Console data into AI workflows Enable LLMs to query real-time search performance metrics

README

Google Search Console MCP Server

smithery badge

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:
  • 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 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.

mcp-server-gsc FAQ

How do I authenticate the mcp-server-gsc with Google Search Console?
You need a Google Cloud project with the Search Console API enabled and a service account with Search Console access credentials.
What Node.js version is required to run mcp-server-gsc?
Node.js version 18 or later is required to run the server.
Can I customize the reporting periods for analytics data?
Yes, the server supports customizable reporting periods for flexible data analysis.
How do I install mcp-server-gsc for use with Claude Desktop?
You can install it automatically via Smithery CLI using 'npx -y @smithery/cli install mcp-server-gsc --client claude'.
Is manual installation supported?
Yes, you can manually install it using 'npm install mcp-server-gsc'.
What kind of data can I retrieve from Google Search Console using this server?
You can retrieve search analytics data with support for multiple dimensions such as queries, pages, countries, and devices.
Does mcp-server-gsc support integration with other LLM platforms besides Claude?
Yes, it is compatible with various MCP clients and can work with models from OpenAI, Claude, Gemini, and others.
Where can I find the Google Cloud Console to set up credentials?
Visit https://console.cloud.google.com/ to create projects and enable the Search Console API.