基本能力
产品定位
Google Search Console MCP Server 是一个专门用于访问和检索Google Search Console数据的工具,旨在帮助开发者和数据分析师高效地获取和分析搜索性能数据。
核心功能
- 检索搜索分析数据(支持多种维度)
- 提供详细的数据分析功能,支持自定义报告周期
适用场景
- 网站搜索性能分析
- SEO优化
- 数据驱动的决策支持
工具列表
- search_analytics: 从Google Search Console检索搜索性能数据。支持多种参数如站点URL、日期范围、维度等。
常见问题解答
- 如何获取Google Search Console API凭证?
-
访问Google Cloud Console,创建或选择项目,启用Search Console API,创建服务账户并下载JSON格式的凭证文件。
-
如何设置环境变量?
- 使用
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json
命令设置凭证文件路径。
使用教程
使用依赖
- Python 3.10或更高版本
- 启用了Search Console API的Google Cloud项目
- 具有Search Console访问权限的服务账户凭证
安装教程
bash
pip install mcp-server-google-search-console
或从源代码安装:
bash
git clone https://github.com/yourusername/mcp-server-google-search-console.git
cd mcp-server-google-search-console
pip install -e .
调试方式
启动MCP服务器:
bash
mcp-server-gsc
或使用uvx运行:
bash
uvx run mcp-server-gsc