How to Use Google Search Console MCP Server

This guide details Google Search Console MCP for powerful SEO analytics and Apidog MCP Server for AI-driven API development. Learn to install, configure, and leverage these tools to boost productivity and gain deeper insights into your web performance and API specifications.

Oliver Kingsley

Oliver Kingsley

30 May 2025

How to Use Google Search Console MCP Server

AI has been a necessity to streamline workflows and gain deeper insights. Model Context Protocol (MCP) servers are at the forefront acting as bridges that allow AI-powered tools to interact directly with your crucial data sources.

Today, we’ll delve into how to set up the Google Search Console MCP Server—a popular choice for analytics and SEO data—and then introduce the Apidog MCP Server, a powerful, all-in-one solution designed to elevate your API development workflow.

button

What Is Google Search Console MCP Server?

The Google Search Console MCP Server acts as a bridge between Google Search Console and AI-powered IDEs. Exposing your site’s search analytics data to AI enables smarter, data-driven coding and reporting.

Key Features

How to Set Up Google Search Console MCP Server

Setting up the Google Search Console MCP Server involves several steps. Here’s a step-by-step guide:

Prerequisites

Before you begin, ensure you have:

1. Install the MCP Server

You can install the server automatically via Smithery or manually with npm.

Via Smithery:

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

Manual Installation:

npm install mcp-server-gsc

2. Set Up Google Cloud Credentials

Go to the Google Cloud Console.

Create a new project or select an existing one

Enable the Search Console API:

Create credentials:

Grant access:

3. Configure the MCP Server in Your AI Client

For Claude Desktop or similar tools, add the following configuration:

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

4. Querying Search Analytics Data

You can now use the search_analytics tool to retrieve data. Example parameters:

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

Required and Optional Parameters

Parameter Required Description
siteUrl Yes Site URL (e.g., https://example.com)
startDate Yes Start date (YYYY-MM-DD)
endDate Yes End date (YYYY-MM-DD)
dimensions No Comma-separated (query, page, country, etc.)
type No Search type (web, image, video, news)
rowLimit No Max rows to return (default: 1000)

Example AI Prompt:

@gsc use the search_analytics tool for siteUrl 'https://example.com', startDate '2024-04-01', endDate '2024-04-30', with dimensions 'query,page' and a rowLimit of 10. Show me the top queries and pages.

This setup empowers your AI assistant to become a powerful SEO analyst, providing data-driven insights for better development.

Streamlining API Development: The Apidog MCP Server

While the Google Search Console MCP Server focuses on web analytics, the Apidog MCP Server is specifically engineered to enhance AI-assisted API development. It allows your AI coding assistant to directly understand and interact with your API specifications, dramatically speeding up tasks like code generation, documentation, and testing.

button

What Makes Apidog MCP Server Unique?

Key Features

How to Set Up Apidog MCP Server: Step-by-Step Guide

Setting up the Apidog MCP Server involves a few straightforward steps.

button

Prerequisites

1. Node.js: Version 18 or later (latest LTS recommended).

2. MCP-Compatible IDE:

Configuration Based on Your Data Source

Apidog MCP Server offers flexibility by supporting various API specification sources:

1. Using an Apidog Project as the Data Source

This is ideal for teams managing their APIs within Apidog.

Obtain API Access Token & Project ID:

API Access Token: In Apidog, go to Account Settings (via profile picture) > API Access Token. Create a new token and copy it.

Obtain API access token from Apidog

Project ID: Open your target project in Apidog. Go to Project Settings (left sidebar) > Basic Settings. Copy the Project ID.

Obtain API project ID from Apidog

Configure in Cursor (Example):

In Cursor, open MCP settings (Settings icon > MCP > "+ Add new global MCP server").

Paste the configuration into mcp.json, replacing placeholders:

For macOS/Linux:

{
 "mcpServers": {
   "MyApidogAPI": { // You can name this descriptively
     "command": "npx",
     "args": [
       "-y",
       "apidog-mcp-server@latest",
       "--project=<your-project-id>"
     ],
     "env": {
       "APIDOG_ACCESS_TOKEN": "<your-access-token>"
     }
   }
 }
}

For Windows:

{
 "mcpServers": {
   "MyApidogAPI": {
     "command": "cmd",
     "args": [
       "/c",
       "npx",
       "-y",
       "apidog-mcp-server@latest",
       "--project=<your-project-id>"
     ],
     "env": {
       "APIDOG_ACCESS_TOKEN": "<your-access-token>"
     }
   }
 }
}

2. Using Online API Documentation Published by Apidog

Useful for public APIs or sharing specs with external developers via AI.

Obtain Documentation URL: Get the URL of the publicly shared Apidog documentation.

Configure in Cursor (Example):

For macOS/Linux:

{
  "mcpServers": {
    "apidog-site-123456": {
      "command": "npx",
      "args": [
        "-y",
        "apidog-mcp-server@latest",
        "--site-id=123456"
      ]
    }
  }
}

For Windows:

{
  "mcpServers": {
    "apidog-site-123456": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "apidog-mcp-server@latest",
        "--site-id=123456"
      ]
    }
  }
}

3. Using Swagger/OpenAPI Files as the Data Source

Perfect for working with local OpenAPI/Swagger files or those hosted online.

File Path/URL: Identify the local path or direct URL to your swagger.json, openapi.json, or openapi.yaml file.

Configure in Cursor (Example):

For macOS/Linux:

{
  "mcpServers": {
    "API specification": {
      "command": "npx",
      "args": [
        "-y",
        "apidog-mcp-server@latest",
        "--oas=https://petstore.swagger.io/v2/swagger.json"
      ]
    }
  }
}

For Windows:

{
  "mcpServers": {
    "API specification": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "apidog-mcp-server@latest",
        "--oas=https://petstore.swagger.io/v2/swagger.json"
      ]
    }
  }
}

Verify the Configuration

After setup, test the connection by prompting your AI assistant in Agent mode. For example:

@MyApidogAPI please fetch the API specification and tell me how many endpoints exist in the project.

If the AI responds with information from your API specification, the setup is successful. Remember, API data is cached locally. If you update your specifications in Apidog, instruct the AI to refresh its context to fetch the latest changes.

Conclusion

Integrating AI with your development workflow is no longer a luxury—it’s a game changer. By setting up MCP servers like Google Search Console and Apidog MCP, you enable your AI assistants to interact directly with critical datasets, unlocking advanced use cases across SEO analysis and API development.

button

Explore more

Apidog SEO Settings Explained: Maximize Your API Docs Visibility

Apidog SEO Settings Explained: Maximize Your API Docs Visibility

Discover how to supercharge your API documentation's visibility with Apidog's powerful SEO features. This comprehensive guide covers everything from page-level optimizations like custom URLs and meta tags to site-wide settings such as sitemaps and robots.txt.

18 June 2025

How to Protect API Specification from Unauthorized Users with Apidog

How to Protect API Specification from Unauthorized Users with Apidog

Learn how Apidog empowers you to protect API specification from unauthorized users. Explore advanced API documentation security, access controls, and sharing options for secure API development.

17 June 2025

How to Use the PostHog MCP Server?

How to Use the PostHog MCP Server?

Discover how to use the PostHog MCP server with this in-depth technical guide. Learn to install, configure, and optimize the server for seamless PostHog analytics integration using natural language. Includes practical use cases and troubleshooting.

16 June 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs