mcp-seo-audit
mcp-seo-audit
Сервер протокола Model Context Protocol (MCP) для SEO-аудита, включающий Google Search Console, Indexing API, отчет Chrome UX, PageSpeed Insights, локальный Lighthouse, проверку robots.txt, анализ карты сайта, проверку SEO на странице, аудит сканирования и анализ сайта в реальном времени. Работает с Claude Code, Claude Desktop, Cursor и любым клиентом, поддерживающим MCP.
Форк AminForou/mcp-gsc, расширенный до более масштабного сервера для технического SEO и аудита производительности, включающий 30 инструментов и полный набор тестов.
Возможности
Категория | Инструменты | Описание |
Управление ресурсами |
| Список, добавление и удаление ресурсов GSC |
Аналитика поиска |
| Запрос кликов, показов, CTR, позиций с фильтрацией, измерениями и сравнением периодов |
Проверка URL |
| Проверка статуса индексации, информации о сканировании, канонических ссылок, robots для одного или нескольких URL |
Indexing API |
| Отправка/удаление URL из индекса Google через Indexing API |
Карты сайта |
| Список, отправка и удаление карт сайта |
Core Web Vitals |
| LCP, FID, CLS, INP, TTFB через API отчета Chrome UX (CrUX) |
Аудит производительности |
| Запуск PageSpeed Insights и локальных аудитов Lighthouse с оценками категорий и сводками ошибок |
Техническое SEO |
| Проверка robots.txt, валидация карт сайта, извлечение SEO-сигналов со страницы, сканирование внутренних страниц и запуск SEO-аудита в реальном времени без доступа к GSC |
SEO-анализ |
| Поиск ключевых слов на позициях 5-20, обнаружение страниц, конкурирующих по одному запросу, разделение брендового и небрендового трафика |
Аудит сайта |
| Комплексный отчет: состояние карты сайта, статус индексации, несоответствия канонических ссылок, сводка производительности |
Авторизация |
| Смена аккаунтов Google путем очистки кэшированных токенов OAuth |
Всего 30 инструментов.
Related MCP server: gsc-mcp-rs
Настройка
1. Учетные данные Google API
OAuth (рекомендуется)
Перейдите в Google Cloud Console
Включите Search Console API и Web Search Indexing API
Создайте OAuth 2.0 Client ID (для настольного приложения)
Скачайте
client_secrets.json
Сервисный аккаунт
Создайте сервисный аккаунт в Google Cloud Console
Скачайте файл JSON-ключа
Добавьте email сервисного аккаунта в свои ресурсы GSC
2. Установка
git clone https://github.com/GiorgiKemo/mcp-seo-audit.git
cd mcp-seo-audit
python -m venv .venv
# Activate:
# macOS/Linux: source .venv/bin/activate
# Windows: .venv\Scripts\activate
pip install -r requirements.txt3. Настройка MCP-клиента
Claude Code (~/.claude/settings.json)
{
"mcpServers": {
"seo-audit": {
"command": "/path/to/mcp-seo-audit/.venv/bin/python",
"args": ["/path/to/mcp-seo-audit/gsc_server.py"],
"env": {
"GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
"PAGESPEED_API_KEY": "your-google-api-key",
"CRUX_API_KEY": "your-google-api-key"
}
}
}
}Claude Desktop (claude_desktop_config.json)
Та же структура JSON — см. документацию Claude Desktop MCP для поиска расположения файла конфигурации.
4. Опционально: API-ключи для производительности
Для получения данных о производительности (полевых и лабораторных) установите CRUX_API_KEY и PAGESPEED_API_KEY в блоке env:
"env": {
"GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
"CRUX_API_KEY": "your-google-api-key",
"PAGESPEED_API_KEY": "your-google-api-key"
}Вы также можете установить GOOGLE_API_KEY; сервер использует его как резервный ключ для PageSpeed Insights.
Переменные окружения
Переменная | Обязательно | По умолчанию | Описание |
| OAuth |
| Путь к секретам OAuth-клиента |
| Сервисный аккаунт |
| Путь к ключу сервисного аккаунта |
| Нет |
| Установите |
| Нет |
|
|
| Нет | нет | API-ключ Google для Core Web Vitals (CrUX) |
| Нет | нет | API-ключ Google для вызовов PageSpeed Insights / Lighthouse API |
| Нет | нет | Резервный источник для |
| Нет | автоопределение | Опциональный явный путь к Chrome/Chromium для локального Lighthouse CLI |
Примеры запросов
"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"
"Run PageSpeed Insights for https://example.com"
"Run a local Lighthouse audit for https://example.com"
"Inspect robots.txt for https://example.com"
"Analyze https://example.com/sitemap.xml"
"Analyze on-page SEO for https://example.com/jobs"
"Crawl https://example.com and report duplicate titles"
"Run a live SEO audit for https://example.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"Тесты
81 тест, охватывающий все 30 инструментов с использованием моков для вызовов Google/API/web-audit:
# Activate venv first
python -m pytest test_gsc_server.py -vЧто изменилось по сравнению с оригиналом
30 инструментов — добавлены PSI, локальный Lighthouse, проверка robots.txt, валидация карт сайта, анализ SEO страниц, аудит сканирования и аудит сайта в реальном времени
7 исправлений ошибок — сопоставление направления сортировки, определение origin/URL, сбой при пустых строках, утечка API-ключа, блокировка sleep, кэширование сервисов, устаревший кэш при повторной аутентификации
Набор QA из 81 теста — покрытие для GSC, CrUX, PSI, Lighthouse CLI, robots, карт сайта, аудита сканирования и композиции аудита в реальном времени
Безопасность — API-ключи удалены из сообщений об ошибках
Производительность — объекты сервиса Google API кэшируются, используется асинхронный sleep вместо блокирующего, плюс инструменты лабораторной производительности поверх полевых данных CrUX
Лицензия
MIT. См. LICENSE.
Основано на AminForou/mcp-gsc.
Available Tools
43 toolsadd_siteBIdempotent
Add a site to your Search Console properties.
Args:
site_url: The URL of the site to add (e.g. https://example.com or sc-domain:example.com)
Inputs: site_url (required). Returns: result
analyze_page_seoBRead-onlyIdempotent
Fetch a page and analyze on-page SEO signals, structured data, and indexability hints.
Args:
url: Full page URL
Inputs: url (required). Returns: result
analyze_sitemapBRead-onlyIdempotent
Fetch and analyze an XML sitemap or sitemap index.
Args:
sitemap_url: Full sitemap URL
sample_urls: Number of sitemap URLs to validate with GET requests
Inputs: sitemap_url (required), sample_urls. Returns: result
audit_live_siteARead-onlyIdempotent
Run a live SEO audit without requiring Search Console access.
Combines page analysis, robots.txt inspection, sitemap discovery, PSI data, and a small same-origin crawl.
Args:
url: Full site/page URL
crawl_pages: Number of pages to crawl for duplicate/missing-tag issues
include_lighthouse: Whether to also run a local Lighthouse CLI audit
Inputs: url (required), crawl_pages, include_lighthouse. Returns: result
batch_inspect_urlsARead-onlyIdempotent
Inspect multiple URLs for indexing status. Handles rate limiting automatically.
API limit: 2000/day, 600/minute. This tool handles up to 50 URLs per call.
Args:
site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
urls: List of URLs to inspect, one per line
Inputs: urls (required), site_url (required). Returns: result
batch_request_indexingA
Request indexing for multiple URLs. Processes sequentially with rate limiting.
Default quota: 200/day. Only for pages with JobPosting or BroadcastEvent structured data.
Args:
urls: List of URLs to index, one per line (max 100 per batch)
Inputs: urls (required). Returns: result
check_indexing_notificationBRead-onlyIdempotent
Check the latest indexing notification status for a URL.
Args:
url: The URL to check
Inputs: url (required). Returns: result
compare_project_auditsBRead-onlyIdempotent
Compare two retained project snapshots using applicable rechecks and coverage. Missing pages do not count as resolved; differing crawl settings cannot be compared.
Inputs: current_id (required), project_id (required), baseline_id (required).
compare_search_periodsBRead-onlyIdempotent
Compare search analytics between two time periods.
Args:
site_url: Exact GSC property URL
period1_start: Start date for period 1 (YYYY-MM-DD)
period1_end: End date for period 1
period2_start: Start date for period 2
period2_end: End date for period 2
dimensions: Dimensions to group by (default: query)
limit: Top N results to compare (default: 20)
Inputs: site_url (required), period1_end (required), period2_end (required), period1_start (required), +3 more. Returns: result
compare_seo_auditsARead-onlyIdempotent
Compare two JSON outputs of get_seo_audit_report with matching crawl settings. Classifies new, resolved, persistent, newly observed and unverified issues without fetching URLs or writing files. Missing/failed pages never prove an issue resolved.
Inputs: current_json (required), baseline_json (required). Returns: result
crawl_site_seoARead-onlyIdempotent
Crawl same-origin raw HTML and summarize issues. Respects robots.txt by default. max_pages bounds fetch attempts, including errors/non-HTML. Use get_seo_audit_report for structured evidence and remediation. Disable robots only for a site you control.
Inputs: start_url (required), max_pages, respect_robots. Returns: result
create_audit_projectA
Create a local project with robots-aware audit settings and scheduling disabled. IDs use lowercase letters/digits/hyphens/underscores. Retain 1-100 snapshots (default 30); max_pages 1-500 is further capped by server configuration. Files live under SEO_AUDIT_DATA_DIR or the platform user-data directory. Rendered modes require the optional browser dependency and installed Chromium.
Inputs: start_url (required), project_id (required), max_pages, retention, +2 more.
delete_siteCDestructiveIdempotent
Remove a site from your Search Console properties.
Args:
site_url: The URL of the site to remove
Inputs: site_url (required). Returns: result
delete_sitemapBDestructiveIdempotent
Delete (unsubmit) a sitemap from Google Search Console.
Args:
site_url: Exact GSC property URL
sitemap_url: Full URL of the sitemap to delete
Inputs: site_url (required), sitemap_url (required). Returns: result
detect_cannibalizationARead-onlyIdempotent
Identify queries appearing for multiple pages as potential cannibalization candidates.
Multiple pages can serve different intents; overlap alone does not prove harmful competition.
Args:
site_url: Exact GSC property URL
days: Days to look back (default: 28)
min_impressions: Minimum impressions per query-page pair (default: 5)
Inputs: site_url (required), days, min_impressions. Returns: result
find_striking_distance_keywordsARead-onlyIdempotent
Find "striking distance" keywords — queries ranking at positions 5-20 with decent impressions.
These are review candidates; positions alone do not establish the effort needed to improve rankings.
Args:
site_url: Exact GSC property URL
days: Days to look back (default: 28)
min_impressions: Minimum impressions to include (default: 10)
row_limit: Max results (default: 50)
Inputs: site_url (required), days, row_limit, min_impressions. Returns: result
get_advanced_search_analyticsARead-onlyIdempotent
Get advanced search analytics with sorting, filtering (including regex), and pagination.
Args:
site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
start_date: Inclusive start date YYYY-MM-DD (defaults to 28-day window ending at end_date)
end_date: Inclusive end date YYYY-MM-DD (defaults to today in Pacific time)
dimensions: Dimensions comma-separated (query,page,device,country,date,searchAppearance)
search_type: WEB, IMAGE, VIDEO, NEWS, DISCOVER
row_limit: Max rows (up to 25000)
start_row: Starting row for pagination
sort_by: Metric to sort returned API page locally (clicks, impressions, ctr, position)
sort_direction: ascending or descending
filter_dimension: Single filter dimension (query, page, country, device)
filter_operator: contains, equals, notContains, notEquals, includingRegex, excludingRegex
filter_expression: Filter value
filters: JSON array of filter objects for AND logic. Each needs dimension, operator, expression.
data_state: "all" (default) or "final" (confirmed only, 2-3 day lag)
Inputs: site_url (required), filters, sort_by, end_date, +10 more. Returns: result
get_core_web_vitalsARead-onlyIdempotent
Get Core Web Vitals (LCP, INP, CLS) from the Chrome UX Report (CrUX) API.
Free API, no OAuth needed — just a CRUX_API_KEY env variable.
Args:
url_or_origin: Full URL or origin (e.g. "https://example.com" for origin-level)
form_factor: PHONE, DESKTOP, or TABLET (default: PHONE)
Inputs: url_or_origin (required), form_factor. Returns: result
get_pagespeed_insightsBRead-onlyIdempotent
Run Google's PageSpeed Insights API for a URL.
Returns Lighthouse lab data plus available Chrome UX Report field data.
Args:
url: Full page URL
strategy: mobile or desktop
categories: Comma-separated Lighthouse categories
Inputs: url (required), strategy, categories. Returns: result
get_performance_overviewBRead-onlyIdempotent
Get a performance overview with totals and daily trend.
Args:
site_url: Exact GSC property URL
days: Number of days to look back (default: 28)
Inputs: site_url (required), days. Returns: result
get_project_auditARead-onlyIdempotent
Load an immutable retained audit snapshot by its project-scoped audit_id.
Inputs: audit_id (required), project_id (required).
get_search_analyticsARead-onlyIdempotent
Get search analytics data for a specific property.
Args:
site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
days: Number of days to look back (default: 28)
dimensions: Dimensions to group by, comma-separated (query, page, device, country, date, searchAppearance)
row_limit: Number of rows to return (default: 20, max: 500)
search_type: Type of search results (WEB, IMAGE, VIDEO, NEWS, DISCOVER)
Inputs: site_url (required), days, row_limit, dimensions, +1 more. Returns: result
get_search_analytics_snapshotARead-onlyIdempotent
Fetch a bounded, paginated Search Console snapshot with explicit coverage. Returns at most 100,000 rows / 10 API pages within 180 seconds. Google may still omit anonymized/long-tail rows; completion is only for the returned API window. Partial results survive provider errors. Includes data-state/freshness metadata.
Inputs: site_url (required), days, max_rows, dimensions, +2 more. Returns: result
get_search_by_page_queryBRead-onlyIdempotent
Get search queries driving traffic to a specific page.
Args:
site_url: Exact GSC property URL
page_url: The specific page URL to analyze
days: Days to look back (default: 28)
row_limit: Rows to return (default: 20, max: 500)
Inputs: page_url (required), site_url (required), days, row_limit. Returns: result
get_seo_audit_reportARead-onlyIdempotent
Return a structured technical SEO action plan with stable rule IDs, affected URLs, evidence, fix guidance, crawl coverage and limits. No Google credentials required. Save the returned JSON in your MCP client to compare later with compare_seo_audits. Optional rendered/compare modes execute JavaScript in a guarded browser; include_sitemaps discovers nested sitemaps and checks unlinked candidates. max_seconds bounds the crawl. Preserves query strings. Respects robots.txt by default; turn this off only for a site you control. max_pages is capped by server configuration.
Inputs: start_url (required), max_pages, max_seconds, render_mode, +2 more. Returns: result
get_server_statusBRead-onlyIdempotent
Inspect local setup without credential values, network calls, or starting jobs. Credential presence does not prove current Google permissions or quota.
Inputs: no named parameters. Returns: result
get_sitemapsCRead-onlyIdempotent
List all sitemaps for a property with detailed info.
Args:
site_url: Exact GSC property URL
Inputs: site_url (required). Returns: result
inspect_robots_txtBRead-onlyIdempotent
Fetch and summarize the site's robots.txt file.
Args:
url_or_origin: Full URL, origin, or sc-domain property
Inputs: url_or_origin (required). Returns: result
inspect_urlBRead-onlyIdempotent
Inspect a URL for indexing status, rich results, and mobile usability.
Args:
site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
page_url: The specific URL to inspect
Inputs: page_url (required), site_url (required). Returns: result
list_audit_eventsBRead-onlyIdempotent
Read a local change/failure/recovery inbox without marking events as read. Pass next_after_id on the next call; retain the latest 500 events per project. Only verified new/resolved findings trigger change events; sampling changes and unchanged reports stay quiet. No external notification is transmitted.
Inputs: project_id (required), limit, after_id.
list_audit_projectsARead-onlyIdempotent
List local projects, settings, schedule state and latest run status.
Inputs: no named parameters.
list_project_auditsCRead-onlyIdempotent
List up to 100 retained snapshots, newest first, with coverage and issue summaries.
Inputs: project_id (required), limit.
list_propertiesBRead-onlyIdempotent
Retrieves and returns the user's Search Console properties.
Inputs: no named parameters. Returns: result
prioritize_audit_issuesBRead-onlyIdempotent
Add observed Search Console traffic to an audit action plan. Sort by severity, then affected-page clicks/impressions. Does not estimate revenue or ranking gains. Unmatched URLs are unknown, not zero. No page traffic is double-counted within a rule.
Inputs: site_url (required), report_json (required), days. Returns: result
reauthenticateADestructive
Authenticate a new account, then atomically replace the saved OAuth token. Existing credentials and service caches are preserved if login or saving fails.
Inputs: no named parameters. Returns: result
request_indexingA
Request Google to crawl and index a URL via the Indexing API.
IMPORTANT: Only works for pages with JobPosting or BroadcastEvent structured data.
Default quota: 200 requests/day.
Args:
url: The full URL to request indexing for
Inputs: url (required). Returns: result
request_removalADestructive
Request Google to remove a URL from the index via the Indexing API.
IMPORTANT: Only works for pages with JobPosting or BroadcastEvent structured data.
Args:
url: The full URL to request removal for
Inputs: url (required). Returns: result
run_lighthouse_auditARead-onlyIdempotent
Run a local Lighthouse CLI audit for an explicitly trusted URL.
Requires SEO_AUDIT_ENABLE_LOCAL_LIGHTHOUSE=true, Node.js and Chrome/Chromium.
Lighthouse browser networking is not guarded by the public crawl transport.
Args:
url: Full page URL
form_factor: mobile or desktop
categories: Comma-separated Lighthouse categories
Inputs: url (required), categories, form_factor. Returns: result
run_project_auditADestructive
Fetch a project now, save its immutable report, and record verified finding changes. Prunes oldest snapshots to project retention. One run per project; ten-minute timeout. Returns audit_id; use get_project_audit for the full snapshot. Alerts stay in the local event inbox; no email, messaging or webhook is sent.
Inputs: project_id (required).
set_audit_scheduleA
Explicitly enable/disable a project's recurring audit (60 seconds to 31 days). First run is due one interval after enabling. A separate mcp-seo-monitor worker must be running; the MCP stdio server does not launch background work. Failures back off; disabling prevents future scheduled claims, leaving an active run to finish.
Inputs: project_id (required), enabled, interval_seconds.
site_auditARead-onlyIdempotent
Check sitemap submission health, performance, and a sample of top search pages for indexing issues.
This sample cannot establish indexing coverage across the entire property.
Args:
site_url: Exact GSC property URL (e.g. "sc-domain:example.com")
sitemap_url: Optional submitted sitemap to include in the GSC health report (not crawled here).
max_inspect: Max URLs to inspect (0-100, default: 30, costs 1 API call each)
Inputs: site_url (required), max_inspect, sitemap_url. Returns: result
split_branded_queriesARead-onlyIdempotent
Split search performance into branded vs non-branded queries.
Separates query-visible traffic; one period alone does not establish growth.
Args:
site_url: Exact GSC property URL
brand_name: Your brand name to filter (e.g. "cdljobscenter")
days: Days to look back (default: 28)
Inputs: site_url (required), brand_name (required), days. Returns: result
submit_sitemapB
Submit or resubmit a sitemap to Google.
Args:
site_url: Exact GSC property URL
sitemap_url: Full URL of the sitemap to submit
Inputs: site_url (required), sitemap_url (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
Many tools target distinct GSC, indexing, and project operations, but several overlap—especially the multiple search-analytics variants (basic, advanced, snapshot) and the various audit/crawl tools (audit_live_site, site_audit, get_seo_audit_report, crawl_site_seo). Descriptions help clarify boundaries, but an agent can still misselect without careful reading.
Mostly consistent snake_case with verb_noun patterns (e.g., get_search_analytics, submit_sitemap, create_audit_project). Minor deviations like site_audit and reauthenticate are readable and do not seriously hinder predictability.
43 tools is excessive for the domain; many functions could be consolidated (e.g., analytics variants, audit variants, and project CRUD pieces). The breadth suggests feature sprawl rather than a tightly scoped set.
The surface covers a wide SEO audit lifecycle: properties, search analytics, indexing, sitemaps, URL inspection, live crawling, project management, scheduling, event listing, and comparison. Missing delete/update operations for audit projects are minor gaps an agent can work around.
Maintenance
Related MCP Connectors
SEO platform MCP server: GSC, Bing, Yandex, technical audits, local rank grids, and AI visibility.
SEO MCP server for keyword research, SERP analysis, audits, and Search Console workflows.
SEO MCP server: Search Console, GA4, Crawler and AI visibility across 6 AI engines
SEO MCP: Search Console, GA4, SERP and domain data, rank tracking, AI citations and site fixes.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for Google Search Console, URL Inspection & Indexing API — search analytics, sitemap management, and batch indexing13126 npm8MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Google Search Console. 21 tools for search analytics, keyword opportunities, URL inspection, sitemaps, indexing, and property management.1MIT
- AlicenseAqualityDmaintenanceMCP server for advanced Google Search Console analysis — keyword cannibalization detection, page-level query deep dive, and rank change tracking.3MIT
- AlicenseBqualityDmaintenanceProfessional Google Search Console MCP server providing 40+ SEO tools for performance analysis, content decay, CTR opportunities, and more, enabling real search data in clients like Cursor and Claude.4017 npm6MIT