Skip to main content
Glama

Google Search Console MCP Server

by ahonn

Google 搜索控制台 MCP 服务器

铁匠徽章

提供对 Google Search Console 的访问的模型上下文协议 (MCP) 服务器。

特征

  • 支持维度的搜索分析数据检索

  • 丰富的数据分析,可定制报告期

Related MCP server: MCP Server for Google Search

先决条件

  • Node.js 18 或更高版本

  • 已启用 Search Console API 的 Google Cloud 项目

  • 具有 Search Console 访问权限的服务帐户凭据

安装

通过 Smithery 安装

要通过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 凭据:

  1. 访问Google Cloud Console

  2. 创建新项目或选择现有项目

  3. 启用 API:

  1. 创建凭证:

  • 导航至“API 和服务”>“凭证”

  • 点击“创建凭证”>“服务帐户”

  • 填写服务帐户详细信息

  • 以 JSON 格式创建新密钥

  • 凭证文件(.json)将自动下载

  1. 授予访问权限:

用法

Claude桌面配置

{ "mcpServers": { "gsc": { "command": "npx", "args": ["-y", "mcp-server-gsc"], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json" } } } }

可用工具

搜索分析

使用可自定义的参数从 Google Search Console 获取搜索性能数据:

必需参数:

  • siteUrl :网站网址(格式: http://www.example.com/sc-domain:example.com

  • startDate :开始日期(YYYY-MM-DD)

  • endDate : 结束日期 (YYYY-MM-DD)

可选参数:

  • dimensions :逗号分隔列表( query,page,country,device,searchAppearance

  • type :搜索类型( webimagevideonews

  • aggregationType :聚合方法( autobyNewsShowcasePanelbyPropertybyPage

  • rowLimit :返回的最大行数(默认值:1000)

例子:

{ "siteUrl": "https://example.com", "startDate": "2024-01-01", "endDate": "2024-01-31", "dimensions": "query,country", "type": "web", "rowLimit": 500 }

执照

麻省理工学院

贡献

欢迎贡献代码!提交 PR 前请阅读我们的贡献指南。

One-click Deploy
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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/ahonn/mcp-server-gsc'

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