SEO MCP server
Optionally commits generated markdown SEO reports to a configured GitHub repository branch using a GitHub token.
Pulls GA4 landing-page sessions, engagement, key events, and conversion-style events (such as phone and form events) by page.
Pulls Search Console top queries, page performance, period-over-period movers, UK local/location visibility, and URL indexing/coverage inspection.
Runs PageSpeed Insights for mobile and desktop to retrieve Core Web Vitals and Lighthouse performance scores.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SEO MCP server
Want this set up for your business? AI WORKLABS can host this server, connect your Google accounts, and send you monthly SEO reports.
Remote Model Context Protocol server that exposes Google Search Console, GA4, PageSpeed Insights, sitemap crawl, 404 discovery, and markdown SEO reports as MCP tools for Claude, Cursor, and other MCP clients.
What it does
Pull Search Console queries, pages, period-over-period movers, URL inspection, and UK local/location visibility.
Pull GA4 landing pages and conversion-style events (configurable event names).
Run PageSpeed (mobile/desktop) and crawl your sitemap for on-page SEO signals.
Reconstruct likely 404 URLs from GSC + sitemap data, live-check them, and suggest redirects.
Generate a single markdown report (optionally commit to a GitHub repo branch).
Auth is a long random secret in the URL path (https://<host>/{MCP_SECRET}/mcp). Health check: GET /health → { ok, version, commit }.
Related MCP server: Wingate SEO MCP
MCP tools
Tool | Description |
| Configured sites, integration flags (GSC / GA4 / local), and Google service account email |
| Top queries (clicks, impressions, CTR, position) |
| Top pages in Search Console |
| Query movers vs previous period |
| GSC by town/area (GB): summary, queries, |
| URL indexing / coverage inspection |
| Sessions, engagement, key events by landing page |
| Phone + form events by page |
| Core Web Vitals + Lighthouse performance score |
| Sitemap crawl: links, titles, meta, H1, alt, schema, redirects |
| GSC + sitemap URL reconstruction, live 404 checks, redirect suggestions |
| Runs the suite and returns markdown (optional GitHub commit) |
Most tools accept an optional site argument (see list_sites for ids). Phase 2 stubs (off by default): gbp_performance, bing_backlinks when ENABLE_GBP_PERFORMANCE / ENABLE_BING_BACKLINKS are true.
Quick start (local)
git clone https://github.com/hyperwebpages/seo-mcp.git
cd seo-mcp
cp .env.example .env
# Edit .env — at minimum MCP_SECRET, GSC_SITE_URL, GOOGLE_SERVICE_ACCOUNT_JSON
npm install
npm run dev
curl -s http://127.0.0.1:3100/healthRun tests (Google APIs mocked):
npm test
npm run buildGoogle API setup
Create a Google Cloud project.
Enable APIs: Google Search Console API, Google Analytics Data API, PageSpeed Insights API (recommended).
IAM → Service accounts → Create and download a JSON key. Minify to one line:
jq -c . key.json.Set
GOOGLE_SERVICE_ACCOUNT_JSON=in.env(never commit this).In Search Console, add the service account email (
client_emailin the JSON) as a user on each property you query.In GA4 Admin → Property access management, add the same email as Viewer (or Analyst). Set each property id in
GA4_PROPERTY_ID/ site config.Optional: create a PageSpeed API key and set
PAGESPEED_API_KEY.
On startup the server logs the service account email. list_sites returns it as googleServiceAccountEmail.
Site configuration
Option A — single site (env vars): GSC_SITE_URL, SITE_ORIGIN, GA4_PROPERTY_ID, SITE_DISPLAY_NAME, SITE_LOCATION, etc. Default site id is default unless you set DEFAULT_SITE_ID. See .env.example.
Option B — multiple sites (JSON): set SEO_SITES_JSON to an array of site objects, or point SEO_SITES_FILE at a file (for example config/seo-sites.json copied from config/seo-sites.example.json). Optional DEFAULT_SITE_ID must match an entry id.
When SEO_SITES_JSON or SEO_SITES_FILE is set, it replaces the single-site env block.
Connect Claude or Cursor
Use Streamable HTTP transport with your public URL:
https://<SEO_MCP_HOST>/<MCP_SECRET>/mcpReplace placeholders with your hostname and secret. Do not share the secret in screenshots or issue reports.
HTTP endpoints
Method | Path | Purpose |
|
| Liveness |
|
| MCP Streamable HTTP |
|
| Batch report trigger ( |
Docker / self-hosted deploy
Copy
.env.example→.envon the server and fill in production values.Build and run:
docker compose up -d --build
curl -s "https://${SEO_MCP_HOST}/health"docker-compose.yml includes Traefik labels; set SEO_MCP_HOST in .env. Adjust labels if you use another reverse proxy.
Optional: configure SEO_MCP_DEPLOY_DIR and SSH credentials, then use ./scripts/deploy.sh to pull main and rebuild on a VPS. See AGENTS.md for agent-oriented notes.
GitHub Actions: CI runs npm test and npm run build on every push. An optional Deploy to VPS workflow is workflow_dispatch only when you configure repository secrets.
Environment variables
See .env.example for the full list. Never commit .env, service account JSON files, or tokens.
Report output
generate_seo_report (and /run-report) produce markdown with summary metrics, query movers, and actionable tasks (page URL, suggested Next.js path, priority). With GITHUB_TOKEN and WEBSITE_REPO, reports can commit to WEBSITE_REPORT_BRANCH (default seo-reports).
Contributing
See CONTRIBUTING.md. MIT licensed — Copyright © 2026 AI WORKLABS Ltd.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
SEO MCP: Search Console, GA4, SERP and domain data, rank tracking, AI citations and site fixes.
Hosted MCP for Google Search Console, Bing Webmaster Tools, GA4 and PageSpeed. OAuth, no install.
Audit, rank-track and analyze SEO for sites via an authenticated MCP server.
Ask Claude, ChatGPT or any MCP client about your Google Analytics 4 and Search Console data, plus Bing Webmaster Tools when connected, for every site you manage, with one Google sign-in. Read only: traffic changes, why a page dropped, top queries and pages, quick-win queries, AI assistant referral traffic, URL indexing, sitemaps, custom GA4 reports and client reports. Built for site owners and agencies with many sites. Free for 1 site.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying Google Search Console data, Core Web Vitals, and PageSpeed insights from the terminal or via MCP tools.MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural-language, read-only analysis of your own Google Search Console and Google Analytics 4 data, including search performance, engagement, sitemap health, ranking opportunities, and deterministic SEO audits through MCP clients like ChatGPT.MIT
- AlicenseNot gradedqualityBmaintenanceEnables SEO audits, keyword research, rank tracking, and Core Web Vitals reporting through an MCP interface using only free services.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceConnects MCP clients to live SEO data and workflows for keyword research, SERPs, rank tracking, site audits, backlinks, Search Console, GA4, local SEO, and AI visibility, with reporting support.MIT