Google Search Console MCP
v1.1.0Local, read-only Google Search Console MCP server.
Values you need
| Variable | What it is | |
|---|---|---|
GSC_AUTH_MODE | optional | oauth or service_account. Unset defaults to service_account. Set oauth for Quick Connect or your own OAuth client. |
GSC_ACCESS_MODE | optional | readonly or full. full enables gsc_submit_url, gsc_submit_batch, and gsc_submit_sitemap. When unset, legacy GSC_SCOPES and GSC_ENABLE_WRITE apply and writes stay off unless both allow them. Setup refuses full access for Quick Connect. |
GSC_SITE_URLS | optional | Property allowlist. JSON string array of exact Search Console property ids, a legacy comma-separated list, or all alone (or JSON ["all"]) for every current and future property. Property-scoped tools need an allowlist. |
GSC_KEY_FILE | optional | Path to a service account JSON key. Required when GSC_AUTH_MODE is service_account, which is the default mode. |
GSC_DATA_DIR | optional | Local state directory for OAuth tokens, datasets and opt-in audit history. Default is ~/.gsc-mcp. |
GSC_EXPORTS | optional | Set to 1 to allow gsc_export_dataset and saved gsc_generate_report files on this machine. Any other value keeps local export disabled. |
GSC_HISTORY | optional | Set to 1 for explicit local gsc_change_impact history actions. Independent of exports; no scheduler or notifications. |
GSC_OAUTH_SECRETS_FILE | optional | Optional path to a Desktop OAuth client secrets JSON file. It takes precedence over GSC_OAUTH_CLIENT_ID and GSC_OAUTH_CLIENT_SECRET. Quick Connect does not need it. |
GSC_OAUTH_CLIENT_ID | optional | Optional OAuth client id. Used with GSC_OAUTH_CLIENT_SECRET when GSC_OAUTH_SECRETS_FILE is unset. Quick Connect does not need it. |
GSC_OAUTH_CLIENT_SECRET | optional secret | Optional OAuth client secret paired with GSC_OAUTH_CLIENT_ID. Quick Connect does not need it. |
GSC_SCOPES | optional | Legacy scope tier, readonly or full. Ignored when GSC_ACCESS_MODE is set. full alone does not enable writes. |
GSC_ENABLE_WRITE | optional | Legacy write opt-in. Set to 1 together with GSC_SCOPES=full when GSC_ACCESS_MODE is unset. Ignored when GSC_ACCESS_MODE is set. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add gsc-mcp -- npx -y @sonnivasquez/gsc-mcp@1.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"gsc-mcp": {
"args": [
"-y",
"@sonnivasquez/gsc-mcp@1.1.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gsc-mcp": {
"args": [
"-y",
"@sonnivasquez/gsc-mcp@1.1.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"gsc-mcp": {
"args": [
"-y",
"@sonnivasquez/gsc-mcp@1.1.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gsc-mcp]
command = "npx"
args = ["-y", "@sonnivasquez/gsc-mcp@1.1.0"]For AI agents
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: gsc_page_audit, gsc_indexing_audit, gsc_internal_link_audit, gsc_change_impact, gsc_migration_audit, gsc_submit_url, gsc_submit_batch, gsc_submit_sitemap, ….
- 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