Cover image
Try Now
2025-04-09

Google Search Console Insights with Claude AI for SEOs

3 years

Works with Finder

3

Github Watches

3

Github Forks

46

Github Stars

Google Search Console MCP server for SEOs

A tool that connects Google Search Console (GSC) with Claude AI, allowing you to analyze your SEO data through natural language conversations. This integration gives you access to property information, search analytics, URL inspection, and sitemap management—all through simple chat with Claude.


What Can This Tool Do For SEO Professionals?

  1. Property Management

    • See all your GSC properties in one place
    • Get verification details and basic site information
    • Add new properties to your account
    • Remove properties from your account
  2. Search Analytics & Reporting

    • Discover which search queries bring visitors to your site
    • Track impressions, clicks, and click-through rates
    • Analyze performance trends over time
    • Compare different time periods to spot changes
    • Visualize your data with charts and graphs created by Claude
  3. URL Inspection & Indexing

    • Check if specific pages have indexing problems
    • See when Google last crawled your pages
    • Inspect multiple URLs at once to identify patterns
    • Get actionable insights on how to improve indexing
  4. Sitemap Management

    • View all your sitemaps and their status
    • Submit new sitemaps directly through Claude
    • Check for errors or warnings in your sitemaps
    • Monitor sitemap processing status

Available Tools

Here's what you can ask Claude to do once you've set up this integration:

What You Can Ask For What It Does What You'll Need to Provide
list_properties Shows all your GSC properties Nothing - just ask!
get_site_details Shows details about a specific site Your website URL
add_site Adds a new site to your GSC properties Your website URL
delete_site Removes a site from your GSC properties Your website URL
get_search_analytics Shows top queries and pages with metrics Your website URL and time period
get_performance_overview Gives a summary of site performance Your website URL and time period
check_indexing_issues Checks if pages have indexing problems Your website URL and list of pages to check
inspect_url_enhanced Detailed inspection of a specific URL Your website URL and the page to inspect
get_sitemaps Lists all sitemaps for your site Your website URL
submit_sitemap Submits a new sitemap to Google Your website URL and sitemap URL

For a complete list of all 19 available tools and their detailed descriptions, ask Claude to "list tools" after setup.


Getting Started (No Coding Experience Required!)

1. Set Up Google Search Console API Access

Before using this tool, you'll need to create API credentials that allow Claude to access your GSC data:

Authentication Options

The tool supports two authentication methods:

1. OAuth Authentication (Recommended)

This method allows you to authenticate with your own Google account, which is often more convenient than using a service account. It will have access to the same resources you normally do.

Set GSC_SKIP_OAUTH to "true", "1", or "yes" to skip OAuth authentication and use only service account authentication

Setup Instructions:
  1. Go to the Google Cloud Console and create a Google Cloud account if you don't have one
  2. Create a new project or select an existing one
  3. Enable the Search Console API for your project
  4. Add scope https://www.googleapis.com/auth/webmasters to your project
  5. Go to the "Credentials" page
  6. Click "Create Credentials" and select "OAuth client ID"
  7. Configure the OAuth consent screen
  8. For application type, select "Desktop app"
  9. Give your OAuth client a name and click "Create"
  10. Download the client secrets JSON file (it will be named something like client_secrets.json)
  11. Place this file in the same directory as the script or set the GSC_OAUTH_CLIENT_SECRETS_FILE environment variable to point to its location

When you run the tool for the first time with OAuth authentication, it will open a browser window asking you to sign in to your Google account and authorize the application. After authorization, the tool will save the token for future use.

2. Service Account Authentication

This method uses a service account, which is useful for automated scripts or when you don't want to use your personal Google account. This requires adding the service account as a user in Google Search Console.

Setup Instructions:
  1. Go to the Google Cloud Console and create a Google Cloud account if you don't have one
  2. Create a new project or select an existing one
  3. Enable the Search Console API for your project
  4. Go to the "Credentials" page
  5. Click "Create Credentials" and select "Service Account"
  6. Fill in the service account details and click "Create"
  7. Click on the newly created service account
  8. Go to the "Keys" tab and click "Add Key" > "Create new key"
  9. Select JSON format and click "Create"
  10. Download the key file and save it as service_account_credentials.json in the same directory as the script or set the GSC_CREDENTIALS_PATH environment variable to point to its location
  11. Add your service account email address to appropriate Search Console properties

🎬 Watch this beginner-friendly tutorial on Youtube:

Click the image above to watch the step-by-step video tutorial

2. Install Required Software

You'll need to install these tools on your computer:

  • Python (version 3.11 or newer) - This runs the connection between GSC and Claude
  • Node.js - Required for running the MCP inspector and certain MCP components
  • Claude Desktop - The AI assistant you'll chat with

Make sure both Python and Node.js are properly installed and available in your system path before proceeding.

3. Download the Google Search Console MCP

