Google Search Console MCP Server

Google Search Console MCP Server

site icon
2025.04.08 0
Python搜索分析数据检索搜索工具开发效率
Google Search Console MCP Server 是一个基于模型上下文协议(MCP)的工具,用于访问和检索Google Search Console的数据。它提供了搜索分析数据的检索功能,支持多种维度和自定义报告周期,适用于需要分析网站搜索性能的开发者和数据分析师。
View on GitHub

Overview

基本能力

产品定位

Google Search Console MCP Server 是一个专门用于访问和检索Google Search Console数据的工具,旨在帮助开发者和数据分析师高效地获取和分析搜索性能数据。

核心功能

  • 检索搜索分析数据(支持多种维度)
  • 提供详细的数据分析功能,支持自定义报告周期

适用场景

  • 网站搜索性能分析
  • SEO优化
  • 数据驱动的决策支持

工具列表

  • search_analytics: 从Google Search Console检索搜索性能数据。支持多种参数如站点URL、日期范围、维度等。

常见问题解答

  1. 如何获取Google Search Console API凭证?
  2. 访问Google Cloud Console,创建或选择项目,启用Search Console API,创建服务账户并下载JSON格式的凭证文件。

  3. 如何设置环境变量?

  4. 使用export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json命令设置凭证文件路径。

使用教程

使用依赖

  • Python 3.10或更高版本
  • 启用了Search Console API的Google Cloud项目
  • 具有Search Console访问权限的服务账户凭证

安装教程

pip install mcp-server-google-search-console

或从源代码安装:

git clone https://github.com/yourusername/mcp-server-google-search-console.git
cd mcp-server-google-search-console
pip install -e .

调试方式

启动MCP服务器:

mcp-server-gsc

或使用uvx运行:

uvx run mcp-server-gsc

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。