gsc-mcp
Authenticates with a Google service account to read Search Console performance and URL inspection data and, optionally, PageSpeed Insights metrics from Google's APIs.
Full integration with the Search Console API: list properties, query clicks/impressions/CTR/position by query, page, country, device and date (with grouping, brand splits and exports), compare periods, find quick wins, cannibalization and CTR anomalies, inspect URLs in bulk, audit coverage, and list, submit or delete sitemaps.
Provides Core Web Vitals (LCP, INP, CLS, FCP, TTFB) for real users from CrUX for a URL and its origin, plus the Lighthouse performance score, 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.
gsc-mcp
MCP server for Google Search Console. Lets Claude (or any MCP client) query search performance, inspect URLs and manage sitemaps.
Tools
Tool | What it does |
| Properties the account can access |
| Clicks, impressions, CTR, position by query/page/country/device/date (~16 months, ~2-3 day lag). Options: |
| Index status, coverage, canonical, mobile usability, rich results (2,000/day per property) |
| Two date ranges (MoM, YoY; previous period defaults to the same length right before) with totals, deltas and per-query/page changes, marking new and lost rows. Supports |
| Inspect up to 10 URLs at once: verdict, coverage, last crawl, canonical mismatch |
| Queries (or query+page) at position 4–20 with many impressions, optional max CTR |
| Queries where 2+ of your pages compete, with each page's impression share (top 5 pages per query by default) |
| Pages or queries whose CTR is far below the site's own CTR for that position, sorted by missed clicks |
| Pages that lost their impressions since the previous period, fetched live and flagged when now 4xx, 5xx, redirecting or unreachable |
| Submitted sitemaps with errors, warnings and submitted counts. Google no longer fills the indexed count, so it is left out |
| Sitemaps declared in robots.txt (and their children) that aren't submitted in Search Console |
| Read sitemap XML (Search Console and robots.txt sitemaps, following indexes): list or filter URLs, check if URLs are listed |
| Estimate indexing at scale: inspect a random sample of sitemap URLs (or pages with impressions) and total by coverage state, with a 95% range |
| Fetch live pages (optionally as Googlebot): status, redirects, X-Robots-Tag, meta robots, canonical, title, meta description and length, H1 count, word count, internal links, JSON-LD types and validity, lang, hreflang (optionally checks return links), robots.txt verdict |
| Crawl internal links with page and depth limits: status codes, broken links and a page linking to them, fewest incoming links, noindex/canonicalized pages, sitemap URLs the crawl never reached (likely orphans) |
| Core Web Vitals from PageSpeed Insights: real-user (CrUX) LCP, INP, CLS, FCP, TTFB for the URL and origin, plus the Lighthouse score |
| Submit or resubmit a sitemap (hidden when |
| Remove a sitemap from Search Console (hidden when |
Results over 100,000 characters are written to a JSON file (in GSC_EXPORT_DIR, default the system temp folder gsc-mcp-exports) and the reply gives its path.
Tools that fetch pages or sitemaps only fetch URLs inside the property (its domain and subdomains, or its URL prefix's origin).
Requesting indexing is not available: Google offers no API for it.
Related MCP server: Google Search Console MCP Server
Setup
About 10 minutes, once. You need a Google account with access to the Search Console properties.
1. Create a Google Cloud project
Open console.cloud.google.com.
Click the project picker at the top → New project → name it (e.g.
gsc-mcp) → Create. Make sure it is selected.
2. Enable the Search Console API
Go to APIs & Services → Library.
Search Google Search Console API → open it → Enable.
Optional, for
page_speed: also enable PageSpeed Insights API.
3. Create a service account and key
Go to IAM & Admin → Service Accounts → Create service account.
Name it (e.g.
gsc-mcp) → Create and continue → skip the optional role and user steps → Done.Click the new service account → Keys tab → Add key → Create new key → JSON → Create. A
.jsonfile downloads.Copy the service account's email (
gsc-mcp@<project>.iam.gserviceaccount.com); you need it in step 5.
If key creation is blocked, your Google Workspace has the iam.disableServiceAccountKeyCreation policy; use a personal Google Cloud project or ask your admin.
4. Move the key to the default location
mkdir -p ~/.config/gsc-mcp
mv ~/Downloads/<downloaded-file>.json ~/.config/gsc-mcp/key.json
chmod 600 ~/.config/gsc-mcp/key.jsonKeep it out of any git repo. Anyone with this file can read the properties you grant it.
5. Give the service account access in Search Console
For each property:
Open Search Console → pick the property.
Settings → Users and permissions → Add user.
Paste the service account email. Permission: Full to submit/delete sitemaps, Restricted for read-only.
6. Add to Claude Code
claude mcp add gsc -- npx -y --allow-git=all github:afiqiqmal/gsc-mcpnpm 12+ blocks git installs by default, hence --allow-git=all. Pin a release with github:afiqiqmal/gsc-mcp#v0.4.0.
7. Check it works
Start Claude Code, run /mcp and confirm gsc is connected, then ask "list my Search Console sites". An empty list means step 5 was missed for that property.
Other MCP clients
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "--allow-git=all", "github:afiqiqmal/gsc-mcp"]
}
}
}Environment
All optional.
Variable | Description |
| Key path, if not at |
| Used when neither |
|
|
| Folder for exported files (default: system temp folder |
| API key for |
Key lookup order: GSC_KEY_FILE → ~/.config/gsc-mcp/key.json (or $XDG_CONFIG_HOME/gsc-mcp/key.json) → GOOGLE_APPLICATION_CREDENTIALS.
Development
npm install
npm run build # commit dist/ — npx installs from GitHub use it directly
npm testLicense
MIT
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
Ask Google Search Console in plain language: queries, pages, clicks and rankings. Read-only.
Read-only Google Search Console MCP server for AI assistants.
Ask Google Search Console in plain language. Hosted, free, no Google Cloud project.
Read-only MCP for your own Google Search Console: traffic drops, new queries, URL indexing, sitemaps
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceConnects Google Search Console to MCP clients to query search analytics, manage sitemaps, and perform URL inspections. It enables users to identify SEO opportunities and generate performance reports through natural language interactions.105 npm4MIT
- FlicenseNot gradedqualityDmaintenanceEnables querying Google Search Console data such as search analytics and site list via natural language.-
- AlicenseAqualityFmaintenanceEnables natural language interaction with Google Search Console data, including property management, search analytics, URL inspection, and sitemap management via MCP.21MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural-language querying of Google Search Console data, including search analytics, site properties, URL inspection, and sitemap status, through MCP-compatible clients like ChatGPT and Claude.MIT