Google Search Console for AI agents: search analytics, sitemaps, 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.
Google Search Console for AI agents: search performance, striking-distance keywords, sitemaps, and URL inspection. SEO automation you can hand to an assistant.
An MCP server for Google Search Console. It gives an AI assistant the data and the levers behind organic search: how queries and pages perform, which keywords are one nudge away from page one, the state of your sitemaps, and whether a specific URL is indexed β plus the ability to submit or remove sitemaps.
Why this exists. Search Console is where SEO actually happens, but its UI is click-heavy and its data is hard to act on at a glance. The single most useful view β queries ranking in striking distance of page one β is not even a built-in report; you have to filter and eyeball it. This server puts that view, and the rest of the funnel, in front of an agent so the boring parts of SEO (find the near-miss keywords, check index status, keep sitemaps healthy) can be automated.
It was built to run SEO for two sites β a podcast and a personal site β but nothing here is specific to them. Point it at any property you have verified.
| Tool | Access | What it returns | API |
|---|---|---|---|
gsc_list_sites | read | Verified properties + permission level | GET webmasters/v3/sites |
gsc_search_analytics | read | Clicks/impressions/CTR/position by query, page, country, device, or date | POST .../searchAnalytics/query |
gsc_striking_distance | read | Queries at avg position 8β25 with enough impressions β the optimization list | computed from search analytics |
gsc_list_sitemaps | read | Submitted sitemaps with status, last download, warning/error counts | GET .../sitemaps |
gsc_submit_sitemap | write | Submits/pings a sitemap to Google | PUT .../sitemaps/{feedpath} |
gsc_delete_sitemap | write, destructive | Deregisters a sitemap from Search Console | DELETE .../sitemaps/{feedpath} |
gsc_inspect_url | read | Index status, last crawl, canonical, mobile/rich-results verdicts | POST searchconsole/v1/urlInspection/index:inspect |
Every tool carries MCP read/write annotations, so a client can tell the two write tools apart from the five read-only ones before calling them. Read tools are readOnlyHint: true; gsc_submit_sitemap is a non-destructive write; gsc_delete_sitemap is destructiveHint: true.
List tools default row_limit / limit low (25) to keep responses small β agents pay tokens per response.
This server uses an OAuth installed-app credential (a saved refresh token), not a service account or an API key. It reads the credential from:
The file is google-auth's Credentials.to_json() shape: it contains client_id, client_secret, refresh_token, and scopes. The server refreshes short-lived access tokens against Google's token endpoint directly with fetch β no heavy googleapis dependency.
To create the file yourself if you do not already have it:
client_secret.json.~/.config/gws/searchconsole_credentials.json. Any standard google-auth-oauthlib installed-app snippet works β about ten lines, and it opens a browser for a single consent click.The path is shared on purpose: if you already hold a Search Console credential in that location for other tooling, this server reuses it rather than asking you to mint a second one.
https://www.googleapis.com/auth/webmasters.readonly.gsc_submit_sitemap, gsc_delete_sitemap) and URL inspection need the full https://www.googleapis.com/auth/webmasters scope.If your saved credential only has the read-only scope, the read tools work and the write tools return a clear "re-mint with the full scope" error rather than a cryptic 403. Re-running the mint with the full scope upgrades the same file in place; read tools keep working throughout.
Set GSC_CREDENTIALS_PATH to point at a different credential file if you do not use the default location.
The server boots and answers tools/list even when no credential is present, so MCP inspectors can introspect it. Tool calls then return a setup pointer (to stderr at startup, and as the tool result). stdout is reserved for the MCP transport and stays clean.
Add your site at search.google.com/search-console. A Domain property (verified with a DNS TXT record) covers http/https and all subdomains and is the recommended choice. Note the exact property string β gsc_list_sites will show it as sc-domain:example.com (Domain) or https://example.com/ (URL-prefix).
Create ~/.config/gws/searchconsole_credentials.json as described under Authentication, requesting the full webmasters scope if you want the write and URL-inspection tools.
Add to your .mcp.json:
Add to your claude_desktop_config.json:
No env block is needed when the credential is at the default path. Set GSC_CREDENTIALS_PATH if it lives elsewhere.
Ask your assistant: "List my Search Console properties," then "Show me striking-distance keywords for it over the last 28 days."
Read these so you know what the numbers mean and what this can and cannot do.
JobPosting and BroadcastEvent pages, not normal content, and using it for normal pages violates its terms. So there is deliberately no "ask Google to index this page" tool here; for normal pages, requesting indexing is a manual click in the Search Console UI. gsc_submit_sitemap is the supported, API-backed way to nudge crawling.searchAnalytics is capped per call. row_limit caps at 1000 here (the API allows 25,000 with pagination); for very large pulls, page with start_date/dimension filters rather than asking for everything at once.row_limit and inspection volume modest.Run locally:
Tests mock fetch and make no network calls.
Issues and pull requests are welcome. If a Search Console endpoint is worth wrapping as a tool, open an issue describing what it should return and the endpoint it maps to. Keep the contract honest: read tools stay read-only, write tools carry the right annotations, and responses stay compact.
Search Console is one credential family in a wider Google data stack. The siblings, each with its own auth:
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/google-search-console-mcp-server)<a href="https://allmcps.com/mcp/google-search-console-mcp-server"><img src="https://allmcps.com/api/badge/google-search-console-mcp-server?style=directory" alt="Google Search Console MCP Server on AllMCPs" /></a>