Secure MCP server for Google Search Console analytics, sitemaps, and URL inspection
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Secure MCP server for Google Search Console. Query search analytics (clicks, impressions, CTR, position), manage sitemaps, inspect URL indexing status, and manage site properties.
This server supports two authentication methods: browser-based OAuth (recommended) and environment variable (fallback).
Browser-based OAuth handles token exchange automatically. When credentials expire, visit the /auth URL and click through Google's consent screen β no manual code exchange needed.
https://www.googleapis.com/auth/webmastershttps://mcp-gsc.example.com/oauth2callback)Create an env file:
Start the server with a persistent volume for credentials:
Visit https://mcp-gsc.example.com/auth in your browser. You'll be redirected to Google's consent screen. Grant access and the server will save credentials automatically.
When tokens expire, any tool call will return the /auth URL. Click it to re-authenticate β no container restart needed.
If you prefer static credentials or can't expose a callback URL, set GSC_REFRESH_TOKEN in your env file. See the manual OAuth flow below.
code= value from the redirect URLrefresh_token from the response and add GSC_REFRESH_TOKEN=... to your env file.The server checks for credentials in this order:
GSC_CREDENTIALS_DIR/credentials.json (written by the browser-based flow)GSC_REFRESH_TOKEN (fallback)On each API call, the server exchanges the refresh token for a short-lived access token (~1 hour), cached in memory and refreshed automatically. Updated tokens are persisted to the credentials file for reuse across container restarts.
| Category | Count | Tools |
|---|---|---|
| Sites | 4 | list_sites, get_site, add_site, delete_site |
| Search Analytics | 1 | query_search_analytics |
| Sitemaps | 4 | list_sitemaps, get_sitemap, submit_sitemap, delete_sitemap |
| URL Inspection | 1 | inspect_url |
SecretStr (never logged)0o600 permissions (atomic writes)extra="forbid"See SECURITY.md for the full security design document.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-google-search-console)<a href="https://allmcps.com/mcp/mcp-google-search-console"><img src="https://allmcps.com/api/badge/mcp-google-search-console?style=directory" alt="MCP Google Search Console on AllMCPs" /></a>