You need to download this tool to your computer. The easiest way is:

  1. Click the green "Code" button at the top of this page
  2. Select "Download ZIP"
  3. Unzip the downloaded file to a location you can easily find (like your Documents folder)

Alternatively, if you're familiar with Git:

git clone https://github.com/AminForou/mcp-gsc.git

4. Install Required Components

Open your computer's Terminal (Mac) or Command Prompt (Windows):

  1. Navigate to the folder where you unzipped the files:

    # Example (replace with your actual path):
    cd ~/Documents/mcp-gsc-main
    
  2. Create a virtual environment (this keeps the project dependencies isolated):

    # Using uv (recommended):
    uv venv .venv
    
    # If uv is not installed, install it first:
    pip install uv
    # Then create the virtual environment:
    uv venv .venv
    
    # OR using standard Python:
    python -m venv .venv
    

    Note: If you get a "pip not found" error when trying to install uv, see the "If you get 'pip not found' error" section below.

  3. Activate the virtual environment:

    # On Mac/Linux:
    source .venv/bin/activate
    
    # On Windows:
    .venv\Scripts\activate
    
  4. Install the required dependencies:

    # Using uv:
    uv pip install -r requirements.txt
    
    # OR using standard pip:
    pip install -r requirements.txt
    

    If you get "pip not found" error:

    # First ensure pip is installed and updated:
    python3 -m ensurepip --upgrade
    python3 -m pip install --upgrade pip
    
    # Then try installing the requirements again:
    python3 -m pip install -r requirements.txt
    
    # Or to install uv:
    python3 -m pip install uv
    

When you see (.venv) at the beginning of your command prompt, it means the virtual environment is active and the dependencies will be installed there without affecting your system Python installation.

5. Connect Claude to Google Search Console

  1. Download and install Claude Desktop if you haven't already
  2. Make sure you have your Google service account credentials file saved somewhere on your computer
  3. Open your computer's Terminal (Mac) or Command Prompt (Windows) and type:
   # For Mac users:
   nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
   
   # For Windows users:
   notepad %APPDATA%\Claude\claude_desktop_config.json
  1. Add the following configuration text (this tells Claude how to connect to GSC):

OAuth authentication (using your own account)

{
  "mcpServers": {
    "gscServer": {
      "command": "/FULL/PATH/TO/-main/.venv/bin/python",
      "args": ["/FULL/PATH/TO/mcp-gsc-main/gsc_server.py"],
      "env": {
        "GSC_OAUTH_CLIENT_SECRETS_FILE": "/FULL/PATH/TO/client_secrets.json"
      }
    }
  }
}

Service account authentication

{
  "mcpServers": {
    "gscServer": {
      "command": "/FULL/PATH/TO/-main/.venv/bin/python",
      "args": ["/FULL/PATH/TO/mcp-gsc-main/gsc_server.py"],
      "env": {
        "GSC_CREDENTIALS_PATH": "/FULL/PATH/TO/service_account_credentials.json",
        "GSC_SKIP_OAUTH": "true"
      }
    }
  }
}

Important: Replace all paths with the actual locations on your computer:

  • The first path should point to the Python executable inside your virtual environment
  • The second path should point to the gsc_server.py file inside the folder you unzipped
  • The third path should point to your Google service account credentials JSON file

Examples:

  • Mac:
    • Python path: /Users/yourname/Documents/mcp-gsc/.venv/bin/python
    • Script path: /Users/yourname/Documents/mcp-gsc/gsc_server.py
  • Windows:
    • Python path: C:\\Users\\yourname\\Documents\\mcp-gsc\\.venv\\Scripts\\python.exe
    • Script path: C:\\Users\\yourname\\Documents\\mcp-gsc\\gsc_server.py
  1. Save the file:

    • Mac: Press Ctrl+O, then Enter, then Ctrl+X to exit
    • Windows: Click File > Save, then close Notepad
  2. Restart Claude Desktop

  3. When Claude opens, you should now see GSC tools available in the tools section

6. Start Analyzing Your SEO Data!

Now you can ask Claude questions about your GSC data! Claude can not only retrieve the data but also analyze it, explain trends, and create visualizations to help you understand your SEO performance better.

Here are some powerful prompts you can use with each tool:

