mcp-seo-audit
mcp-seo-audit
Google Search Console, Indexing API, Chrome UX Report, PageSpeed Insights, 로컬 Lighthouse, robots.txt 확인, 사이트맵 분석, 페이지 내 SEO 검사, 크롤링 감사 및 라이브 사이트 분석을 포함하는 SEO 감사를 위한 MCP(Model Context Protocol) 서버입니다. Claude Code, Claude Desktop, Cursor 및 모든 MCP 호환 클라이언트와 함께 작동합니다.
AminForou/mcp-gsc에서 포크되었으며, 30개의 도구와 전체 테스트 스위트를 갖춘 더 광범위한 기술 SEO 및 성능 감사 서버로 확장되었습니다.
주요 기능
카테고리 | 도구 | 설명 |
속성 관리 |
| GSC 속성 나열, 추가 및 제거 |
검색 분석 |
| 필터링, 차원 및 기간 비교를 통한 클릭, 노출, CTR, 위치 쿼리 |
URL 검사 |
| 하나 또는 여러 URL에 대한 색인 생성 상태, 크롤링 정보, 표준(canonical), robots 확인 |
Indexing API |
| Indexing API를 통해 Google 색인에서 URL 제출/제거 |
사이트맵 |
| 사이트맵 나열, 제출 및 삭제 |
Core Web Vitals |
| Chrome UX Report(CrUX) API를 통한 LCP, FID, CLS, INP, TTFB |
성능 감사 |
| 카테고리 점수 및 실패한 감사 요약과 함께 PageSpeed Insights 및 로컬 Lighthouse 감사 실행 |
기술 SEO |
| robots.txt 검사, 사이트맵 유효성 검사, 페이지 내 SEO 신호 추출, 내부 페이지 크롤링 및 GSC 액세스 없이 라이브 SEO 감사 실행 |
SEO 분석 |
| 5-20위 키워드 찾기, 동일한 쿼리에 대해 경쟁하는 페이지 감지, 브랜드 트래픽과 비브랜드 트래픽 분리 |
사이트 감사 |
| 올인원 보고서: 사이트맵 상태, 색인 생성 상태, 표준(canonical) 불일치, 성능 요약 |
인증 |
| 캐시된 OAuth 토큰을 지워 Google 계정 전환 |
총 30개의 도구.
Related MCP server: gsc-mcp-rs
설정
1. Google API 자격 증명
OAuth (권장)
Google Cloud Console로 이동합니다.
Search Console API 및 Web Search Indexing API를 활성화합니다.
OAuth 2.0 클라이언트 ID(데스크톱 앱)를 생성합니다.
client_secrets.json을 다운로드합니다.
서비스 계정
Google Cloud Console에서 서비스 계정을 생성합니다.
JSON 키 파일을 다운로드합니다.
서비스 계정 이메일을 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 키
필드 및 랩 성능 데이터를 보려면 env 블록에 CRUX_API_KEY 및 PAGESPEED_API_KEY를 설정하세요:
"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 클라이언트 비밀 파일 경로 |
| 서비스 계정 |
| 서비스 계정 키 경로 |
| 아니요 |
| OAuth를 건너뛰고 서비스 계정만 사용하려면 |
| 아니요 |
|
|
| 아니요 | 없음 | Core Web Vitals(CrUX)용 Google API 키 |
| 아니요 | 없음 | PageSpeed Insights / Lighthouse API 호출용 Google API 키 |
| 아니요 | 없음 |
|
| 아니요 | 자동 감지 | 로컬 Lighthouse CLI를 위한 Chrome/Chromium의 선택적 명시적 경로 |
예시 프롬프트
"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"테스트
Google/API/웹 감사 호출을 모의(mock)하여 30개 도구 전체를 다루는 81개의 테스트:
# Activate venv first
python -m pytest test_gsc_server.py -v변경 사항
30개의 도구 — PSI, 로컬 Lighthouse, robots.txt 검사, 사이트맵 유효성 검사, 페이지 SEO 분석, 크롤링 감사 및 라이브 사이트 감사 추가
7개의 버그 수정 — 정렬 방향 매핑, 오리진/URL 감지, 빈 행 충돌, API 키 유출, 차단 대기, 서비스 캐싱, 재인증 시 오래된 캐시 문제 해결
81개 테스트 QA 스위트 — GSC, CrUX, PSI, Lighthouse CLI, robots, 사이트맵, 크롤링 감사 및 라이브 감사 구성에 대한 커버리지
보안 — 오류 메시지에서 API 키 삭제
성능 — Google API 서비스 객체 캐싱, 차단 대신 비동기 대기, CrUX 필드 데이터 외에 랩 성능 도구 추가
라이선스
MIT. LICENSE를 참조하세요.
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