google-search-console-mcp is a Model Context Protocol (MCP)-based server for connecting to Google Search Console—the service that tells you how Google views your website—and the server can both read it and configure it. MCP clients such as Claude Code, Claude Desktop, or Codex can use it to create properties and prove ownership, submit and refresh sitemaps, query the index status of any URL, and query full Performance reports. Irreversible operations are first handed over for human confirmation, and write tools can be fully disabled.
Main capabilities and features:
-
Number of tools: provides up to 21 tools. Via GSC_ALLOW_TOOLS=essential, a curated five-tool set can be registered; a model's reliability in choosing the correct tool from five tools is far higher than from 21. essential includes list_sites, get_site, list_sitemaps, query_search_analytics, and inspect_url, covering everything needed to view properties, and does not include any modification operations. If an item in GSC_ALLOW_TOOLS does not match any tool, the server stops and lists the real names.
-
Can actually create usable properties: obtaining a property requires completing four steps in a fixed order—obtain a verification token, place it in DNS or a page, verify ownership, add the property—and Google's API does not enforce this order. If sites.add is called first, it will succeed, but it will leave behind a property that appears in all lists but returns 403 when accessing any data; it looks like a permissions error, but it is not. setup_site reports which step is missing and gives the exact DNS record to paste. A server that only exposes sites.add can only add properties that someone else has already manually verified.
-
Covers three APIs, not one: Search Console v1 has ten methods, but does not include ownership. Site Verification is a separate service with its own scope, its own host, and an incompatible way of naming the same site—sc-domain:example.com there is {type: INET_DOMAIN, identifier: example.com}; passing the property spelling directly will be accepted, and it will verify a domain literally called sc-domain:example.com. The Indexing API is the third. All three are covered, and the conversions between them are in src/site-identity.ts.
-
Numbers are correct: search analytics are returned in table form with totals, where CTR is calculated from the totals, not by averaging the rows; average position is weighted by impressions. Without weighting, a thousand rare queries ranked 80th would pull a property with a true average of 12 up into the nineties. The results also explicitly state that when using the query dimension, the rows will not sum to the property total—Google hides rare queries for anonymity, usually accounting for one third or more of all impressions, and printing a total without this note means people will cite that number.
-
Understands the sharp edges of these APIs:https://example.com/ The trailing slash is required; omitting it causes a 403. Domain properties and URL-prefix properties on the same site are different properties with different data, so a bare hostname is rejected rather than guessed. Days are counted in Pacific Time, so last7days computed in UTC requests a day for which Google has no data. The hour dimension silently returns empty without dataState: HOURLY_ALL. Google omits empty arrays entirely, so a new credential's property list arrives as {}. The Indexing API returns 200 for any URL you own but only acts on JobPosting and BroadcastEvent pages.
Usage:
- Requires Node.js 22 or newer (or the container image).
- Requires a Google credential—a service account key, an OAuth2 refresh token, or Application Default Credentials.
- Requires the APIs you intend to use to be enabled in a Google Cloud project: the Search Console API, plus the separate Site Verification API and Indexing API.
- No credential is required at server startup to list its tools; every call afterward fails with setup instructions rather than a Google error. This is intentional so that registries and sandbox inspectors can introspect it.
- Credentials are tried in order—explicit takes precedence over environment. An incomplete OAuth triple is a startup error, not a reason to fall back to Application Default Credentials, which would silently run the server as a machine-logged-in account.
- A service account is recommended: it can only see the properties you explicitly add it to, and revoking it does not affect anyone's Google account. Add its client_email in Search Console's Settings → Users and permissions, or grant it ownership via verify_site. Note that the Indexing API requires owner, not full user.
- An OAuth2 refresh token acts as the consenting person and can see everything they can see. Its scope is fixed at consent time and cannot be expanded afterward.
Using via mcp-hub:
Clients that cannot spawn local processes—ChatGPT connectors, Claude on the web, Cursor, LibreChat — google-search-console-mcp accessible via mcp-hub: one container serves many stdio MCP servers over Streamable HTTP, behind a single-password OAuth 2.1 login, plus long-lived tokens for clients that cannot do OAuth. Its /hub endpoint places all servers behind six meta-tools, so one connector can reach every server without N×tool schemas appearing in the model context, and it supports both protocol revisions at once.
Other technical details:
- site_url is optional for every tool that accepts it when GSC_SITE_URL is set.
- Every tool declares an outputSchema and answers with structuredContent alongside a text block, so clients can use results without parsing prose. query_search_analytics keeps the rendered table in the text block and puts the rows themselves in the structured part.
- Every tool that reports Google data carries untrusted: true and source: "search-console" fields. Search queries are strings the public types into Google, and page titles come from crawled sites. Six tools do not have this marking, because their answers are properties the server was given and facts it established: add_site, delete_site, submit_sitemap, submit_sitemaps, delete_sitemap, and unverify_site.
- Four operations ask a human: delete_site, delete_sitemap, unverify_site, and update_site_owners pop up a real dialog via MCP elicitation when the client supports it, and the model cannot answer on their behalf. When the client does not support it, they refuse the first call and return a short-lived token bound to those exact parameters, and state clearly, rather than implying, that someone approved it. Either way, approval is bound to the resource, and approval issued for one resource cannot be replayed to another. update_site_owners is in this list because the list it accepts is the complete owner list afterward — a well-formed call removes everyone else, and hereNothing can restore them. ELICITATION=false deliberately takes the fallback path; it never removes protections.
- Everything from the API is marked untrusted.
- The allowlist has no exemptions: GSC_ALLOWED_SITES is enforced where tools name resources, and separately on the two forms that do not name resources: the Indexing API tool matches page URLs against the list the way Search Console scopes resources, and the verification tool resolves its opaque resource id to a resource before acting. Both lists filter to the allowlist and state how many entries they withheld.
- Read-only goes deeper than the tool layer: GSC_READ_ONLY=true does not register write tools and requests webmasters.readonly instead of webmasters, so even if a tool tried to write it would be impossible.
- Credentials never appear in output: they are removed from the environment after startup, never sent to redirect targets, and rejected values are described rather than echoed, including mistakenly pasting a key into GSC_ALLOW_TOOLS, GSC_SITE_URL, or ELICITATION, and including the access token itself, which is checked before it becomes a header.
- What Google sends is constrained to one shape: the response's status is decided before the body is read, every field the result promises is checked at the boundary—rows that are not objects are dropped, an empty site block does not count as a site, an empty 200 is an empty record—and text has control characters stripped on output. Results are budgeted in both channels, caller strings have caps, and batch calls stop after two minutes and state how far they got.
Deliberately unexposed feature: urlTestingTools.mobileFriendlyTest is still in Google's discovery document, but the service behind it was shut down in December 2023. Providing a tool for it would only return errors, so there is no such tool.
Limitations:
- Requires Node.js 22 or newer (or the container image).
- Requires Google credentials and the corresponding APIs enabled in a Google Cloud project.
- Some operations are irreversible, require human confirmation, and approval is bound to a specific resource and cannot be replayed across resources.
- When using query dimensions, rows do not sum to the resource total, and Google hides rare queries; totals without explanation can be misinterpreted.
- The Indexing API returns 200 for any owned URL, but only takes action for JobPosting and BroadcastEvent pages.
- mobileFriendlyTest is not provided because the service has been shut down.
- All data from the API is marked untrusted because search queries, page titles, and crawl diagnostics come from external input.