google-search-console-mcp

google-search-console-mcp

1

The Google Search Console MCP Server allows users to connect to the Google Search Console API, facilitating various operations like retrieving search analytics data and checking URL indexing status within n8n workflows. It supports listing sites, fetching top queries, and more, with secure handling of credentials.

Google Search Console MCP Server

  • This project is an MCP server providing access to the Google Search Console API for use within n8n workflows using the MCP Client node.
  • Features:
    • List all Search Console sites
    • Retrieve search analytics data
    • View top search queries and pages
    • Check URL indexing status
    • Fetch sitemap information

Installation

  1. Ensure Python 3.7+ is installed.
  2. Clone the repository from GitHub.
  3. Create a virtual environment and install dependencies.
  4. Make the scripts executable and set up service account credentials.

Google API Credentials

  • Reuse an existing service account or create a new one.
  • Set up proper permissions within Google Search Console for the service account.

Usage with n8n

  • Add an MCP Client node in n8n and configure the command and environment variables appropriately.

Available Tools

  • list_sites: List all Search Console sites
  • get_search_analytics: Retrieve search analytics data
  • get_top_queries: Fetch top search queries
  • get_top_pages: Retrieve top pages
  • get_queries_for_url: Fetch queries for a specific URL
  • inspect_url: Check URL indexing status
  • list_sitemaps: List all sitemaps