gsc-mcp
Provides tools for querying Google Search Console search performance data using your own Google credentials: listing properties and permissions, running analytics queries (clicks, impressions, CTR, position by query, page, country, device, date, search appearance), inspecting URLs (indexing status, coverage, canonicals, last crawl, robots, mobile usability) individually or in batches, and managing sitemaps and sites (writes only when enabled). Also bundles SEO report tools that return finished, compared numbers — quick wins, traffic drops, content decay, cannibalization, CTR outliers, branded vs non-branded split, arbitrary period comparisons, and a single ranked recommendation list or weekly Markdown report.
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
A self-hosted MCP server for Google Search Console. It gives an AI agent (Claude Code, Hermes, or any MCP client) your search performance data, URL inspection, sitemaps and ready-made SEO reports, using your own Google credentials. Nothing goes through a third party.
It is modelled on the Search Console side of GSC Magic: the same tool names where they
overlap (gsc_query_analytics, gsc_list_sites, report_quick_wins, ...), so prompts written for one work with
the other. It does not cover Bing Webmaster Tools, GA4, IndexNow or Core Web Vitals.
Read-only by default. The write tools only exist when you set
GSC_ALLOW_WRITE=true.Finished numbers, not raw dumps. The
report_*tools do the comparison here and return a short result.Honest limits. Results flag truncation; reports say when data may be incomplete.
Tools
Tool | What it does |
| Every property the account can access, with permission level. Use these exact names elsewhere. |
| One property and your permission on it. |
| Clicks / impressions / CTR / position by query, page, country, device, date or searchAppearance, with filters, search type and row limit (max 25,000). |
| Submitted sitemaps with errors, warnings, submitted vs indexed counts. |
| URL Inspection: indexed?, coverage state, canonicals, last crawl, robots, mobile usability. |
| Up to 100 URLs, throttled, compact status per URL; stops cleanly if Google rate-limits. |
| Query + page pairs at positions 4-20 with many impressions, ranked by estimated extra clicks. |
| Biggest click losers and gainers vs the previous equal period, by page or query. |
| Pages whose clicks fell in each of the last three windows (a steady slide, not a dip). |
| Queries where two or more of your pages share the impressions. |
| Pages with a CTR under half the median at the same position: title / description candidates. |
| Branded vs non-branded clicks, impressions and share, with top queries. |
| Compare any two date ranges: totals for both with differences, plus the biggest page or query losers and gainers. |
| Runs quick wins, CTR outliers, drops, decay and cannibalization together and returns one ranked list with a suggested action, confidence and evidence per item. |
| Last 7 days vs the 7 before: totals, movers, new and lost queries, top recommendations, plus a ready-to-send Markdown |
| How the server authenticates and whether write is on (no Google call). |
| Write, only with |
Every tool declares readOnlyHint / destructiveHint so clients can show what is safe.
Related MCP server: search-console-mcp
Set up Google access
You need a Google Cloud project with the Search Console API enabled, then one of:
A. Service account (recommended)
Google Cloud console, IAM & Admin, Service accounts: create one, then Keys, Add key, JSON. Save the file somewhere private (for example
~/.config/gsc-mcp/service-account.json,chmod 600).In Search Console, Settings, Users and permissions, Add user: add the service account's email (
...@....iam.gserviceaccount.com). Restricted is enough for read-only; use Full if you will enable write tools.Set
GSC_SERVICE_ACCOUNT_FILEto the file path.
B. OAuth (acts as you)
Create an OAuth client (type Desktop app), obtain a refresh token for the scope
https://www.googleapis.com/auth/webmasters.readonly (or .../webmasters for write), and either put
{"client_id","client_secret","refresh_token"} in a file and set GSC_OAUTH_FILE, or set
GSC_OAUTH_CLIENT_ID / GSC_OAUTH_CLIENT_SECRET / GSC_OAUTH_REFRESH_TOKEN.
Credentials are read from files or environment variables only. They are never logged, never part of a tool argument, and error messages carry Google's error code, never secrets.
Install
Requires Node 22+.
git clone https://github.com/Malc75/gsc-mcp.git
cd gsc-mcp
npm install
npm test # 31 tests against a mock Google API; no credentials neededUse with Claude Code
claude mcp add gsc --scope user \
--env GSC_SERVICE_ACCOUNT_FILE=/home/you/.config/gsc-mcp/service-account.json \
-- node /path/to/gsc-mcp/src/index.jsThen /mcp should list gsc. Try: "List my Search Console sites", then "Show quick wins for https://example.com/".
To allow write tools add --env GSC_ALLOW_WRITE=true.
Use with Hermes
hermes mcp add gsc --command node \
--env GSC_SERVICE_ACCOUNT_FILE=/home/you/.config/gsc-mcp/service-account.json \
--args /path/to/gsc-mcp/src/index.js
hermes mcp test gsc(--args must be the last option.) Hermes prefixes the tools, e.g. mcp_gsc_gsc_list_sites. Use
hermes mcp configure gsc to hide tools you do not want the agent to see.
Weekly reports on a schedule
The server does not run anything by itself; your agent calls report_weekly on a schedule. With Hermes:
hermes cron create "0 8 * * 1" \
"Call the gsc report_weekly tool for site https://example.com/ and send me the 'report' text it returns, unchanged. If the call fails, say what error it returned." \
--name "Weekly Search Console report" --deliver telegramThat is a Monday 08:00 summary of the week that ended two days earlier. "Monitoring" here means a weekly comparison, not live alerts. Any scheduler that can call an MCP tool works the same way.
How the recommendations are ranked
report_seo_recommendations and report_weekly order findings by priority_score = estimated clicks x weight:
quick win 1.0, CTR outlier 0.8, traffic drop 0.5, content decay 0.5, cannibalization 0.25. The weights are judgement
calls that reflect how reliable each kind of estimate is, and every result states its method and, per item, its
estimate_basis and confidence. Treat them as a way to choose what to work on first, not as forecasts. The
agent still decides what to do; the tool supplies ranked evidence.
HTTP mode (optional)
For a client that connects to a URL rather than launching a command:
GSC_MCP_TOKEN=$(openssl rand -hex 32) GSC_SERVICE_ACCOUNT_FILE=... node src/index.js --http
# Streamable HTTP at http://127.0.0.1:3333/mcp, header: Authorization: Bearer <token>It binds to 127.0.0.1 by default and refuses to start without GSC_MCP_TOKEN (16+ characters). The
transport is stateless. If you expose it beyond localhost, put TLS in front of it.
Things worth knowing
Data lags about 2 days, so periods end two days ago by default.
data_state: "all"includes fresher, still-changing numbers.Google hides rare queries for privacy. Query totals will be lower than page totals, and brand-split shares cover only clicks with a known query.
Property names must match exactly:
https://example.com/(with trailing slash) for URL-prefix properties,sc-domain:example.comfor domain properties.gsc_list_sitesshows them.URL Inspection quota is about 2,000 per day per property (600 per minute).
Reports read up to 50,000 rows; if a site has more, the result says
data_may_be_incomplete.Quick-wins estimates assume about 10% CTR at position 3. They are a ranking aid, not a forecast.
Troubleshooting
Symptom | Likely cause |
| The service account (or Google account) is not a user on that property, or the Search Console API is not enabled in the Google Cloud project. |
| The property name is not exactly as |
| Wrong or revoked refresh token, or a service-account key that was deleted. |
| Neither |
Development
npm test # unit tests for the report maths (11) + end-to-end tests (20) that run the real server over stdio
# (and HTTP) with a real MCP client against a mock Google APIThe end-to-end tests also verify that the service-account JWT is correctly signed and that the read-only scope is requested unless write is enabled. They have not been run against the real Google API.
Licence
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
AI SEO agent on your Google Search Console data: audits, quick wins, content, WordPress publishing.
Search Console, Google Analytics and keyword data for your AI agent.
AI visibility, Google rankings, Search Console and site audit data for your SEO agent.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides AI agents with read-only access to Google Search Console data, including search analytics, index coverage, and sitemap status. It enables users to query clicks, impressions, and ranking performance or check URL indexing status through natural language.4133 npm9MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access Google Search Console search performance and index health data, including clicks, impressions, rankings, URL inspection, and sitemap management.22 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to perform evidence-backed Google Search Console investigations, including traffic change diagnosis, opportunity discovery, cannibalization detection, and indexing audits, all through read-only access.MIT
- AlicenseAqualityBmaintenanceRank by Ouroboros Apps (https://ouroborosapps.com). SEO rankings from Google Search Console, read-only: top queries and pages, traffic trends, period comparisons, quick wins, dropped pages, and URL inspection. Connect by pasting https://rank.ouroborosapps.com/mcp into Claude, Cursor, Grok, or ChatGPT developer mode (OAuth). Docs: https://ouroborosapps.com/docs/rank9MIT