mcp-gsc-advanced
by arturseo-geo
README.md
# mcp-gsc-advanced
> Built by **[Artur Ferreira](https://github.com/arturseo-geo)** @ **The GEO Lab** ยท [๐ @TheGEO\_Lab](https://x.com/TheGEO_Lab) ยท [LinkedIn](https://linkedin.com/in/arturgeo) ยท [Reddit](https://www.reddit.com/user/Alternative_Teach_74/)



MCP server for advanced Google Search Console analysis โ keyword cannibalization detection, page-level query deep dive, and rank change tracking.
Extends basic GSC data into actionable SEO intelligence.
## Tools
| Tool | Description |
|------|-------------|
| `detect_cannibalization` | Find queries where 2+ pages compete โ severity scoring, impressions split, consolidation recommendations |
| `page_queries` | All queries driving traffic to a specific page โ sorted by impressions with CTR and position |
| `rank_changes` | Period-over-period position changes โ finds significant gains and losses |
## Features
โ
**GEO-native** โ built alongside the [**GEO Brand Citation Index**](https://thegeolab.net/geo-brand-citation-index/), tracking brand visibility across ChatGPT, Perplexity, and Gemini
## Install
```bash
# Claude Code (service account key file)
claude mcp add gsc-advanced \
-e GOOGLE_SERVICE_ACCOUNT_KEY=/path/to/service-account.json \
-e GSC_SITE_URL=https://yoursite.com/ \
-- npx mcp-gsc-advanced
# Or in .mcp.json
{
"mcpServers": {
"gsc-advanced": {
"command": "npx",
"args": ["mcp-gsc-advanced"],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "/path/to/service-account.json",
"GSC_SITE_URL": "https://yoursite.com/"
}
}
}
}
```
## Authentication
Requires a Google service account with Search Console access.
**Option A:** Set `GOOGLE_SERVICE_ACCOUNT_KEY` to the path of your service account JSON file.
**Option B:** Set `GOOGLE_CLIENT_EMAIL` and `GOOGLE_PRIVATE_KEY` env vars directly.
Then add the service account email as a Full user in Google Search Console.
## Usage
```
> detect keyword cannibalization on my site
> what queries drive traffic to /geo-stack/ page?
> show rank changes in the last 7 days
```
---
## Attributions & Licence
Built and maintained by **[Artur Ferreira](https://github.com/arturseo-geo)** @ **[The GEO Lab](https://thegeolab.net)**.
Email: artur@thegeolab.net
### Best Practice Attribution
This MCP server was built following the open source Best Practice Approach โ
reading community work for inspiration, then writing original content,
and crediting every source.
**Based on:**
- [Model Context Protocol specification](https://modelcontextprotocol.io) by Anthropic
- [MCP SDK](https://github.com/modelcontextprotocol/sdk) (MIT)
**GSC analysis concepts inspired by:**
- [Google Search Console API](https://developers.google.com/webmaster-tools/v1/api_reference_index) โ official documentation
- [Aleyda Solรญs](https://aleydasolis.com/) โ GSC cannibalization detection methodology
- [Kevin Indig / Growth Memo](https://growth-memo.com/) โ GSC query analysis for AI search
**Dependencies:**
- [googleapis](https://github.com/googleapis/google-api-nodejs-client) โ Google APIs Node.js client (Apache 2.0)
All server code is original writing. No files were copied or adapted from any source. MIT licence.
---
Found this useful? โญ Star the repo and connect:
[๐ thegeolab.net](https://thegeolab.net) ยท [๐ @TheGEO_Lab](https://x.com/TheGEO_Lab) ยท [LinkedIn](https://linkedin.com/in/arturgeo) ยท [Reddit](https://www.reddit.com/user/Alternative_Teach_74/)
## Related Repos
- [claude-code-mcps](https://github.com/arturseo-geo/claude-code-mcps) โ All 5 MCP servers in one collection
- [mcp-seo-auditor](https://github.com/arturseo-geo/mcp-seo-auditor) โ On-page SEO audit + JSON-LD validation
- [mcp-serp-intel](https://github.com/arturseo-geo/mcp-serp-intel) โ SERP weak spots, PAA trees, intent comparison
- [mcp-common-crawl](https://github.com/arturseo-geo/mcp-common-crawl) โ Free backlink discovery via Common Crawl
- [mcp-gsc-advanced](https://github.com/arturseo-geo/mcp-gsc-advanced) โ GSC cannibalization, rank changes
- [mcp-wordpress-setup](https://github.com/arturseo-geo/mcp-wordpress-setup) โ WordPress MCP server setup guide
## Licence
MIT โ see LICENSE
---
Built and maintained by **[Artur Ferreira](https://github.com/arturseo-geo)** @ **[The GEO Lab](https://thegeolab.net)** ยท [MIT License](LICENSE)
TDQS
A3.6/5.0
Scored across 3 tools
Disambiguation5/5
Each tool targets a distinct function: detect_cannibalization finds competing pages, page_queries lists queries for a page, rank_changes compares period positions. No overlap in purpose.
Naming Consistency4/5
All names use snake_case with two tokens, but detect_cannibalization is verb_noun while page_queries and rank_changes are noun_verb. Still clear and predictable.
Tool Count4/5
Three tools is reasonable for an advanced GSC server focused on keyword analysis. It covers core needs without being too sparse or cluttered.
Completeness4/5
The set covers key SEO analysis tasks (cannibalization, page queries, rank changes). Minor gaps like aggregate search analytics or filtering are acceptable given the specialized scope.
Maintenance
ActivityInactive
ResponsivenessNo recent community issues