Google Search Console

v0.3.0
io.github.ni-c/google-search-console-mcp Checked 2 days ago Published 2 months ago

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

Values you need

VariableWhat it is
GSC_SERVICE_ACCOUNT_KEYoptional secret Service account key as JSON, or base64-encoded JSON. One of the three credential options.
GSC_SERVICE_ACCOUNT_KEY_FILEoptional Path to a service account key file. Alternative to GSC_SERVICE_ACCOUNT_KEY.
GSC_CLIENT_IDoptional OAuth2 client id. Use together with GSC_CLIENT_SECRET and GSC_REFRESH_TOKEN.
GSC_CLIENT_SECREToptional secret OAuth2 client secret. All three OAuth2 variables are required together.
GSC_REFRESH_TOKENoptional secret OAuth2 refresh token. All three OAuth2 variables are required together.
GOOGLE_APPLICATION_CREDENTIALSoptional Path to application default credentials, used when no GSC_ credential is set.
GSC_SITE_URLoptional Default property, e.g. sc-domain:example.com or https://example.com/ — makes site_url optional
GSC_ALLOWED_SITESoptional Comma-separated properties this server may touch; anything else is refused
GSC_READ_ONLYoptional Set to true to register only the read tools (default: false)
GSC_ALLOW_TOOLSoptional Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
GSC_DENY_TOOLSoptional Comma-separated tool names or list_* prefixes to remove from whatever the allow list left

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add google-search-console-mcp -- npx -y @ni-c/google-search-console-mcp@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "google-search-console-mcp": {
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "google-search-console-mcp": {
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp@0.3.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "google-search-console-mcp": {
      "args": [
        "-y",
        "@ni-c/google-search-console-mcp@0.3.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.google-search-console-mcp]
command = "npx"
args = ["-y", "@ni-c/google-search-console-mcp@0.3.0"]

Docker

Requires Docker

Run in a terminal
claude mcp add google-search-console-mcp -- docker run -i --rm ghcr.io/ni-c/google-search-console-mcp:0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "google-search-console-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ni-c/google-search-console-mcp:0.3.0"
      ],
      "command": "docker"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "google-search-console-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ni-c/google-search-console-mcp:0.3.0"
      ],
      "command": "docker"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "google-search-console-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ni-c/google-search-console-mcp:0.3.0"
      ],
      "command": "docker",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.google-search-console-mcp]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/ni-c/google-search-console-mcp:0.3.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_sites, get_site, add_site, delete_site, list_sitemaps, get_sitemap, submit_sitemap, submit_sitemaps, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json