gsc-mcp-rs
MCP server for Google Search Console. 21 tools for search analytics, keyword opportunities, URL inspection, sitemaps, indexing, and property management.
README
gsc-mcp-rs
A fast, single-binary MCP server for Google Search Console. 21 tools covering search analytics, URL inspection, sitemaps, indexing, and property management.
Features
- 21 tools across 9 groups: analytics, discovery, inspection, sitemaps, indexing, properties, meta
- Both auth methods: OAuth 2.0 (personal) and Service Account (automation)
- Error-as-UI: operational errors return guidance text, never crash the conversation
- Zero runtime deps: single Rust binary, no Node/Python/Java required
- sc-domain: support: domain properties work correctly from day one
Quick Start
Install
cargo install gsc-mcp-rs
Or build from source:
git clone https://github.com/eyupcanakman/gsc-mcp-rs.git
cd gsc-mcp-rs
cargo build --release
Configure Auth
Option 1: OAuth (personal use)
- Go to Google Cloud Console > APIs & Services > Credentials
- Create an OAuth 2.0 Client ID (Desktop app type)
- Enable the Search Console API and Indexing API
- Save credentials:
mkdir -p ~/.config/gsc-mcp-rs
cat > ~/.config/gsc-mcp-rs/oauth_credentials.json << 'EOF'
{"client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET"}
EOF
- Authenticate (opens browser, completes via localhost callback):
gsc-mcp-rs auth
Option 2: Service Account (automation)
- Create a service account in Google Cloud Console
- Grant it access to your Search Console properties (Full permission)
- Download the JSON key and place it:
cp your-key.json ~/.config/gsc-mcp-rs/service_account.json
Or set the environment variable:
export GSC_SERVICE_ACCOUNT_PATH=/path/to/key.json
Add to Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"gsc": {
"command": "gsc-mcp-rs",
"args": ["stdio"]
}
}
}
Add to Claude Code
claude mcp add gsc-mcp-rs -- gsc-mcp-rs stdio
Tools (21)
Properties & Auth
| Tool | Description |
|---|---|
list_sites |
List all accessible GSC properties with permission levels |
get_site_details |
Get verification status and ownership details |
manage_site |
Add or remove a property (action: "add"|"delete", idempotent) |
reauthenticate |
Clear tokens for account switching |
Search Analytics
| Tool | Description |
|---|---|
search_analytics |
All dimensions, filters, 25K rows, sorting. Use breakdown for device/country splits |
compare_periods |
Side-by-side period comparison with deltas |
performance_overview |
Quick aggregate summary + daily trend |
page_query_breakdown |
Which queries drive traffic to a specific page |
Discovery & Analysis
| Tool | Description |
|---|---|
top_pages |
Best-performing pages by clicks/impressions/CTR/position |
keyword_opportunities |
5 modes: quick_wins (default), cannibalization, ctr_gaps, declining, growing |
brand_query_analysis |
Brand vs non-brand traffic split |
keyword_trend |
Daily tracking of a single keyword |
detect_anomalies |
Automatic drop detection with severity levels |
Search Appearance
| Tool | Description |
|---|---|
query_by_search_appearance |
Filter by rich result type (FAQ, VIDEO, etc.) |
Export
| Tool | Description |
|---|---|
export_analytics |
Force CSV file export for large datasets |
URL Inspection
| Tool | Description |
|---|---|
inspect_url |
Check indexing status of a single URL |
batch_inspect_urls |
Inspect up to 50 URLs with configurable concurrency |
Sitemaps
| Tool | Description |
|---|---|
list_sitemaps |
List submitted sitemaps with status |
manage_sitemap |
Submit or remove a sitemap (action: "submit"|"delete", idempotent) |
Indexing API
| Tool | Description |
|---|---|
request_indexing |
Request Google to crawl a URL |
Meta
| Tool | Description |
|---|---|
api_reference |
All dimensions and metrics with descriptions and value ranges |
Environment Variables
| Variable | Default | Description |
|---|---|---|
GSC_MCP_CONFIG_DIR |
~/.config/gsc-mcp-rs/ |
Config and token storage directory |
GSC_MCP_OUTPUT_DIR |
System temp dir | CSV export directory |
GSC_SERVICE_ACCOUNT_PATH |
(none) | Path to service account JSON key |
CLI Usage
gsc-mcp-rs stdio # stdio transport (default)
gsc-mcp-rs auth # Interactive OAuth flow
gsc-mcp-rs --version # Show version
gsc-mcp-rs --help # Show help
Docker
docker build -t gsc-mcp-rs .
docker run -i --rm -v ~/.config/gsc-mcp-rs:/root/.config/gsc-mcp-rs gsc-mcp-rs
Minimum Supported Rust Version (MSRV)
Rust 1.85 or later.
Contributing
See CONTRIBUTING.md for development setup and guidelines.
Security
See SECURITY.md for the vulnerability reporting process.
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。