Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.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
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).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
.mcp.json (project) or %USERPROFILE%\.claude.json (global).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
.vscode\mcp.json.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
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.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
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.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.
| Name | Required | Description |
|---|---|---|
| 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_ |