mcp-seo-audit

mcp-seo-audit

SEO audit and Google Search Console MCP server with 23 tools. Search analytics, URL inspection, Indexing API, Core Web Vitals (CrUX), striking distance keywords, keyword cannibalization detection, branded query analysis, and automated site audits.

Category
访问服务器

README

mcp-seo-audit

A Model Context Protocol (MCP) server for SEO auditing, Google Search Console analytics, URL indexing, Core Web Vitals, and site analysis. Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client.

Forked from AminForou/mcp-gsc and rewritten with 23 tools, bug fixes, and a full test suite.

<a href="https://glama.ai/mcp/servers/GiorgiKemo/mcp-seo-audit"> <img width="380" height="200" src="https://glama.ai/mcp/servers/GiorgiKemo/mcp-seo-audit/badge" alt="mcp-seo-audit MCP server" /> </a>


What It Does

Category Tools Description
Property Management list_properties, add_site, delete_site List, add, and remove GSC properties
Search Analytics get_search_analytics, get_advanced_search_analytics, get_performance_overview, get_search_by_page_query, compare_search_periods Query clicks, impressions, CTR, position with filtering, dimensions, and period comparison
URL Inspection inspect_url, batch_inspect_urls Check indexing status, crawl info, canonical, robots for one or many URLs
Indexing API request_indexing, request_removal, check_indexing_notification, batch_request_indexing Submit/remove URLs from Google's index via the Indexing API
Sitemaps get_sitemaps, submit_sitemap, delete_sitemap List, submit, and delete sitemaps
Core Web Vitals get_core_web_vitals LCP, FID, CLS, INP, TTFB via the Chrome UX Report (CrUX) API
SEO Analysis find_striking_distance_keywords, detect_cannibalization, split_branded_queries Find keywords at positions 5-20, detect pages competing for the same query, split branded vs non-branded traffic
Site Audit site_audit All-in-one report: sitemap health, indexing status, canonical mismatches, performance summary
Auth reauthenticate Switch Google accounts by clearing cached OAuth tokens

23 tools total.


Setup

1. Google API Credentials

OAuth (recommended)

  1. Go to Google Cloud Console
  2. Enable the Search Console API and Web Search Indexing API
  3. Create an OAuth 2.0 Client ID (Desktop app)
  4. Download client_secrets.json

Service Account

  1. Create a service account in Google Cloud Console
  2. Download the JSON key file
  3. Add the service account email to your GSC properties

2. Install

git clone https://github.com/GiorgiKemo/mcp-gsc.git
cd mcp-gsc
python -m venv .venv

# Activate:
# macOS/Linux: source .venv/bin/activate
# Windows:     .venv\Scripts\activate

pip install -r requirements.txt

3. Configure Your MCP Client

Claude Code (~/.claude/settings.json)

{
  "mcpServers": {
    "seo-audit": {
      "command": "/path/to/mcp-gsc/.venv/bin/python",
      "args": ["/path/to/mcp-gsc/gsc_server.py"],
      "env": {
        "GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json)

Same JSON structure — see Claude Desktop MCP docs for config file location.

4. Optional: CrUX API Key

For Core Web Vitals data, set CRUX_API_KEY in the env block:

"env": {
  "GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
  "CRUX_API_KEY": "your-google-api-key"
}

Get one from Google AI Studio or the Cloud Console with CrUX API enabled.


Environment Variables

Variable Required Default Description
GSC_OAUTH_CLIENT_SECRETS_FILE OAuth client_secrets.json Path to OAuth client secrets
GSC_CREDENTIALS_PATH Service account service_account_credentials.json Path to service account key
GSC_SKIP_OAUTH No false Set to true to skip OAuth and use service account only
GSC_DATA_STATE No all all = fresh data matching GSC dashboard, final = confirmed data (2-3 day lag)
CRUX_API_KEY No — Google API key for Core Web Vitals (CrUX)

Example Prompts

"List my GSC properties"
"Show search analytics for cdljobscenter.com last 28 days"
"Find striking distance keywords for my site"
"Detect keyword cannibalization"
"Run a full site audit"
"Check Core Web Vitals for cdljobscenter.com"
"Inspect indexing status of these URLs: /jobs, /companies, /pricing"
"Request indexing for https://mysite.com/new-page"
"Compare search performance this month vs last month"

Tests

71 tests covering all 23 tools with mocked Google API calls:

# Activate venv first
python -m pytest test_gsc_server.py -v

What Changed From the Original

  • 23 tools (up from ~10) — added Indexing API, CrUX, SEO analysis, site audit
  • 7 bug fixes — sort direction mapping, origin/URL detection, empty rows crash, API key leak, blocking sleep, service caching, stale cache on reauth
  • 71-test QA suite — full coverage with mocked API calls
  • Security — API keys redacted from error messages
  • Performance — Google API service objects cached, async sleep instead of blocking

License

MIT. See LICENSE.

Based on AminForou/mcp-gsc.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选