Skip to main content
Glama
Parithosh-Varma

searchconsole-mcp

searchconsole-mcp

为你的项目自动化 Google Search Console 的 MCP 服务器:搜索分析、站点地图管理、网站属性和 URL 检查。

工具

工具

描述

gsc_list_sites

列出服务账号可以访问的所有属性

gsc_add_site / gsc_remove_site

添加/移除属性(sc-domain:example.comhttps://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:索引状态、规范链接、抓取信息、移动设备可用性

Related MCP server: Google Search Console + GA4 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)并授予所有者权限(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 添加网站时,在所有权确认之前该网站将保持未验证状态;最简单的做法是先在界面中将服务账号邮箱添加为所有者。

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Google Search Console to query search analytics, inspect URL indexing status, and manage sitemaps. It allows users to monitor SEO performance and site health through natural language commands in MCP-compatible clients.
    123
    3
    MIT
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables querying Google Search Console and Google Analytics 4 data to retrieve search performance and site analytics. It provides tools for listing web properties and running detailed reports using secure Google OAuth authentication.
  • 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.
    165
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.

  • SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.

  • Web search, news, page retrieval, sitemaps, and trending topics through Search1API.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Parithosh-Varma/searchconsole-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server