Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"gsc": {
"env": {
"GOOGLE_GSC_CREDENTIALS_PATH": "/path/to/credentials.json"
},
"args": [
"-y",
"mcp-gsc@latest"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Google Search Console MCP server — query search analytics, inspect URLs, manage sitemaps & more via natural language. Built with Bun + TypeScript. Works with Claude, Cursor, and any MCP client.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'mcp-gsc' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked mcp-gsc against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in analytics / marketing
MCP Server for GCP environment for interacting with various Observability APIs.
DataForSEO API modelcontextprotocol server
MCP server for InsightSentry financial data API - market data, options, screeners, and more
MCP server for the PostFast API — schedule and manage social media posts via AI tools
MCP Security Weekly
Get CVE alerts and security updates for io.github.pijusz/mcp-gsc and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Google Search Console MCP server — query search analytics, inspect URLs, manage sitemaps & more via natural language.
Built with Bun + TypeScript. Works with Claude, Cursor, and any MCP client.
You need OAuth client credentials from Google Cloud Console.
Go to Google Cloud Console
Create a project (or select existing)
Enable the Google Search Console API:
Configure OAuth consent screen (if not done):
https://www.googleapis.com/auth/webmastersCreate credentials:
Set the credentials path:
export GOOGLE_GSC_CREDENTIALS_PATH=/path/to/credentials.json
npx mcp-gsc setup
This opens your browser for OAuth consent, saves a refresh token, verifies access to your GSC properties, and prints config snippets for your MCP client.
claude mcp add gsc --scope user --transport stdio \
-e GOOGLE_GSC_CREDENTIALS_PATH=/path/to/credentials.json \
-- npx -y mcp-gsc@latest
That's it. Restart Claude Code and the tools are available.
Also works with
bunx mcp-gsc@latestif you have Bun. Requires Node 18+ when running vianpx.
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-gsc@latest"],
"env": {
"GOOGLE_GSC_CREDENTIALS_PATH": "/path/to/credentials.json"
}
}
}
}
Add to ~/.codex/config.toml (TOML, not JSON):
[mcp_servers.gsc]
command = "npx"
args = ["-y", "mcp-gsc@latest"]
startup_timeout_sec = 30
env = { GOOGLE_GSC_CREDENTIALS_PATH = "/path/to/credentials.json" }
Codex defaults to a 10s startup timeout, which is often too short for a cold
npxfetch. Bumpstartup_timeout_sec(30 is safe) or install the package globally (npm i -g mcp-gsc) and usecommand = "mcp-gsc"instead.
For server-to-server auth without browser-based OAuth:
GOOGLE_GSC_CREDENTIALS_PATH to the key file — auth type is auto-detected| Tool | Description |
|---|---|
list_properties | List all GSC properties with permission levels |
get_property_details | Verification info, ownership, permissions for a property |
| Tool | Description |
|---|---|
search_analytics | Query search performance (clicks, impressions, CTR, position) with dimensions, filters, and brand segmentation |
Dimensions: query, page, country, device, date, searchAppearance, hour
Types: web, image, video, news, discover, googleNews
Note: searchAppearance cannot combine with query or page. hour requires data_state="hourly_all" (last 10 days only). Country codes are ISO 3166-1 alpha-3 (usa, gbr, deu).
| Tool | Description |
|---|---|
list_sitemaps | List sitemaps with status, type, indexed counts, errors |
get_sitemap | Detailed sitemap info with content breakdown |
| Tool | Description |
|---|---|
inspect_url | URL indexing status, cra |