gsc-mcp
Turns Google Search Console into an SEO copilot by enabling natural language queries for search analytics, URL inspection, sitemap management, and opportunity discovery.
README
gsc-mcp
A Model Context Protocol (MCP) server that turns Google Search Console into an SEO copilot for any MCP client (Claude Desktop, Claude Code, Cursor, …). Query search analytics, inspect URLs, manage sitemaps, switch between properties, and surface SEO opportunities — in plain language.
Status: Phase 1. The GSC data layer + multi-site + onboarding are built and working. Coverage-report reconstruction, on-page audits, page-speed, scoring, and a dashboard are on the roadmap — see SPEC.md.
Install & connect (Tier 0: bring-your-own Google client)
A hosted "just sign in" client is coming; for now you create a one-time Google Cloud client.
1. Google Cloud (once):
- Create or pick a project at https://console.cloud.google.com/.
- Enable the Google Search Console API (and, later, the PageSpeed Insights API).
- OAuth consent screen → External → add your Google account as a test user (test users skip app verification).
- Credentials → Create OAuth client ID → type Desktop app.
- Copy the Client ID and Client secret.
2. Sign in (once):
GSC_OAUTH_CLIENT_ID=xxx GSC_OAUTH_CLIENT_SECRET=yyy npx -y @ajmalaksar/gsc-mcp login
A browser opens; approve access. The token is stored at ~/.gsc-mcp/token.json (mode 0600). You can also let Claude do this in-conversation with the auth_login tool.
3. Add to your MCP client (Claude Desktop / generic):
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "@ajmalaksar/gsc-mcp", "serve"],
"env": {
"GSC_OAUTH_CLIENT_ID": "xxx",
"GSC_OAUTH_CLIENT_SECRET": "yyy",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}
Claude Code one-liner: claude mcp add gsc -- npx -y @ajmalaksar/gsc-mcp serve.
CLI
gsc-mcp login Sign in with Google (opens a browser)
gsc-mcp logout Remove the stored token
gsc-mcp status Authentication + onboarding status
gsc-mcp setup Guided first-run
gsc-mcp sites … Manage the property registry (list / add / remove / default)
gsc-mcp serve Start the MCP server over stdio (default)
Multi-site
siteUrl is optional on every tool. It resolves in order: explicit arg → session active site → persisted default. Register friendly aliases so you can say "the blog":
gsc-mcp sites add blog sc-domain:example.com
gsc-mcp sites default blog
In chat: use_site switches the active property; account_overview gives a portfolio view across all properties.
Tools
auth_status, auth_login, list_sites, use_site, get_active_site, set_default_site, account_overview, gsc_deep_link, query_search_analytics, top_queries, top_pages, find_opportunities, compare_periods, inspect_url, coverage_report, refresh_coverage, get_pages_in_bucket, list_sitemaps, get_sitemap. With GSC_ENABLE_WRITE=1: submit_sitemap, delete_sitemap.
Coverage report (refresh_coverage → coverage_report → get_pages_in_bucket) reconstructs the "Page indexing" report the GSC API won't export in bulk: it gathers candidate URLs from your sitemaps and analytics, inspects them within the 2,000/day per-property quota (resumable), caches the results under ~/.gsc-mcp/sites/, and buckets them by index status.
Develop & extend
npm install
npm run build
npm test
The server is a tool registry. To add a capability, create src/tools/<group>.ts exporting register: ToolModule, then add it to MODULES in src/tools/index.ts. Each module receives the McpServer and a shared ToolContext (auth, GSC client, site resolution). See the architecture notes in SPEC.md.
License
MIT © Ajmal Aksar
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。