mcp-gsc-tool
Provides access to Google APIs including Search Console, Indexing, and PageSpeed Insights for SEO analytics, indexing, sitemap submission, and performance metrics.
Provides tools for querying Search Console performance data, inspecting URLs, managing sitemaps and sites, and submitting URLs for indexing.
Provides Core Web Vitals field data and Lighthouse lab metrics via the PageSpeed Insights API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-gsc-tool
Google Search Console MCP server for Claude Code CLI, run with bun. 35 tools (42 with Bing and Yandex) and 3 guided prompts, one runtime dependency (zod), runs locally: your data goes straight from your machine to Google.
Credits. A fork of Suganthan's GSC MCP by Suganthan Mohanadasan (Apache 2.0). The analysis tools are his work; this fork trims it to Claude Code + bun, merges the open community PRs and adds security fixes. See NOTICE.
Install
Needs bun and the claude CLI.
git clone <this repository> mcp-gsc-tool
cd mcp-gsc-tool && bun install && bun run buildRelated MCP server: gsc-ga4-mcp
Connect to Google (pick one)
A. OAuth: your own Google account (easiest)
In Google Cloud console, create or select a project, then APIs & Services > Library: enable Google Search Console API.
APIs & Services > OAuth consent screen: user type External, fill in the app name and your email, and add your Google account under Test users.
Credentials > Create credentials > OAuth client ID > Desktop app, then download the JSON.
Run the wizard. It opens the browser, verifies access, lets you pick a property, and registers the server with Claude Code:
bun dist/mcp-gsc-tool.js setup --secrets ~/Downloads/client_secret_XXXX.json
The token is cached owner-only in ~/.claude/mcp-gsc-tool/. Re-run with --reauth to sign in again or change scopes.
Note: while the consent screen is in Testing mode, Google expires refresh tokens after 7 days. Click Publish app on the consent screen to avoid weekly sign-ins (no verification is needed for your own use).
B. Service account: servers, CI, many sites
Enable Google Search Console API as above.
IAM & Admin > Service accounts > Create, then Keys > Add key > JSON, and download it.
In Search Console, go to Settings > Users and permissions > Add user and add the service account's email. Full is enough to read; Owner is needed for
submit_sitemap,submit_urlandsubmit_batch.Register it:
claude mcp add mcp-gsc-tool --scope user \ -e GSC_KEY_FILE=/path/to/key.json -e GSC_SITE_URL=sc-domain:example.com \ -- bun --no-env-file /path/to/mcp-gsc-tool/dist/mcp-gsc-tool.js
URL submission (optional). submit_url and submit_batch also need the Web Search Indexing API enabled, and OAuth needs full scopes (setup --scopes full).
Then start claude and ask something like "What are my quick wins?" or "Which pages lost traffic this month and why?".
Configuration
Variable | Purpose |
| Default property: |
|
|
| Service account JSON key |
| OAuth client JSON (or |
|
|
| Comma-separated properties for |
|
|
| Bing Webmaster API key (Bing Webmaster Tools > Settings > API access). Enables the |
| Bing site as verified, e.g. |
| Yandex OAuth token with |
| Yandex host, e.g. |
| PageSpeed Insights key. Not needed with OAuth: enable PageSpeed Insights API in your Cloud project and sign in with |
| Where the OAuth token is cached (default |
setup copies any of the optional variables above that are set in your shell into the Claude Code entry, e.g. BING_API_KEY=... bun dist/mcp-gsc-tool.js setup --secrets .... To add one later: claude mcp remove mcp-gsc-tool and register again.
Every tool that queries a property also accepts site_url per call (Bing / Yandex tools: site), so one server covers all sites your credentials can see. list_sites lists them for all three engines; a bare example.com is matched to the site as verified in Bing / Yandex, and compare_engines with site_url uses that site on every engine.
Setup flags: --client code|print, --scopes readonly|full, --site <property>, --secrets <path>, --reauth, --force, --dry-run.
Tools
Analysis | |
| Clicks, impressions, CTR and position vs the previous period |
| Queries at positions 4–15 with high impressions |
| Pages whose CTR is below expected for their position |
| What lost traffic: ranking loss, CTR collapse or demand decline |
| Demand with no real content (position > 20) |
| Queries where several of your pages compete |
| Pages declining three 30-day periods in a row |
| Totals for all pages under a URL path |
| Your CTR per position vs industry benchmarks |
| Severity-rated drops, CTR collapses, disappeared pages |
| Prioritised update / create / consolidate actions |
| Branded vs non-branded split (Google's classification) |
| Google Lens, Circle to Search and image-upload traffic |
| AI Mode / AI Overview conversation queries hiding in your data |
| Custom dimensions, filters, filter lists and search types |
| Health check across several properties |
| Re-queries GSC to check a number before Claude states it |
| Period-over-period or year-over-year: gainers, losers, new and lost queries/pages |
| Queries for one page, or pages ranking for one query |
| Full report (up to 1M rows) written to a local CSV instead of the chat |
| Core Web Vitals: CrUX field data + Lighthouse lab metrics (PageSpeed Insights) |
Indexing | |
| Indexed or not, last crawl, canonical, robots/noindex (batch: up to 50 URLs) |
| Sitemap URLs vs pages with impressions: what is in the sitemap but invisible, and the reverse |
| Sitemap status, submission and removal |
| Properties and permission levels ( |
| Indexing API notifications (200/day quota; officially only JobPosting / BroadcastEvent pages) |
Bing and Yandex | Shown only when their credentials are set |
| Bing queries, daily traffic + crawl stats, URL status, URL submission |
| Yandex queries, SQI + diagnostics + indexing trends, recrawl queue |
| Google vs Bing vs Yandex: totals, click share, top queries (always available; skips unconfigured engines) |
Prompts: weekly_seo_report, diagnose_traffic_drop, indexing_audit.
Read-only API calls retry on 429/5xx with backoff; submissions are never resent. Period comparisons end 3 days back, because the most recent days are still partial. Dates follow Pacific Time, as GSC does.
Development
Command | |
| Run from source |
| Bundle to |
| Type check (TypeScript 7), lint (Biome) and |
| Build and copy the bundle to |
Changelog (this fork)
Claude Code CLI + bun only. Removed the report generator, image tools and Claude Desktop packaging.
Only one runtime dependency,
zod. The Google API client and the MCP server are small in-house modules (src/google.ts,src/mcp.ts). Startup is 0.03 s.Merged upstream PRs #16–#20. Fixed issues #9, #12 and #15.
Security: OAuth
statecheck and PKCE, owner-only token file,--no-env-file, URL-prefix property fallback only on a 403, duplicate API requests merged.
For the original project's history, see its README.
Licence
Apache 2.0. See LICENSE and NOTICE. Original work © Suganthan Mohanadasan. If it's useful, star the original project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
SEO research, Search Console, GA4 and PPC tools for Claude and ChatGPT.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Google Search Console, Bing, GA4 and SEO reports for Claude, ChatGPT and any MCP client
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to access Google Search Console data including search performance, URL indexation, sitemaps, and built-in SEO analysis tools such as trending queries, cannibalization detection, and traffic drop diagnostics.10-
- AlicenseCqualityCmaintenanceEnables Claude Code to read Google Search Console and GA4 data locally with read-only access, and provides combined SEO analysis tools for comparing datasets and identifying opportunities.20MIT
- AlicenseAqualityBmaintenanceEnables querying Google Search Console search analytics (clicks, impressions, CTR, position) with flexible dimensions, inspecting URL indexing and mobile usability, and listing verified properties, all via Claude.492 npm2MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables users to query Google Search Console data interactively from Claude Desktop and via CLI, providing search analytics, period comparisons, branded split, indexing status, sitemaps, and full CSV exports.-