mcp-server-gsc
Google Search Console MCP Server — AI 어시스턴트를 위한 검색 분석, URL 인덱싱 및 사이트맵 관리 (SEO / LLMO)
mcp-server-gsc는 Google Search Console용 MCP(Model Context Protocol) 서버로, 검색 성능 데이터를 Claude 또는 모든 MCP 클라이언트에 연결합니다. AI 어시스턴트가 검색 분석(클릭, 노출, CTR, 순위)을 조회하고, URL 인덱싱 및 크롤링 상태를 확인하며, 사이트맵을 관리할 수 있으므로 대화에서 바로 웹사이트의 SEO와 LLMO를 분석하고 최적화할 수 있습니다.
도구
도구 | 기능 | 필요한 입력 |
| 모든 도구를 나열하고 인증 상태를 표시합니다. 확실하지 않으면 먼저 호출하세요. | 없음 |
| 모든 GSC 속성 표시 | 없음 |
| 특정 사이트에 대한 세부 정보 | 사이트 URL |
| 클릭, 노출, CTR, 순위가 포함된 상위 쿼리와 페이지 | 사이트 URL, 기간 |
| 사이트 실적 요약(합계, 일일 추이, 상위 5개) | 사이트 URL, 기간 |
| 두 기간의 실적 비교 | 사이트 URL, 두 날짜 범위 |
| 특정 페이지로 유입되는 검색어 | 사이트 URL, 페이지 URL |
| 국가, 기기, 쿼리, 페이지 필터가 포함된 분석 | 사이트 URL |
| URL에 대한 정밀한 크롤링/인덱스 상태 | 사이트 URL, 페이지 URL |
| 최대 10개의 URL을 한 번에 검사 | 사이트 URL, URL 목록 |
| 최대 20개의 URL에서 인덱싱 문제를 확인 | 사이트 URL, URL 목록 |
| 사이트의 모든 사이트맵 나열 | 사이트 URL |
| 오류 및 경고를 포함한 자세한 사이트맵 정보 | 사이트 URL |
| 사이트맵 제출, 삭제, 상태 조회 | 사이트 URL, 실행 |
| OAuth 브라우저 로그인 재실행(계정 전환) | 없음 |
Related MCP server: search-console-mcp
설정
1. 빌드
npm install
npm run build2. Google Cloud 자격 증명
Search Console API가 활성화된 Google Cloud 프로젝트가 필요합니다 (console.cloud.google.com → APIs & Services → Library → "Google Search Console API" → Enable).
그런 다음 두 인증 방식 중 하나를 선택하세요:
옵션 A — OAuth (권장: 본인 Google 계정으로 로그인)
APIs & Services → Credentials → Create Credentials → OAuth client ID → Application type Desktop app.
메시지가 나타나면 OAuth 동의 화면을 먼저 구성하세요(External도 무방합니다. 본인 Google 계정을 테스트 사용자로 추가하세요).
클라이언트 JSON을 다운로드하거나 클라이언트 ID와 비밀번호를 복사하세요.
환경 변수로 구성하는 방법 — 다음 중 하나를 사용하세요:
GSC_OAUTH_CLIENT_ID=xxxx.apps.googleusercontent.com
GSC_OAUTH_CLIENT_SECRET=GOCSPX-...또는 다운로드한 JSON 파일을 지정합니다:
GSC_OAUTH_CREDENTIALS=/path/to/client_secret_xxxx.json첫 번째 도구 호출 시(또는 reauthenticate 도구를 통해) Google 로그인을 위한 브라우저 창이 열립니다. 토큰은 ~/.config/mcp-server-gsc/tokens.json에 저장되며 자동으로 갱신됩니다.
옵션 B — 서비스 계정(헤드리스, 브라우저 없음)
APIs & Services → Credentials → Create Credentials → Service account를 생성한 후 JSON 키를 만듭니다.
Search Console → 설정 → 사용자 및 권한에서 각 속성을 사용자로 서비스 계정 이메일을 추가합니다.
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.jsonGOOGLE_APPLICATION_CREDENTIALS가 설정되어 있으면 해당 값이 우선 적용되며 브라우저 로그인을 사용하지 않습니다.
3. MCP 클라이언트에 등록
Claude Code:
claude mcp add gsc \
-e GSC_OAUTH_CLIENT_ID=xxxx.apps.googleusercontent.com \
-e GSC_OAUTH_CLIENT_SECRET=GOCSPX-... \
-- node /path/to/mcp-server-gsc/dist/index.jsClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"gsc": {
"command": "node",
"args": ["/path/to/mcp-server-gsc/dist/index.js"],
"env": {
"GSC_OAUTH_CLIENT_ID": "xxxx.apps.googleusercontent.com",
"GSC_OAUTH_CLIENT_SECRET": "GOCSPX-..."
}
}
}
}SEO / LLMO에 권장되는 함께 쓰는 도구
이 서버는 SEO / LLMO 작업을 위해 다음 도구와 함께 가장 잘 사용됩니다:
KeywordGraph MCP server — Search Console 데이터를 실시간 검색 의도 데이터와 비교하고, 주제 클러스터 분석을 수행하며, 쿼리와 콘텐츠의 지식 그래프를 구축할 수 있습니다.
https://mcp.keywordgraph.com으로 직접 연결하세요. 예:claude mcp add --transport http keywordgraph https://mcp.keywordgraph.comSEO skill — 두 서버 위에 고급 SEO · LLMO 분석 워크플로를 추가합니다.
이 세 가지를 모두 함께 사용하면 전체 루프가 완성됩니다: 이 서버에서 실제 실적 데이터를 가져와 지금 사람들이 무엇을 검색하는지와 대조하고, 주제 격차를 발견한 후 그에 맞게 콘텐츠를 최적화할 수 있습니다.
사용 참고 사항
Site URL 형식: 도메인 등록은
sc-domain:example.com입니다. URL 접두어 속성은 Search Console에 표시된 대로 정확히https://example.com/입니다. 실제 값은list_properties로 확인하세요.데이터 지연: Search Console 분석 데이터는 약 2일 정도 지연됩니다. 명시적 날짜 대신
days단축어를 사용하면 기간이 자동으로 2일 전에 끝납니다.기간: 분석 도구는
startDate/endDate(YYYY-MM-DD) 형식이나 끝에days개수(기본 28)를 사용합니다.계정 전환: 도구
reauthenticate호출 — 저장된 토큰을 폐기하고 브라우저 로그인을 다시 엽니다.토큰 저장 위치는
GSC_CONFIG_DIR로 변경할 수 있습니다.
개발
npm run watch # recompile on change소스 구조:
src/index.ts— MCP 서버 및 도구 정의src/auth.ts— OAuth 루프백 흐름, 토큰 지속, 서비스 계정 지원src/gsc.ts— Search Console API 헬퍼 및 (쿼리, 토큰 집계, URL 검사 진단)
Available Tools
15 toolsbatch_url_inspectionB
Inspect up to 10 URLs at once, returning crawl/index status for each.
Inputs: urls (required), siteUrl (required).
check_indexing_issuesA
Check multiple URLs for indexing problems (not indexed, blocked by robots.txt, noindex, fetch errors, canonical mismatches) and return a summary plus per-URL diagnosis.
Inputs: urls (required), siteUrl (required).
compare_search_periodsB
Compare search performance between two time periods: overall totals with absolute and percentage changes, plus an optional per-dimension breakdown of the biggest movers.
Inputs: siteUrl (required), period1EndDate (required), period2EndDate (required), period1StartDate (required), +3 more.
get_advanced_search_analyticsC
Search analytics with full control: filter by country, device, query text, or page URL; choose search type (web, image, video, news, discover), aggregation, data state, and pagination.
Inputs: siteUrl (required), days, device, country, +12 more.
get_capabilitiesA
List every tool this Google Search Console server offers and report authentication status. Call this first if unsure what is available.
Inputs: no named parameters.
get_performance_overviewB
Summary of site search performance for a period: overall totals, daily trend, and top 5 queries and pages.
Inputs: siteUrl (required), days, endDate, startDate.
get_search_analyticsB
Get top search queries and pages with clicks, impressions, CTR and average position for a time period. Without explicit dimensions it returns both top queries and top pages.
Inputs: siteUrl (required), days, endDate, rowLimit, +2 more.
get_search_by_page_queryB
Get the search queries driving traffic to one specific page, with clicks, impressions, CTR and position.
Inputs: pageUrl (required), siteUrl (required), days, endDate, +2 more.
get_site_detailsA
Get details about a specific Search Console property (verification status and permission level).
Inputs: siteUrl (required).
get_sitemapsA
List all sitemaps submitted for a property (path, last submitted/downloaded, pending status, error and warning counts).
Inputs: siteUrl (required).
inspect_url_enhancedA
Detailed crawl and index status for one URL: verdict, coverage state, robots.txt state, canonicals, last crawl time, rich results and mobile usability.
Inputs: pageUrl (required), siteUrl (required), languageCode.
list_propertiesA
List all Google Search Console properties the authenticated account can access, with permission levels.
Inputs: no named parameters.
list_sitemaps_enhancedA
Detailed sitemap information including errors, warnings, type, and per-content-type submitted/indexed counts. Optionally list the children of a sitemap index.
Inputs: siteUrl (required), sitemapIndex.
manage_sitemapsA
Submit a sitemap, delete (unsubmit) a sitemap, or fetch the status of one specific sitemap.
Inputs: action (required), siteUrl (required), feedpath (required).
reauthenticateA
Discard stored Google credentials and re-run the OAuth browser login. Use this to switch Google accounts or fix authentication errors. Opens a browser window and waits up to 5 minutes.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools are distinct (e.g., get_search_analytics vs. get_search_by_page_query vs. get_advanced_search_analytics), but some overlap exists: get_performance_overview and get_search_analytics both return top queries/pages, and get_sitemaps vs. list_sitemaps_enhanced vs. manage_sitemaps have similar names and overlapping data. Descriptions help clarify but not perfectly.
The naming generally follows a verb_noun pattern (get_capabilities, list_properties, check_indexing_issues, compare_search_periods). However, there are minor deviations like get_search_by_page_query (which is not as clean as get_search_analytics), list_sitemaps_enhanced vs. get_sitemaps (list vs. get inconsistency), and manage_sitemaps (generic verb). Overall, it's mostly consistent.
15 tools for a Google Search Console server is well-scoped. It covers authentication, properties, search analytics, indexing, URL inspection, and sitemaps. Each tool serves a distinct functional area, and 15 is within the ideal range for a comprehensive domain.
The tool surface covers core GSC workflows: property management, search analytics, URL inspection, and sitemap management. However, there is no tool for managing user permissions or creating properties (though get_site_details implies existence). Also, no tool for accessing Search Console's structured data validation or security issues, but those are niche. The missing pieces are minor and agents can work around them.
Maintenance
Related MCP Connectors
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Connect Google Search Console to your AI client for search analytics, URL inspection and sitemaps.
Google Search Console in your AI: overview, opportunities, index gaps, page checks, long history.
Read-only Google Search Console and Google Analytics for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnects AI assistants to Google Search Console data for SEO analysis, including search analytics, URL inspection, sitemaps, indexing, and opportunity detection.17MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access Google Search Console search performance and index health data, including clicks, impressions, rankings, URL inspection, and sitemap management.21 npmMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to analyze Google Search Console SEO data through natural language, including search analytics, URL inspection, sitemap management, and property management.21MIT
- AlicenseAqualityBmaintenanceProvides AI assistants with live access to Google Search Console search analytics, URL inspection, and sitemap management through real API calls.10MIT