这是一个提供访问 Google Search Console 的 Model Context Protocol (MCP) 服务器。
要通过 Smithery 自动为 Claude Desktop 安装 Google Search Console:
npx -y @smithery/cli install mcp-server-gsc --client claude
npm install mcp-server-gsc
要获取 Google Search Console API 凭证:
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-server-gsc"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}

从 Google Search Console 获取具有可定制参数的搜索性能数据:
必需参数:
siteUrl
:站点 URL(格式:http://www.example.com/
或 sc-domain:example.com
)startDate
:开始日期(YYYY-MM-DD)endDate
:结束日期(YYYY-MM-DD)可选参数:
dimensions
:逗号分隔列表(query,page,country,device,searchAppearance
)type
:搜索类型(web
, image
, video
, news
)aggregationType
:聚合方法(auto
, byNewsShowcasePanel
, byProperty
, byPage
)rowLimit
:返回的最大行数(默认值:1000)示例:
{
"siteUrl": "https://example.com",
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"dimensions": "query,country",
"type": "web",
"rowLimit": 500
}

MIT
欢迎贡献!请在提交拉取请求前阅读我们的贡献指南。