Tool Name Sample Prompt
list_properties "List all my GSC properties and tell me which ones have the most pages indexed."
get_site_details "Analyze the verification status of mywebsite.com and explain what the ownership details mean."
add_site "Add my new website https://mywebsite.com to Search Console and verify its status."
delete_site "Remove the old test site https://test.mywebsite.com from Search Console."
get_search_analytics "Show me the top 20 search queries for mywebsite.com in the last 30 days, highlight any with CTR below 2%, and suggest title improvements."
get_performance_overview "Create a visual performance overview of mywebsite.com for the last 28 days, identify any unusual drops or spikes, and explain possible causes."
check_indexing_issues "Check these important pages for indexing issues and prioritize which ones need immediate attention: mywebsite.com/product, mywebsite.com/services, mywebsite.com/about"
inspect_url_enhanced "Do a comprehensive inspection of mywebsite.com/landing-page and give me actionable recommendations to improve its indexing status."
batch_url_inspection "Inspect my top 5 product pages, identify common crawling or indexing patterns, and suggest technical SEO improvements."
get_sitemaps "List all sitemaps for mywebsite.com, identify any with errors, and recommend next steps."
list_sitemaps_enhanced "Analyze all my sitemaps for mywebsite.com, focusing on error patterns, and create a prioritized action plan."
submit_sitemap "Submit my new product sitemap at https://mywebsite.com/product-sitemap.xml and explain how long it typically takes for Google to process it."
get_sitemap_details "Check the status of my main sitemap at mywebsite.com/sitemap.xml and explain what the warnings mean for my SEO."
get_search_by_page_query "What search terms are driving traffic to my blog post at mywebsite.com/blog/post-title? Identify opportunities to optimize for related keywords."
compare_search_periods "Compare my site's performance between January and February. What queries improved the most, which declined, and what might explain these changes?"
get_advanced_search_analytics "Analyze my mobile search performance for queries with high impressions but positions below 10, and suggest content improvements to help them rank better."

You can also ask Claude to combine multiple tools and analyze the results. For example:

  • "Find my top 20 landing pages by traffic, check their indexing status, and create a report highlighting any pages with both high traffic and indexing issues."

  • "Analyze my site's performance trend over the last 90 days, identify my fastest-growing queries, and check if the corresponding landing pages have any technical issues."

  • "Compare my desktop vs. mobile search performance, visualize the differences with charts, and recommend specific pages that need mobile optimization based on performance gaps."

  • "Identify queries where I'm ranking on page 2 (positions 11-20) that have high impressions but low CTR, then inspect the corresponding URLs and suggest title and meta description improvements."

Claude will use the GSC tools to fetch the data, present it in an easy-to-understand format, create visualizations when helpful, and provide actionable insights based on the results.


Data Visualization Capabilities

Claude can help you visualize your GSC data in various ways:

  • Trend Charts: See how metrics change over time
  • Comparison Graphs: Compare different time periods or dimensions
  • Performance Distributions: Understand how your content performs across positions
  • Correlation Analysis: Identify relationships between different metrics
  • Heatmaps: Visualize complex datasets with color-coded representations

Simply ask Claude to "visualize" or "create a chart" when analyzing your data, and it will generate appropriate visualizations to help you understand the information better.


Troubleshooting

Python Command Not Found

On macOS, the default Python command is often python3 rather than python, which can cause issues with some applications including Node.js integrations.

If you encounter errors related to Python not being found, you can create an alias:

  1. Create a Python alias (one-time setup):

    # For macOS users:
    sudo ln -s $(which python3) /usr/local/bin/python
    
    # If that doesn't work, try finding your Python installation:
    sudo ln -s /Library/Frameworks/Python.framework/Versions/3.11/bin/python3 /usr/local/bin/python
    
  2. Verify the alias works:

    python --version
    

This creates a symbolic link so that when applications call python, they'll actually use your python3 installation.

Claude Configuration Issues

If you're having trouble connecting:

  1. Make sure all file paths in your configuration are correct and use the full path
  2. Check that your service account has access to your GSC properties
  3. Restart Claude Desktop after making any changes
  4. Look for error messages in Claude's response when you try to use a tool
  5. Ensure your virtual environment is activated when running the server manually

Other Unexpected Issues

If you encounter any other unexpected issues during installation or usage:

  1. Copy the exact error message you're receiving
  2. Use ChatGPT or Claude and explain your problem in detail, including:
    • What you were trying to do
    • The exact error message
    • Your operating system
    • Any steps you've already tried
  3. AI assistants can often help diagnose and resolve technical issues by suggesting specific solutions for your situation

Remember that most issues have been encountered by others before, and there's usually a straightforward solution available.


Contributing

Found a bug or have an idea for improvement? We welcome your input! Open an issue or submit a pull request on GitHub.


License

This project is licensed under the MIT License. See the LICENSE file for details.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • ariofarmani
  • Test repository for GitHub MCP server functionality

  • 1Panel-dev
  • 💬 MaxKB is a ready-to-use AI chatbot that integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • open-webui
  • User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

  • Dhravya
  • Collection of apple-native tools for the model context protocol.

    Reviews

    5 (1)
    Avatar
    user_iTNHiNAn
    2025-04-17

    I've been using mcp-gsc by AminForou and it's truly impressive. This tool has significantly streamlined my workflow with its robust features and user-friendly interface. The support and updates are excellent, making it a reliable choice for anyone in need of a powerful solution for their projects. Highly recommend checking it out at https://github.com/AminForou/mcp-gsc!