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
<div align="center">
Searchlight
Technical SEO that fixes itself.
An autonomous technical-SEO and analytics agent, delivered as a Model Context Protocol (MCP) server. Point it at your site: it finds what's broken, explains it in plain language, fixes it in your repository, deploys, and verifies the fix is live.
Website ·
The /searchlight skill ·
Quickstart ·
Tools
</div>
The loop
Most SEO tools stop at the diagnosis. Searchlight runs the whole loop and proves the last step.
| Step | What it does |
|---|---|
| Detect | Reads your Search Console and Analytics data, crawls key pages, finds indexing, canonical, redirect, sitemap, speed and on-page issues. |
| Explain | Triages every finding in plain language with a worry-level: fix now, worth improving, or normal and safe to ignore. |
| Fix | Edits your repository, framework-aware: canonical and host conflicts, redirect loops, sitemaps, metadata, structured data, the analytics tag. |
| Deploy | Commits and ships through your existing pipeline. Edits only count once they are live. |
| Verify | Re-audits the live site and confirms the fix in a real browser: the redirect resolves, the tag fires, the canonical agrees. |
Proof
A live run on zawaaj.in (a custom Next.js site with a host and canonical conflict and
missing analytics) went from audit 90 → 98 — canonical set, host redirect aligned
(www → apex), meta trimmed, GA4 installed and verified firing, sitemap submitted — in about
50 minutes (≈25 minutes active; the rest idle waiting on a redeploy), versus a 4–6 hour
manual baseline for a skilled developer. The full annotated run is on the
website.
Searchlight automates the diagnosis and the fix. It does not design your ecommerce event-tracking plan — that part is still a human's job.
Quickstart
1. Add it to your MCP client (Claude Code shown; works in any MCP client):
claude mcp add searchlight -- npx -y @ajmalaksar/searchlight serve --setup
Or, in a generic client config:
{
"mcpServers": {
"searchlight": { "command": "npx", "args": ["-y", "@ajmalaksar/searchlight", "serve"] }
}
}
2. Sign in with Google (one local OAuth sign-in for Search Console and Analytics; the token is stored only on your machine):
npx -y @ajmalaksar/searchlight login --setup
3. Install the /searchlight skill so your agent runs the whole loop with one command:
npx -y @ajmalaksar/searchlight skill install
4. Ask:
/searchlight audit zawaaj.in
First time on Google Cloud? The bundled client lets most users skip setup. To bring your own (Tier 0), create a Desktop app OAuth client (enable the Google Search Console API and PageSpeed Insights API, add yourself as a test user) and pass
SEARCHLIGHT_OAUTH_CLIENT_ID/SEARCHLIGHT_OAUTH_CLIENT_SECRETtologin.Renamed from
gsc-mcp: the legacy~/.gsc-mcpdirectory andGSC_*environment variables still resolve, so an existing install keeps working without re-authenticating.
The /searchlight skill
skill install drops a skill into your AI client so the agent orchestrates the full loop
instead of you calling raw tools. It routes on the first word:
| Command | Does |
|---|---|
/searchlight audit [site] |
Read-only diagnosis: detect + explain, triaged. No changes. |
/searchlight setup [site] |
The full guided loop: interview → detect → confirm → provision → fix → deploy → verify. |
/searchlight fix [site] |
Already audited? Go straight to plan → confirm → fix → deploy → verify. |
It always confirms before any provisioning, code edit, sitemap submit, or deploy.
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, diagnose_site, snapshot_baseline, list_snapshots, progress_report,
ga_list_properties, ga_measurement_id, ga_traffic, ga_top_pages, ga_report,
list_sitemaps, get_sitemap. With --write / --setup: submit_sitemap, delete_sitemap,
and the GA4 / verification provisioning tools.
Coverage report reconstructs the "Page indexing" report the GSC API won't export in bulk:
it gathers candidate URLs from sitemaps and analytics, inspects them within the 2,000/day
per-property quota (resumable), caches the results under ~/.searchlight/sites/, and buckets
them by index status.
Baseline & progress (snapshot_baseline → … fix … → snapshot_baseline → progress_report)
freeze a site's health on a given day, then diff two days into a plain-English before→after of
what improved — which issues resolved, which are new, and how score and traffic moved.
Local-first & private
Searchlight runs as a local server. You sign in with your own Google account; the token is stored only on your device. There is no hosted backend and no data warehouse — each person runs their own. Read-only by default; write and provisioning scopes are opt-in, requested only when you start a setup action. Open source and MIT licensed. See the Privacy Policy.
CLI
searchlight login Sign in with Google (opens a browser)
searchlight logout Remove the stored token
searchlight status Authentication + onboarding status
searchlight setup Guided first-run
searchlight sites … Manage the property registry (list / add / remove / default)
searchlight skill install Install the /searchlight skill into your AI client (--here for this project)
searchlight serve Start the MCP server over stdio (default)
Develop
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. See SPEC.md
for the architecture.
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 模型以安全和受控的方式获取实时的网络信息。