Google Search Console MCP server β query performance, sitemaps, indexing & more
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.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Gsc.
list_propertiesList all GSC properties with permission levels
get_property_detailsVerification info, ownership, permissions for a property
search_analyticsQuery search performance (clicks, impressions, CTR, position) with dimensions, filters, and brand segmentation
list_sitemapsList sitemaps with status, type, indexed counts, errors
get_sitemapDetailed sitemap info with content breakdown
inspect_urlURL indexing status, crawl info, rich results, canonicals
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:
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.
That's it. Restart Claude Code and the tools are available.
Also works with
bunx mcp-gsc@latestif you have Bun. Requires Node 22+ when running vianpx.
Add to your claude_desktop_config.json:
Add to ~/.codex/config.toml (TOML, not 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, crawl info, rich results, canonicals |
batch_inspect_urls | Inspect up to 10 URLs at once with categorized results |
Rate limits: 600/minute + 2,000/day per site (tracked automatically).
| Tool | Description |
|---|---|
export_csv | Export full search analytics to CSV file (auto-paginates, up to 25K rows) |
Enable with GOOGLE_GSC_ENABLE_EXTENDED_TOOLS=true:
| Tool | Description |
|---|---|
performance_overview | Aggregate metrics + daily trend breakdown |
compare_periods | Compare two date ranges with delta calculations |
top_movers | Biggest gains and drops between periods |
device_country_breakdown | Performance by device and/or country |
| Tool | Description |
|---|---|
quick_wins | High-impression, low-CTR queries in striking distance (position 4-20) |
cannibalization | Multiple pages competing for the same query |
opportunity_finder | Emerging queries, growing impressions with low CTR, declining performers |
position_tracking | Position changes over time for specific queries/pages |
ctr_anomalies | Queries with abnormal CTR relative to position |
content_decay | Pages/queries with impressions dropping >50% from historical peak |
weekly_seo_report | All-in-one report: overview + quick wins + top movers |
| Tool | Description |
|---|---|
indexing_coverage | Batch URL inspection with categorized indexing status |
sitemap_health | Sitemap error patterns, freshness, indexed vs submitted ratio |
Enable with GOOGLE_GSC_ENABLE_WRITES=true:
| Tool | Description |
|---|---|
add_site | Add a new site to GSC |
delete_site | Remove a site from GSC |
submit_sitemap | Submit a new sitemap |
delete_sitemap | Remove/unsubmit a sitemap |
request_indexing | Ask Google to crawl a URL via the Indexing API |
get_indexing_status | When a URL was last submitted for indexing |
Indexing API prerequisites. The last two use a different Google API to the rest of this server, so they need three things the other tools don't:
- Re-run
mcp-gsc setupβ credentials created before this feature lack theauth/indexingscope. The tools say so explicitly if yours do.- Enable the Indexing API on your Google Cloud project β console.cloud.google.com/apis/library/indexing.googleapis.com
- Be a verified owner of the property in Search Console. Full-user access is not enough.
Google officially supports the Indexing API only for pages carrying
JobPostingorBroadcastEventstructured data, with a default quota of 200 URLs/day. It requests a crawl β it never guarantees indexing.
| Variable | Required | Default | Description |
|---|---|---|---|
GOOGLE_GSC_CREDENTIALS_PATH | Yes | β | Path to OAuth client JSON or service account key |
GOOGLE_GSC_TOKEN_PATH | No | Derived | Path to cached OAuth token (default: *_token.json next to credentials) |
GOOGLE_GSC_PROPERTY | No | β | Default property URL (e.g., sc-domain:example.com). Accepts bare domains. |
GOOGLE_GSC_ENABLE_WRITES | No | false | Enable write tools |
GOOGLE_GSC_ENABLE_EXTENDED_TOOLS | No | false | Enable extended analytics tools (13 extra) |
GOOGLE_GSC_ENV_FILE | No | .env | Path to .env file |
DEBUG | No | β | Enable debug logging |
Property resolution: You can pass bare domains like example.com β the server auto-resolves to sc-domain:example.com or https://example.com/ by matching against your verified properties.
Ask your AI assistant:
Using npx @latest (recommended): You always get the latest version.
Using a binary: The server checks for new releases on startup and logs to stderr if outdated.
Requires Bun.
MIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
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-gsc)<a href="https://allmcps.com/mcp/mcp-gsc"><img src="https://allmcps.com/api/badge/mcp-gsc?style=directory" alt="MCP Gsc on AllMCPs" /></a>