本项目是一个模型上下文协议(MCP)服务器,它能够提供Google搜索控制台的访问权限,助力用户获取和分析搜索相关数据。
本服务器可提供Google搜索控制台的访问权限,能帮助用户进行维度分析数据检索和丰富的数据分析。
通过 Smithery 自动安装 Claude Desktop 中的Google搜索控制台:
npx -y @smithery/cli install mcp-server-gsc --client claude
npm install mcp-server-gsc
获取 Google 搜索控制台 API 凭证:
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-server-gsc"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
从 Google 搜索控制台获取搜索表现数据,支持自定义参数:
必填参数:
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 许可证。
欢迎贡献!在提交拉取请求之前,请阅读我们的贡献指南。