mcp-seo-audit
This server provides a comprehensive SEO and performance auditing toolkit with 30 tools, integrating Google Search Console, Indexing API, CrUX, PageSpeed Insights, and local Lighthouse.
Property Management: List, add, or remove Google Search Console (GSC) properties.
Search Analytics: Query clicks, impressions, CTR, and position data with filters, dimensions, regex, pagination, and date ranges; compare periods; get performance overviews; and find queries driving traffic to specific pages.
URL Inspection: Inspect single URLs (indexing status, canonical, robots, rich results, mobile usability) or batch-inspect up to 50 URLs at once.
Indexing API: Request indexing or removal of URLs, batch-submit multiple URLs, and check indexing notification status.
Sitemaps: List, submit, or delete sitemaps in GSC.
Core Web Vitals & Performance: Fetch CrUX field data (LCP, CLS, INP, TTFB) by URL or origin; run PageSpeed Insights for lab/field data; execute local Lighthouse audits with category scores and failing audit summaries.
Technical SEO: Inspect robots.txt, validate XML sitemaps, extract on-page SEO signals (title, meta, headings, structured data, images), crawl sites to surface duplicate titles and missing tags, and run full live SEO audits without GSC access.
SEO Analysis: Identify striking-distance keywords (positions 5–20), detect keyword cannibalization, and split branded vs. non-branded search traffic.
Site Audit: Generate an all-in-one report covering sitemap health, indexing status, canonical mismatches, and a performance summary.
Authentication: Reauthenticate Google accounts by clearing cached OAuth tokens and initiating a new login flow.
Provides capabilities for requesting URL indexing or removal via the Web Search Indexing API and retrieving Core Web Vitals performance metrics through the Chrome UX Report (CrUX) API.
Utilizes Google Cloud Console for managing API credentials and enabling the Search Console and Web Search Indexing APIs required for site analysis.
Offers comprehensive tools for managing properties, querying search performance analytics, inspecting URL status, and performing SEO audits within Google Search Console.
mcp-seo-audit
A Model Context Protocol (MCP) server for SEO auditing with Google Search Console, Indexing API, Chrome UX Report, PageSpeed Insights, local Lighthouse, robots.txt checks, sitemap analysis, on-page SEO inspection, crawl audits, and live site analysis. Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client.
Forked from AminForou/mcp-gsc and expanded into a broader technical SEO and performance audit server with 30 tools and a full test suite.
What It Does
Category | Tools | Description |
Property Management |
| List, add, and remove GSC properties |
Search Analytics |
| Query clicks, impressions, CTR, position with filtering, dimensions, and period comparison |
URL Inspection |
| Check indexing status, crawl info, canonical, robots for one or many URLs |
Indexing API |
| Submit/remove URLs from Google's index via the Indexing API |
Sitemaps |
| List, submit, and delete sitemaps |
Core Web Vitals |
| LCP, FID, CLS, INP, TTFB via the Chrome UX Report (CrUX) API |
Performance Audits |
| Run PageSpeed Insights and local Lighthouse audits with category scores, failing audit summaries, and automatic Lighthouse fallback when PSI errors or quota fails |
Technical SEO |
| Inspect robots.txt, validate sitemaps, extract on-page SEO signals, rank findings by severity, crawl internal pages, and run a live SEO audit without GSC access |
SEO Analysis |
| Find keywords at positions 5-20, detect pages competing for the same query, split branded vs non-branded traffic |
Site Audit |
| All-in-one report: sitemap health, indexing status, canonical mismatches, performance summary |
Auth |
| Switch Google accounts by clearing cached OAuth tokens |
30 tools total.
Setup
1. Google API Credentials
OAuth (recommended)
Go to Google Cloud Console
Enable the Search Console API and Web Search Indexing API
Create an OAuth 2.0 Client ID (Desktop app)
Download
client_secrets.json
Service Account
Create a service account in Google Cloud Console
Download the JSON key file
Add the service account email to your GSC properties
2. Install
Option A: PyPI
MCP clients can run the PyPI package directly:
uvx mcp-seo-auditOr install it as a persistent command:
pipx install mcp-seo-auditOption B: Source checkout
git clone https://github.com/GiorgiKemo/mcp-seo-audit.git
cd mcp-seo-audit
python -m venv .venv
# Activate:
# macOS/Linux: source .venv/bin/activate
# Windows: .venv\Scripts\activate
pip install -r requirements.txt3. Configure Your MCP Client
Claude Code (~/.claude/settings.json)
With the PyPI package:
{
"mcpServers": {
"seo-audit": {
"command": "uvx",
"args": ["mcp-seo-audit"],
"env": {
"GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
"PAGESPEED_API_KEY": "your-google-api-key",
"CRUX_API_KEY": "your-google-api-key"
}
}
}
}With a source checkout:
{
"mcpServers": {
"seo-audit": {
"command": "/path/to/mcp-seo-audit/.venv/bin/python",
"args": ["/path/to/mcp-seo-audit/gsc_server.py"],
"env": {
"GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
"PAGESPEED_API_KEY": "your-google-api-key",
"CRUX_API_KEY": "your-google-api-key"
}
}
}
}Claude Desktop (claude_desktop_config.json)
Same JSON structure — see Claude Desktop MCP docs for config file location.
4. Optional: Performance API Keys
For field and lab performance data, set CRUX_API_KEY and PAGESPEED_API_KEY in the env block:
"env": {
"GSC_OAUTH_CLIENT_SECRETS_FILE": "/path/to/client_secrets.json",
"CRUX_API_KEY": "your-google-api-key",
"PAGESPEED_API_KEY": "your-google-api-key"
}You can also set GOOGLE_API_KEY; the server uses it as the PageSpeed Insights fallback key.
Environment Variables
Variable | Required | Default | Description |
| OAuth |
| Path to OAuth client secrets |
| Service account |
| Path to service account key |
| No |
| Set to |
| No |
|
|
| No | none | Google API key for Core Web Vitals (CrUX) |
| No | none | Google API key for PageSpeed Insights / Lighthouse API calls |
| No | none | Fallback source for |
| No | auto-detect | Optional explicit path to Chrome/Chromium for local Lighthouse CLI |
| No |
| Enables mutating tools such as adding/removing GSC properties, sitemap submission/deletion, and Indexing API publish calls |
| No |
| Allows live audit fetches against localhost/private/reserved IPs; keep disabled except trusted local testing |
| No |
| Maximum bytes read from a fetched page, robots.txt, or sitemap response |
| No |
| Maximum redirects followed by live audit fetches |
| No |
| Maximum sitemap URLs parsed from one sitemap document |
| No |
| Hard upper bound for |
| No | auto-detect | Explicit Lighthouse executable path. Preferred over |
| No |
| Allows |
| No |
| Adds Chrome |
Example Prompts
"List my GSC properties"
"Show search analytics for cdljobscenter.com last 28 days"
"Find striking distance keywords for my site"
"Detect keyword cannibalization"
"Run a full site audit"
"Check Core Web Vitals for cdljobscenter.com"
"Run PageSpeed Insights for https://example.com"
"Run a local Lighthouse audit for https://example.com"
"Inspect robots.txt for https://example.com"
"Analyze https://example.com/sitemap.xml"
"Analyze on-page SEO for https://example.com/jobs"
"Crawl https://example.com and report duplicate titles"
"Run a live SEO audit for https://example.com"
"Inspect indexing status of these URLs: /jobs, /companies, /pricing"
"Request indexing for https://mysite.com/new-page"
"Compare search performance this month vs last month"Tests
96 tests covering all 30 tools with mocked Google/API/web-audit calls:
# Activate venv first
python -m pytest test_gsc_server.py -vWhat Changed From the Original
30 tools — added PSI, local Lighthouse, robots.txt inspection, sitemap validation, page SEO analysis, crawl audits, and live site audits
Robustness fixes — OAuth scope alignment, sort direction mapping, origin/URL detection, sitemap BOM and plain-text handling, external redirect crawl guards, empty rows handling, API key redaction, service caching, and stale cache handling on reauth
96-test QA suite — coverage for GSC, CrUX, PSI, Lighthouse CLI, fallback behavior, robots, sitemaps, crawl audits, safety gates, auth scopes, and live-audit composition
Security — private/local network fetches blocked by default, mutating Google tools gated behind an explicit env flag, and API keys redacted from error messages
Performance — Google API service objects cached, async sleep instead of blocking, async CrUX HTTP calls, PSI-to-Lighthouse fallback, plus lab-performance tooling on top of CrUX field data
Audit quality — local-preview aware canonical warnings, visible-content parsing that ignores
noscriptduplicates, severity-ranked SEO findings, image alt audits, crawlable-link checks, invalid JSON-LD detection, viewport/lang checks, and stricter canonical/robots diagnostics
License
MIT. See LICENSE.
Based on AminForou/mcp-gsc.
Maintenance
Appeared in Searches
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/GiorgiKemo/mcp-seo-audit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server