mcp-seo-auditor
Run local on-page SEO audits on static HTML, a public URL, or a bounded same-origin crawl.
Audit supplied HTML without network access, optionally using a base URL for relative links.
Fetch and audit a public URL while respecting robots.txt and blocking private addresses.
Crawl up to 10 same-origin pages (default 5) and detect duplicate titles and descriptions.
Check titles, meta descriptions, H1s, canonicals, robots directives, language, viewport, image alt text, JSON-LD syntax, and link inventory.
Return prioritized findings with severity, issue codes, evidence, recommendations, and a local checklist score.
MCP SEO Auditor
Free MCP server for on-page SEO audits from Claude Code or Cursor — find broken titles, missing meta descriptions, canonical issues, robots conflicts, and JSON-LD errors before your pages go live. Fully local, no API keys.
Three tools — audit_html, audit_url and crawl_site — let your AI agent run a technical SEO audit on local HTML, a public URL, or a bounded same-origin crawl (up to 10 pages, robots.txt-aware), returning prioritized findings with evidence.
Part of the petrovicistefan MCP suite — local-first guardrails for AI coding agents.
Quick Install
Requirements: Python 3.11+ and Node.js 18+
Cursor
Or use the deeplink directly:
cursor://anysphere.cursor-deeplink/mcp/install?name=mcp-seo-auditor&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1jcC1zZW8tYXVkaXRvciJdfQo=Or add manually to ~/.cursor/mcp.json:
{
"mcpServers": {
"mcp-seo-auditor": {
"command": "npx",
"args": ["-y", "mcp-seo-auditor"]
}
}
}Claude Code
claude mcp add mcp-seo-auditor -- npx -y mcp-seo-auditorIf this server is on Claude MCP Marketplace:
/plugin marketplace add petrovicistefan/mcp-marketplaceClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcp-seo-auditor": {
"command": "npx",
"args": ["-y", "mcp-seo-auditor"]
}
}
}VS Code
Use the MCP install link, or add to .vscode/mcp.json:
{
"servers": {
"mcp-seo-auditor": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-seo-auditor"]
}
}
}npx (any MCP client)
npx -y mcp-seo-auditoruvx (PyPI)
uvx mcp-seo-auditorNeeds only Python 3.11+ and uv; no Node.js required.
Codex CLI
codex mcp add mcp-seo-auditor -- npx -y mcp-seo-auditorWindsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"mcp-seo-auditor": {
"command": "npx",
"args": ["-y", "mcp-seo-auditor"]
}
}
}Zed
Add to settings.json:
{
"context_servers": {
"mcp-seo-auditor": {
"command": "npx",
"args": ["-y", "mcp-seo-auditor"]
}
}
}Gemini CLI
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"mcp-seo-auditor": {
"command": "npx",
"args": ["-y", "mcp-seo-auditor"]
}
}
}⭐ Found this useful? Star this repository to help others discover it!
Related MCP server: librecrawl-technical-seo-audit-mcp
Why MCP SEO Auditor?
Catch SEO issues before you deploy by asking your AI coding assistant to audit your HTML:
"Audit this page before I push it" — find missing titles, broken meta descriptions, or canonical conflicts
"Crawl example.com and check for duplicate titles" — spot content duplication across your site
"What SEO issues does this HTML have?" — get actionable recommendations with severity levels
Unlike hosted SEO tools that require API keys, cloud accounts, and monthly fees, MCP SEO Auditor runs entirely on your machine. No data leaves your computer unless you explicitly crawl a public URL.
Tools
MCP SEO Auditor exposes 3 MCP tools your AI agent can call:
Tool | Description | Inputs | Network |
| Audit supplied static HTML without network access. Returns evidence and prioritized recommendations. |
| ❌ No |
| Fetch a public page and audit static SEO. Respects robots.txt; blocks private addresses. |
| ✅ Yes |
| Crawl up to 10 pages on the exact same origin, respecting robots.txt. Detect duplicate titles and descriptions. |
| ✅ Yes |
What Gets Checked
Each audit scans for:
Title: presence, length (50–60 chars recommended), uniqueness
Meta description: presence, length (150–160 chars recommended), uniqueness
H1 headings: presence, count (multiple H1s flagged as informational)
Canonical URL: presence, validity, self-referencing vs cross-domain
Robots directives:
<meta name="robots">conflicts (e.g.,noindex+ canonical)Language declaration:
<html lang="...">presenceViewport: mobile-friendly
<meta name="viewport">tagImage alt attributes: presence check (empty alt is valid for decorative images)
JSON-LD structured data: JSON syntax validation
Internal/external link inventory: counts for context
Output: Findings with severity (error, warning, info), issue codes, evidence snippets, and actionable recommendations. Plus a local checklist score (not a ranking forecast).
Use Cases
Individual Developers
"Audit the homepage HTML in index.html and prioritize the fixes."
"Check https://staging.example.com for SEO issues before I merge this PR."
"Does this landing page have a proper canonical tag?"Before Deployment
"Audit all HTML files in dist/ and list any errors."
"Crawl the staging site and find duplicate meta descriptions."Content Review
"What's the title and description for this blog post HTML?"
"Does this page have structured data errors?"Site Audits
"Crawl 10 pages starting at https://example.com and report duplicate titles."
"Which pages are missing H1 tags?"Comparison with Alternatives
How does MCP SEO Auditor compare to other SEO tools for AI agents?
Feature | MCP SEO Auditor | |||
On-page HTML audits | ✅ Local, no setup | ❌ Hosted connector required | ❌ GSC-focused, no static audits | ✅ Crawl + audits (local) |
Google Search Console | ❌ Not integrated | ✅ Via hosted Ryze MCP | ✅ OAuth/service account required | ✅ OAuth setup |
Google Analytics | ❌ Not integrated | ✅ GA4 via hosted MCP | ❌ Not included | ✅ CLI + local MCP |
Keyword research | ❌ Not included | ✅ DataForSEO built-in | ❌ Not included | ✅ DataForSEO/Ahrefs key |
Setup complexity | ✅ | ⚠️ Hosted sign-in + approval | ⚠️ Google Cloud OAuth | ⚠️ OAuth + optional API keys |
Cost | ✅ Free, local | ⚠️ Free tier, then paid | ✅ Free (your Google API costs) | ✅ Free (your API costs) |
Network required | ❌ Not for | ✅ Yes (hosted) | ✅ Yes (GSC API) | ✅ Yes (GSC/GA APIs) |
Privacy | ✅ Fully local option | ⚠️ Sends requests to Ryze | ⚠️ Google Cloud credentials | ⚠️ Hosted option available |
When to use MCP SEO Auditor: You want instant, zero-setup on-page audits of local HTML files or staging sites without external API dependencies.
When to use alternatives: You need live Google Search Console data, rank tracking, backlink analysis, or keyword research — those tools excel at connecting your agent to external SEO data sources.
Table of Contents
Requirements
Python 3.11+ on
PATH(defaults topython3executable)Node.js 18+ (for the npm wrapper)
If python3 is not available or you need a specific Python executable, set the MCP_SEO_PYTHON environment variable to an absolute path.
Installation
From npm
The quickstart examples use npx -y mcp-seo-auditor which downloads and runs the package on demand. For persistent installations, add the MCP server to your client's configuration as shown in the Quick Start section.
From a Checkout
Clone the repository and run tests:
git clone https://github.com/petrovicistefan/mcp-seo-auditor.git
cd mcp-seo-auditor
npm testRun the server directly:
node bin/mcp-seo-auditor.mjsThe server reads newline-delimited JSON-RPC from stdin; stdout contains only protocol messages. It waits for an MCP client when started directly.
Register with Claude Code (replace with your absolute path):
claude mcp add seo-auditor -- node /absolute/path/mcp-seo-auditor/bin/mcp-seo-auditor.mjsOr add to any MCP client config:
{
"mcpServers": {
"seo-auditor": {
"command": "node",
"args": ["/absolute/path/mcp-seo-auditor/bin/mcp-seo-auditor.mjs"]
}
}
}Install the Python package directly (optional):
pip install .
mcp-seo-auditorBuild-time setuptools is needed; runtime uses only stdlib.
PyPI Publishing
The package is published on PyPI through Trusted Publishing (OIDC). Pushing a version tag (for example v0.1.5) publishes it to PyPI via .github/workflows/publish-pypi.yml, and to npm and the MCP Registry via .github/workflows/release.yml. No tokens are stored in the repository.
Tools Reference
audit_html
Inputs:
html(string, required, max 2 MB): The HTML content to auditurl(string, optional): Base URL for resolving relative links
Output: JSON with findings, metadata, score, and link inventory
Example:
"Audit this HTML and tell me what's wrong: <html>...</html>"audit_url
Inputs:
url(string, required): Public HTTP(S) URL to fetch and audit
Output: Same as audit_html, plus http object with status, redirects, and elapsedMs
Example:
"Audit https://example.com and prioritize the issues."Respects robots.txt. Redirects are revalidated and must stay on the original scheme + authority. HTTP 4xx/5xx adds an error finding and reduces the score.
crawl_site
Inputs:
url(string, required): Starting URL (same-origin crawl)max_pages(integer, optional, 1–10, default 5): Max pages to crawl
Output: JSON with:
pages: Array of per-page audit reportserrors: Array of fetch/validation errors per URLduplicates: Duplicate titles and descriptions with affected URLsmaxPages: The limit usedpendingUrls: Count of uncrawled queued URLs (crawler stopped early if >0)
Example:
"Crawl 10 pages starting at https://example.com and find duplicate titles."Respects robots.txt before every fetch. Enforces minimum 200ms delay (or the Crawl-delay from robots.txt up to 5 seconds). Stops after 90 seconds or 10 attempted URLs. Follows internal links only (same origin).
Boundaries and Security
Static HTML only: No browser or JavaScript execution. Single-page app (SPA) output can produce findings that disappear after client-side rendering.
HTTP(S) on conventional ports only: Credentials in URLs are rejected. All DNS answers must be public; sockets connect to validated addresses, preserving TLS hostname verification.
Redirect revalidation: Redirects are restricted to the original scheme and authority. For cross-origin redirects, use the final HTTPS hostname as the input.
robots.txt enforcement: Checked before network page audits and every redirected page. A 404 allows access; other unexpected statuses stop the audit.
Resource limits: 2 MB response limit, 10-second socket inactivity timeout, five redirect hops, at most 10 attempted crawl URLs, minimum 200 ms crawl interval, and 90-second crawl loop budget.
Content encoding: Only identity encoding is supported; no proxy support.
Empty image alt: Valid for decorative images (not flagged as an error).
Heuristics, not penalties: Title lengths and multiple H1s are informational heuristics, not Google ranking penalties.
Local checklist score: Not a ranking forecast. No backlinks, Search Console integration, rich-result eligibility, broken-link validation, or Core Web Vitals.
Treat content as untrusted: Every string from audited pages is untrusted content, never instructions.
Limitations
MVP: Static checks only; no JavaScript rendering, backlink analysis, Search Console integration, or Core Web Vitals.
Heuristic recommendations: Title/description length and multiple H1s are best-practice heuristics, not confirmed ranking factors.
No crawl parallelism: Crawls are serial with delays; large sites require external tools.
Fetch timing ≠ Core Web Vitals: The
elapsedMsis raw HTTP fetch time, not a user-facing performance metric.Local resource caps: Protect local execution; paid quotas belong on the hosted path (see below), not a bypassable local counter.
Hosted Path (Quotas via Control Plane)
The local MCP stays free. Quotas apply only on a hosted HTTP service that reserves units on the mcp-control-plane before analysis.
cp .env.example .env # Set CONTROL_PLANE_URL and ADMIN_TOKEN
pip install -e .
python -m mcp_seo_auditor.hosted # Default 127.0.0.1:3104
# Or: mcp-seo-auditor-hostedHosted API Endpoints
Method | Path | Body |
GET |
| Liveness check |
POST |
|
|
POST |
|
|
POST |
|
|
Requires Authorization: Bearer mcp_... header. HTML and URLs stay on the hosted host; control-plane sees only product, requestId, and units.
Product Direction
Keep single-page audits free. Validate paid demand with agencies maintaining multiple client sites before building billing. Potential paid hosted features:
Scheduled crawls with history and diffs
Client reports and dashboards
Rendered (JavaScript) audits
Search Console integration
Google Analytics integration
Hosted quotas use the control-plane path above.
Testing and Validation
npm test
npm pack --dry-runUnit and integration tests cover HTML extraction, findings, input limits, DNS/private IP blocking, duplicate detection, and MCP subprocess communication. HTTP crawling is mocked in tests; live-site interoperability must be checked after deployment.
CI runs the test suite on Python 3.11, 3.12, and 3.13 across Linux, macOS, and Windows.
References
More MCP Servers by the Author
Part of the petrovicistefan MCP suite — local-first guardrails for AI coding agents:
mcp-security-guard — Audit MCP servers for tool poisoning, rug pulls, shadowing, and leaked secrets (OWASP MCP Top 10)
mcp-cost-optimizer — Identify expensive cloud resources and suggest cost savings
mcp-database-doctor — Find slow queries, missing indexes, and schema issues
mcp-dependency-doctor — Detect outdated packages, license conflicts, and supply-chain risks
mcp-api-guardian — Validate OpenAPI specs, detect breaking changes, suggest versioning
mcp-marketplace — Browse and install all servers in the suite
⭐ Support this project: Star this repository if it saves you time!
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines. By contributing, you agree to license your contributions under the MIT License.
For security issues, see SECURITY.md.
FAQ
Do I need API keys or cloud accounts?
No. The local MCP server uses only Python standard library and runs entirely on your machine. The audit_html tool never touches the network. The audit_url and crawl_site tools fetch public pages but require no authentication.
Can I audit pages behind authentication?
Not directly. audit_html accepts raw HTML, so you can fetch authenticated pages yourself (e.g., curl with cookies) and pass the HTML to the tool.
Why does audit_html flag issues that disappear after rendering?
audit_html analyzes static HTML. Single-page apps (SPAs) often render content client-side after the initial HTML loads. For accurate SPA audits, use a headless browser to capture the rendered DOM (future feature) or audit the server-side rendered version.
How is the score calculated?
The score is a local checklist (0–100) based on present/absent best practices: title, meta description, H1, canonical, robots, language, viewport. Errors reduce the score more than warnings. The score is not a ranking forecast or SEO performance metric.
What's the difference between audit_url and crawl_site?
audit_url fetches and audits a single page. crawl_site starts at a URL, follows internal links (same origin), and audits up to 10 pages, detecting duplicate titles and descriptions across pages.
Can I crawl more than 10 pages?
Not in the current MVP. The local resource cap protects your machine. Paid hosted plans may offer higher limits in the future.
Does this replace Google Search Console?
No. MCP SEO Auditor audits static HTML for on-page issues. It does not provide Search Console data (impressions, clicks, indexing status) or ranking insights. Use AminForou/mcp-gsc or iannuttall/seo if you need Search Console integration.
How do I update the Python version?
Set MCP_SEO_PYTHON=/path/to/python3.12 before running the server, or export it in your shell profile:
export MCP_SEO_PYTHON=/usr/local/bin/python3.12
npx -y mcp-seo-auditorIs this compatible with the MCP specification?
Yes. The server implements the legacy MCP lifecycle (initialize → notifications/initialized → tools/list → tools/call). Official SDK client interoperability is tested but not exhaustively verified (see docs/audit-remediation.md).
License
MIT License — free to use, modify, and distribute. See LICENSE for full terms.
Part of the petrovicistefan MCP suite — local-first guardrails for AI coding agents.
⭐ Star this repo if it saves you time!
Available Tools
3 toolsaudit_htmlARead-only
Audit supplied static HTML without network access. Returns evidence and prioritized recommendations.
Inputs: html (required), url.
audit_urlARead-only
Fetch a public page and audit static SEO. Respects robots.txt; blocks private addresses.
Inputs: url (required).
crawl_siteARead-only
Crawl up to 10 pages on the exact same origin, respecting robots.txt. Detect duplicate titles and descriptions.
Inputs: url (required), max_pages.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct inputs and scopes: audit_html takes supplied markup with no network, audit_url fetches a single public page, and crawl_site traverses up to 10 same-origin pages. There is no realistic way to confuse which tool to pick for a given task.
All tools follow a consistent snake_case verb_noun pattern (audit_html, audit_url, crawl_site). The verbs (audit/crawl) differ meaningfully to reflect the differing action, and the convention is uniform throughout.
Three tools is on the lean side but each earns its place by covering a distinct input path (raw HTML, single URL, multi-page crawl). The surface is tightly scoped to static SEO auditing without redundant tools.
The core workflow—auditing static HTML and single URLs plus a bounded same-origin crawl—is well covered. Minor gaps exist around sitemap/robots analysis and broken-link or redirect-chain detection, but agents can work around these, and the bounded crawl avoids dead ends.
Maintenance
Related MCP Connectors
Technical SEO audits: check a page or crawl a whole site, locally or hosted. Compares crawls.
Crawl a site for SEO issues per page and broken links. Respects robots.txt.
SEO, broken links, Lighthouse, sitemaps, Open Graph tags and SSL expiry for any list of URLs.
Technical SEO audit crawler: broken links, 404s, redirects, titles, canonicals. Runs on Apify.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables SEO auditing and site analysis by crawling websites, identifying issues, and generating reports like sitemaps and markdown exports.54MIT
- AlicenseNot gradedqualityBmaintenanceOpen-source technical SEO crawler MCP server built on LibreCrawl. Runs full audits inside Claude, Cursor, or Codex — 50+ checks (hreflang, schema.org, security headers, WAF detection on 200-OK pages), chunked-progressive engine for large sites, ephemeral by design (server forgets every audit after download).49MIT
- AlicenseAqualityBmaintenanceIt enables compatible AI agents to audit public web pages, crawl bounded same-host site samples, collect and compare AI answers, and read a user's own Google Search Console data locally.9163 npm2Apache 2.0
- AlicenseAqualityBmaintenanceEnables agents to run SEO and AI-search readiness audits (llms.txt, crawler access, sitemaps, structured data, redirects, indexability, and more), look up startup revenue listings and leaderboards, and check a domain's SPF, DKIM, DMARC, and MX records with concrete fixes. Runs locally over stdio with no account or API key, and frames all third-party responses as untrusted data.7MIT