Skip to main content
Glama

searchconsole-mcp

프로젝트를 위한 Google Search Console 자동화 MCP 서버: 검색 분석, 사이트맵 관리, 사이트 속성 및 URL 검사.

도구

도구

설명

gsc_list_sites

서비스 계정이 액세스할 수 있는 모든 속성 나열

gsc_add_site / gsc_remove_site

속성 추가/제거 (sc-domain:example.com 또는 https://www.example.com/)

gsc_search_analytics

클릭수, 노출수, CTR, 위치를 쿼리/페이지/국가/기기/날짜별로 그룹화하고 필터 지원. 기본값은 최근 28일

gsc_list_sitemaps / gsc_get_sitemap

제출된 사이트맵과 색인된 개수 확인

gsc_submit_sitemap / gsc_delete_sitemap

사이트맵 제출 또는 삭제

gsc_inspect_url

URL 검사 API: 색인 상태, 표준 URL, 크롤링 정보, 모바일 사용성

Related MCP server: Google Search Console MCP Server

일회성 Google 설정

  1. Google Cloud Console에서 프로젝트를 생성합니다.

  2. Google Search Console API를 활성화합니다 (APIs & Services > Library).

  3. 서비스 계정을 생성하고 (IAM & Admin > Service Accounts) JSON 키를 다운로드합니다.

  4. 각 Search Console 속성에 대해: Settings > Users and permissions > Add user에서 서비스 계정 이메일(...@...iam.gserviceaccount.com)을 붙여넣고 소유자(Owner) 권한을 부여합니다 (URL 검사 API에는 소유자 권한이 필요합니다).

구성

환경 변수:

변수

필수

설명

GSC_SERVICE_ACCOUNT_JSON

둘 중 하나

서비스 계정 JSON 키 전체를 인라인으로

GSC_SERVICE_ACCOUNT_FILE

둘 중 하나

키 파일 경로. 기본값은 ./service-account.json

GSC_DEFAULT_SITE

선택

기본 속성. 각 호출에서 siteUrl을 생략할 수 있음

서버는 시작 시 작업 디렉터리에서 .env 파일도 로드합니다.

MCP 클라이언트에 등록

opencode (~/.config/opencode/opencode.json 또는 프로젝트 .opencode/opencode.json):

{
  "mcp": {
    "searchconsole": {
      "type": "local",
      "command": ["node", "/absolute/path/to/searchconsole-mcp/dist/index.js"],
      "environment": {
        "GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
        "GSC_DEFAULT_SITE": "sc-domain:example.com"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "searchconsole": {
      "command": "node",
      "args": ["/absolute/path/to/searchconsole-mcp/dist/index.js"],
      "env": {
        "GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
        "GSC_DEFAULT_SITE": "sc-domain:example.com"
      }
    }
  }
}

개발

npm install
npm run build     # tsc -> dist/
npm start         # run the server on stdio
npm run smoke     # boots the server and lists tools

참고 사항

  • 분석 데이터는 약 2일 지연됩니다. 최신 부분 데이터를 포함하려면 dataState: "all"을 전달하세요.

  • API는 요청당 분석 행을 25,000개로 제한합니다. 페이지네이션에는 startRow를 사용하세요.

  • API로 사이트를 추가하면 소유권이 확인될 때까지 미검증 상태로 남습니다. 가장 쉬운 방법은 먼저 UI에서 서비스 계정 이메일을 소유자(Owner)로 추가하는 것입니다.

Available Tools

9 tools
gsc_add_siteAdd a Search Console siteA

Add a property to Search Console. Use "sc-domain:example.com" for domain properties or "https://www.example.com/" for URL-prefix properties. The property stays unverified until ownership is confirmed.

Inputs: siteUrl (required).

gsc_delete_sitemapDelete a sitemapA

Remove a sitemap from a property. Pages already indexed are not deindexed by this.

Inputs: feedpath (required), siteUrl.

gsc_get_sitemapGet sitemap detailsA

Get details of one submitted sitemap (status, contents, errors/warnings).

Inputs: feedpath (required), siteUrl.

gsc_inspect_urlInspect URL indexing statusA

URL Inspection API: check whether a URL is on Google, its coverage state, canonical, crawl info, mobile usability and rich results. The service account must be an OWNER of the property for this API. Only works for URLs in properties you own.

Inputs: inspectionUrl (required), siteUrl, languageCode.

gsc_list_sitemapsList sitemapsA

List submitted sitemaps for a property, with submission dates and indexed counts.

Inputs: siteUrl, sitemapIndex.

gsc_list_sitesList Search Console sitesA

List all Google Search Console properties the service account has access to, including permission levels.

Inputs: no named parameters.

gsc_remove_siteRemove a Search Console siteB

Remove a property from Search Console.

Inputs: siteUrl (required).

gsc_search_analyticsQuery search analyticsC

Run a Search Console search-analytics query: clicks, impressions, CTR and average position grouped by dimensions (query, page, country, device, date). Dates default to the last 28 days.

Inputs: endDate, siteUrl, rowLimit, startRow, +6 more.

gsc_submit_sitemapSubmit a sitemapC

Submit a sitemap URL for a property (same as clicking Submit in the UI).

Inputs: feedpath (required), siteUrl.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource or action: site management, search analytics, sitemaps, and URL inspection. Even similar-looking sitemap tools are clearly separated by list/get/submit/delete semantics.

    Naming Consistency5/5

    Every tool uses the gsc_ prefix followed by a verb_noun pattern, such as list_sites, submit_sitemap, and inspect_url. The naming is uniform and predictable across the entire set.

    Tool Count5/5

    Nine tools is well-scoped for a Search Console server, covering each core API area without redundancy. No tool feels like filler, and the count is within a comfortable range.

    Completeness5/5

    The set maps closely to Google's official Search Console API surface: site CRUD, sitemap submission/removal/list, search analytics querying, and URL inspection. It covers all primary workflows an agent would need for Search Console.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables interaction with Google Search Console via MCP, offering search analytics, performance summaries, URL inspection, sitemap management, and property listing for SEO workflows.
      1,223 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables programmatic management of Google Search Console properties and IndexNow URL submission for search indexing.
      -