G

Google Search Console MCP

by ni-c · io.github.ni-c/google-search-console-mcp

MCP server for Google Search Console: properties, sitemaps, search analytics and URL inspection

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-ni-c-google-search-console-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp"
      ],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY": "<YOUR_VALUE>",
        "GSC_SERVICE_ACCOUNT_KEY_FILE": "<VALUE>",
        "GSC_CLIENT_ID": "<VALUE>",
        "GSC_CLIENT_SECRET": "<YOUR_VALUE>",
        "GSC_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GSC_SITE_URL": "<VALUE>",
        "GSC_ALLOWED_SITES": "<VALUE>",
        "GSC_READ_ONLY": "<VALUE>",
        "GSC_ALLOW_TOOLS": "<VALUE>",
        "GSC_DENY_TOOLS": "<VALUE>",
        "ELICITATION": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-ni-c-google-search-console-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp"
      ],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY": "<YOUR_VALUE>",
        "GSC_SERVICE_ACCOUNT_KEY_FILE": "<VALUE>",
        "GSC_CLIENT_ID": "<VALUE>",
        "GSC_CLIENT_SECRET": "<YOUR_VALUE>",
        "GSC_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GSC_SITE_URL": "<VALUE>",
        "GSC_ALLOWED_SITES": "<VALUE>",
        "GSC_READ_ONLY": "<VALUE>",
        "GSC_ALLOW_TOOLS": "<VALUE>",
        "GSC_DENY_TOOLS": "<VALUE>",
        "ELICITATION": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-ni-c-google-search-console-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp"
      ],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY": "<YOUR_VALUE>",
        "GSC_SERVICE_ACCOUNT_KEY_FILE": "<VALUE>",
        "GSC_CLIENT_ID": "<VALUE>",
        "GSC_CLIENT_SECRET": "<YOUR_VALUE>",
        "GSC_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GSC_SITE_URL": "<VALUE>",
        "GSC_ALLOWED_SITES": "<VALUE>",
        "GSC_READ_ONLY": "<VALUE>",
        "GSC_ALLOW_TOOLS": "<VALUE>",
        "GSC_DENY_TOOLS": "<VALUE>",
        "ELICITATION": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-ni-c-google-search-console-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp"
      ],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY": "<YOUR_VALUE>",
        "GSC_SERVICE_ACCOUNT_KEY_FILE": "<VALUE>",
        "GSC_CLIENT_ID": "<VALUE>",
        "GSC_CLIENT_SECRET": "<YOUR_VALUE>",
        "GSC_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GSC_SITE_URL": "<VALUE>",
        "GSC_ALLOWED_SITES": "<VALUE>",
        "GSC_READ_ONLY": "<VALUE>",
        "GSC_ALLOW_TOOLS": "<VALUE>",
        "GSC_DENY_TOOLS": "<VALUE>",
        "ELICITATION": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-ni-c-google-search-console-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp"
      ],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY": "<YOUR_VALUE>",
        "GSC_SERVICE_ACCOUNT_KEY_FILE": "<VALUE>",
        "GSC_CLIENT_ID": "<VALUE>",
        "GSC_CLIENT_SECRET": "<YOUR_VALUE>",
        "GSC_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GSC_SITE_URL": "<VALUE>",
        "GSC_ALLOWED_SITES": "<VALUE>",
        "GSC_READ_ONLY": "<VALUE>",
        "GSC_ALLOW_TOOLS": "<VALUE>",
        "GSC_DENY_TOOLS": "<VALUE>",
        "ELICITATION": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-ni-c-google-search-console-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp"
      ],
      "env": {
        "GSC_SERVICE_ACCOUNT_KEY": "<YOUR_VALUE>",
        "GSC_SERVICE_ACCOUNT_KEY_FILE": "<VALUE>",
        "GSC_CLIENT_ID": "<VALUE>",
        "GSC_CLIENT_SECRET": "<YOUR_VALUE>",
        "GSC_REFRESH_TOKEN": "<YOUR_VALUE>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<VALUE>",
        "GSC_SITE_URL": "<VALUE>",
        "GSC_ALLOWED_SITES": "<VALUE>",
        "GSC_READ_ONLY": "<VALUE>",
        "GSC_ALLOW_TOOLS": "<VALUE>",
        "GSC_DENY_TOOLS": "<VALUE>",
        "ELICITATION": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
GSC_SERVICE_ACCOUNT_KEY secret No Service account key as raw JSON, or base64-encoded JSON
GSC_SERVICE_ACCOUNT_KEY_FILE No Path to a service account key file. Alternative to GSC_SERVICE_ACCOUNT_KEY — setting both is an error
GSC_CLIENT_ID No OAuth2 client id
GSC_CLIENT_SECRET secret No OAuth2 client secret
GSC_REFRESH_TOKEN secret No OAuth2 refresh token. All three OAuth2 variables are required together
GOOGLE_APPLICATION_CREDENTIALS No Application default credentials, used when no GSC_ credential is set
GSC_SITE_URL No Default property, e.g. sc-domain:example.com or https://example.com/. Makes site_url optional everywhere
GSC_ALLOWED_SITES No Comma-separated properties this server may touch at all; anything else is refused
GSC_READ_ONLY No true (or 1/yes) registers only the twelve read tools
GSC_ALLOW_TOOLS No Comma-separated tool names, a list_* prefix, or essential
GSC_DENY_TOOLS No Same shape as GSC_ALLOW_TOOLS, subtracted from whatever the allow list left
ELICITATION No false replaces the approval dialog with the two-call token. Not prefixed with GSC_

Similar servers