Skip to main content
Glama
bwengr

Google Search Console MCP Server

by bwengr

Google Search Console MCP 服务器

用于查询 Google Search Console 数据(网站排名、点击量、展示次数)的 MCP 服务器。

设置

  1. 安装依赖:

    npm install
  2. 配置凭据:

    .env.example 复制为 .env 并填入您的值:

    cp .env.example .env

    您需要:

    • GSC_SITE_URL:您在 GSC 中的网站 URL(例如 sc-domain:bwengr.com

    • GOOGLE_CLIENT_ID:来自 Google Cloud Console 的 OAuth2 客户端 ID

    • GOOGLE_CLIENT_SECRET:OAuth2 客户端密钥

  3. 获取 OAuth2 凭据:

    • 前往 Google Cloud Console

    • 创建一个项目或选择现有项目

    • 启用“Search Console API”

    • 创建 OAuth2 凭据(桌面应用或 Web 应用)

    • http://localhost:3000/oauth/callback 添加为重定向 URI

    • 将客户端 ID 和密钥复制到 .env

使用方法

npm start

可用的 MCP 工具

  • getTopQueries - 按点击量获取热门搜索查询

  • getPagePerformance - 获取特定页面的表现数据

  • getSiteSummary - 获取网站整体搜索表现

  • getRankingChanges - 查找排名发生显著变化的页面

凭据

切勿将 .env 提交到 GitHub。 凭据仅存储在本地。

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/bwengr/bw-gsc-mcp'

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