Purpose
Google Search Console MCP is an MCP server used to connect AI applications to Google Search Console. It lets users investigate search performance, check whether a URL has been indexed, view sitemaps, and submit or remove sitemaps when needed, all within a conversation with an AI assistant.
Main capabilities
The server provides 18 tools: seven of them are used to read properties, search data, sitemaps, and index status; two tools are used to add properties or submit sitemaps; three tools can remove data or call arbitrary API methods.
- Search data analysis: query clicks, impressions, click-through rate (CTR), and average position by date, page, query, country, device, or search appearance.
- Index status check: use URL inspection to learn Google's current index status for a URL, including index verdict, coverage, crawl information, and canonical URL. Note that this does not force a page into the index.
- Sitemap management: view submitted sitemaps and their warnings and errors, and resubmit them after confirmation; you can also submit or remove sitemaps as needed.
- Property management: list, add, or remove Search Console properties. Adding a property only completes registration; ownership verification still needs to be completed in the Search Console interface or the Site Verification API.
- Exact property identification: domain properties and URL-prefix properties are different objects. For example, https://example.com/、https://www.example.com/ and sc-domain:example.com are independent of each other, and you must use the exact value returned by list_sites, otherwise a 403 or 404 will be returned.
How to use
Requires Node.js 20+ and a Google account. No credentials are needed during installation; the server completes the connection from the conversation.
- Add the server to your AI application. Add the server in the application settings using the command npx -y mcp-google-search-console@latest. The configuration location may differ across AI clients:
- Some clients use Settings → Extensions, or Settings → MCP Servers, select STDIO, and enter the command and environment variables.
- Older builds of Claude Desktop can fall back to a JSON stdio configuration, saved on macOS to ~/Library/Application Support/Claude/claude_desktop_config.json and on Windows to %APPDATA%\Claude\claude_desktop_config.json.
- Cursor can be added to ~/.cursor/mcp.json (macOS/Linux) or %USERPROFILE%.cursor\mcp.json (Windows).
- VS Code can run MCP: Open User Configuration and add the configuration, then check with MCP: List Servers.
- Connect in the conversation: say "connect Google Search Console", and the assistant will guide you through OAuth client creation and authorization, with no need to edit configuration files and no need to restart.
- Start with read-only questions, for example: "Show my property's top 20 search queries over the past 28 days, including clicks and CTR."
Connect from the conversation (recommended)
- setup_instructions prints a checklist: create or select a Google Cloud project, enable the Google Search Console API, configure the consent screen, and create a desktop app OAuth client.
- Download the JSON for that client ("Download JSON") and provide the path to the assistant; set_client stores it in a way that only the owner can read, and the key does not pass through the conversation.
- start_login returns a Google consent link. Open and approve it on this machine; the authorization code is returned through a one-time listener on 127.0.0.1 (PKCE) and does not pass through the chat.
- finish_login exchanges the authorization code and saves the token to ~/.config/mcp-google-search-console/credentials.json (permissions 0600), and verifies it with a real Google Search Console API call.
- The token is re-read on every call, so the connection takes effect immediately without restarting the AI application. auth_status shows what is connected, and logout revokes and deletes it.
Environment variable method (CI, unattended installation)
- Create or select a Google Cloud project and enable the Google Search Console API.
- Configure the OAuth consent screen and create a desktop app OAuth client.
- Use the OAuth 2.0 Playground's "Use your own OAuth credentials" to authorize a Google account that can access the properties and obtain a refresh token.
- Use https://www.googleapis.com/auth/webmasters to include sitemaps and property changes; use only when read-only access is explicitly required https://www.googleapis.com/auth/webmasters.readonly。
- Refresh tokens in testing mode may expire after seven days. Publish the OAuth app or use an internal Workspace app for long-term access. Treat the client secret and refresh token as passwords.
All environment variables are optional; when none are provided, the server connects from the conversation. One of the OAuth trio or an access token must be provided.
When to use
- Find search opportunities: which queries and pages brought the most clicks this month? Which pages lost clicks compared with the previous period? Show queries that contain mcp and have an average position below 10.
- Check indexing status and sitemaps: is this URL indexed? Show coverage, crawl, and canonical information. Which submitted sitemaps have errors or warnings? Resubmit this sitemap after showing the current status.
- Manage properties carefully: list the Search Console properties I can access; add this exact property value (I will verify ownership separately); remove this property from my account after confirmation.
Limitations
- URL inspection does not force a page into the index; adding a property does not complete ownership verification.
- Search data uses Pacific Time; end_date is inclusive, and final analytics data usually lags by two to three days. data_state: "all" may include fresher, still-changing data rows.
- The AI client controls confirmation prompts. The server marks read, write, and destructive calls so the client can distinguish checks from actual changes.
- Privacy: the local server calls Google and sends anonymous telemetry, including installation ID, version, and tool names, but never OAuth tokens, property data, tool parameters, or prompts. ASKADS_TELEMETRY=0 can be set to opt out.
- API limits: URL inspection is limited to 2,000 per property per day and 600 per minute. Analytics returns at most 25,000 rows per request; long-tail anonymized queries are never returned. Use pagination, and do not inspect an entire site URL by URL.
- No background monitoring: the server works only when called. If the AI application supports scheduled tasks, it can periodically check sitemaps or important URLs.
- OAuth 2.0 is required; an API key is not enough.
- The repository currently publishes an npm stdio package and does not include an .mcpb bundle.
- Pricing information is not provided in the materials.