searchconsole-mcp
searchconsole-mcp
为你的项目自动化 Google Search Console 的 MCP 服务器:搜索分析、站点地图管理、网站属性和 URL 检查。
工具
工具 | 描述 |
| 列出服务账号可以访问的所有属性 |
| 添加/移除属性( |
| 按查询/页面/国家/设备/日期分组的点击次数、展示次数、CTR、排名,支持筛选。默认最近 28 天 |
| 检查已提交的站点地图和索引数量 |
| 提交或移除站点地图 |
| URL 检查 API:索引状态、规范链接、抓取信息、移动设备可用性 |
Related MCP server: Google Search Console + GA4 MCP Server
一次性 Google 设置
在 Google Cloud Console 中创建项目。
启用 Google Search Console API(APIs & Services > Library)。
创建服务账号(IAM & Admin > Service Accounts)并下载 JSON 密钥。
对于每个 Search Console 属性:Settings > Users and permissions > Add user,粘贴服务账号邮箱(
...@...iam.gserviceaccount.com)并授予所有者权限(URL 检查 API 需要所有者权限)。
配置
环境变量:
变量 | 必填 | 描述 |
| 二选一 | 内联的完整服务账号 JSON 密钥 |
| 二选一 | 密钥文件的路径。默认为 |
| 可选 | 默认属性,这样每次调用时可以省略 |
服务器启动时还会从其工作目录加载 .env。
在 MCP 客户端中注册
opencode(~/.config/opencode/opencode.json 或项目 .opencode/opencode.json):
{
"mcp": {
"searchconsole": {
"type": "local",
"command": ["node", "/absolute/path/to/searchconsole-mcp/dist/index.js"],
"environment": {
"GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}Claude Desktop(claude_desktop_config.json):
{
"mcpServers": {
"searchconsole": {
"command": "node",
"args": ["/absolute/path/to/searchconsole-mcp/dist/index.js"],
"env": {
"GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}开发
npm install
npm run build # tsc -> dist/
npm start # run the server on stdio
npm run smoke # boots the server and lists tools注意事项
分析数据滞后 ~2 天;传入
dataState: "all"以包含最新的部分数据。API 将每次请求的分析行数限制为 25,000 条;使用
startRow进行分页。通过 API 添加网站时,在所有权确认之前该网站将保持未验证状态;最简单的做法是先在界面中将服务账号邮箱添加为所有者。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Search Console to query search analytics, inspect URL indexing status, and manage sitemaps. It allows users to monitor SEO performance and site health through natural language commands in MCP-compatible clients.1233MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables querying Google Search Console and Google Analytics 4 data to retrieve search performance and site analytics. It provides tools for listing web properties and running detailed reports using secure Google OAuth authentication.
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Google Search Console via MCP, offering search analytics, performance summaries, URL inspection, sitemap management, and property listing for SEO workflows.1651MIT
- FlicenseNot gradedqualityFmaintenanceEnables interacting with Google Search Console via natural language, supporting search analytics, URL inspection, sitemap management, and site listing.24
Related MCP Connectors
Turn Search Console data into SEO actions, content, publishing, indexing, and AI insights.
SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.
Web search, news, page retrieval, sitemaps, and trending topics through Search1API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Parithosh-Varma/searchconsole-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server