mcp-seo
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-seo run a full SEO audit on https://example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-SEO
Open-source SEO analysis toolkit for AI agents.
MCP-SEO gives any LLM agent — or human — a complete suite of SEO auditing tools, accessible both as a CLI and as a Model Context Protocol (MCP) server. Point it at a URL and get structured, Markdown-formatted reports on meta tags, headings, links, images, performance, mobile-friendliness, structured data, and more.
Features
21 CLI commands covering on-page SEO, technical SEO, performance, accessibility, and content analysis
18 MCP tools exposing the same capabilities to any MCP-compatible client (Claude Desktop, Cursor, OpenCode, ...)
Headless browser rendering via Playwright/Chromium for JavaScript-heavy pages
Lighthouse-style scoring (0-100) with per-category breakdowns
Multi-page site crawler with duplicate detection and robots.txt respect
Structured output — every analyzer returns Pydantic models (JSON) and Markdown reports
Configurable — all timeouts and thresholds overridable via
MCP_SEO_*env varspip-installable —
pip install mcp-seoand you're ready to go
Related MCP server: seo-toolkit-mcp
Installation
pip install mcp-seo
# Or with pipx for isolated CLI usage
pipx install mcp-seo
# Or directly from GitHub
pip install git+https://github.com/g-battaglia/mcp-seo.gitAfter installing, set up the headless browser (one-time):
mcp-seo setupQuick Start
# Lighthouse-style audit with scoring
mcp-seo lighthouse https://example.com
# Full comprehensive report (all analyzers combined)
mcp-seo report https://example.com
# Individual analyzers
mcp-seo meta https://example.com # Title, description, OG, Twitter, canonical
mcp-seo headings https://example.com # Heading hierarchy (h1-h6)
mcp-seo links https://example.com # Internal/external, nofollow, anchors
mcp-seo images https://example.com # Alt text, lazy loading, dimensions, format
mcp-seo content https://example.com # Word count, readability, keywords, n-grams
mcp-seo headers https://example.com # Caching, security, compression, redirects
mcp-seo sitemap https://example.com # XML sitemap discovery and validation
mcp-seo robots https://example.com # robots.txt rules and directives
mcp-seo structured-data https://example.com # JSON-LD, Microdata, RDFa
mcp-seo performance https://example.com # Core Web Vitals (TTFB, FCP, LCP)
mcp-seo mobile https://example.com # Viewport, tap targets, font sizes
mcp-seo url-structure https://example.com # URL length, depth, tracking params
mcp-seo accessibility https://example.com # ARIA, landmarks, skip-nav, score
# Site crawler
mcp-seo crawl-site https://example.com # Crawl site, find duplicates
# Page fetching
mcp-seo crawl https://example.com # Rendered HTML (JS executed)
mcp-seo fetch https://example.com # Raw HTTP response (JSON)
# Utilities
mcp-seo screenshot https://example.com
mcp-seo og-image -t "Title" -s "Subtitle" -o output.pngMCP Server
MCP-SEO includes a built-in Model Context Protocol server that exposes all SEO tools to any MCP-compatible AI client.
mcp-seo mcpClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-seo": {
"command": "mcp-seo",
"args": ["mcp"]
}
}
}OpenCode
Add to your opencode.json:
{
"mcpServers": {
"mcp-seo": {
"command": "mcp-seo",
"args": ["mcp"]
}
}
}If you installed from source with
uvinstead ofpip, use"command": "uv"with"args": ["run", "--directory", "/path/to/mcp-seo", "mcp-seo", "mcp"].
Available MCP Tools
Tool | Description |
| Render page with headless Chromium, return full HTML |
| Fetch raw HTTP response as JSON |
| Title, description, OG, Twitter, canonical, viewport |
| Heading hierarchy (h1-h6), single H1, skip checks |
| Internal/external links, nofollow, anchor text |
| Alt text, lazy loading, dimensions, modern formats |
| Word count, readability, keywords, n-grams |
| Caching, security, compression, redirect chain |
| XML sitemap discovery and validation |
| robots.txt rules, crawl-delay, sitemap directives |
| JSON-LD, Microdata, RDFa extraction |
| TTFB, FCP, LCP, DOM nodes, requests, resource sizes |
| Viewport, font sizes, tap targets, horizontal scroll |
| URL length, depth, separators, tracking params |
| ARIA landmarks, skip-nav, forms, images, score |
| Lighthouse-style scoring (0-100) per category |
| Comprehensive report combining all analyses |
| Multi-page crawler with cross-page analysis |
For LLM Agents
MCP-SEO is designed to be used autonomously by AI agents. All tools produce structured Markdown output that is easy to parse, quote, and reason about.
See AGENTS.md for recommended workflows: quick audits, comprehensive audits, competitive analysis, and technical audits.
Claude Code Skill
MCP-SEO is available as a Claude Code skill:
npx @anthropic-ai/claude-code skills add g-battaglia/mcp-seoThis installs the mcp-seo skill, giving Claude Code direct access to all 18 SEO analysis tools with recommended audit workflows. The skill auto-triggers on SEO-related prompts and guides the agent to use the right tools for each analysis.
Development
git clone https://github.com/g-battaglia/mcp-seo.git
cd mcp-seo
uv sync --group dev
uv run mcp-seo setup
uv run mcp-seo --helpTech Stack
Component | Library |
CLI | |
MCP server | FastMCP (mcp SDK) |
Browser | Playwright (headless Chromium) |
HTTP client | |
HTML parsing | |
Data models |
License
Available Tools
18 toolsanalyze_accessibilityA
Analyze page accessibility: ARIA landmarks (main, nav, banner), skip navigation links, ARIA roles/labels, image alt text audit, form input labeling, table headers, link accessible text, and focus management (tabindex). Returns a score out of 100.
Inputs: url (required). Returns: result
analyze_contentA
Analyze page content: word count, Flesch-Kincaid readability score, reading grade level, keyword density, sentence analysis, text-to-HTML ratio, top keywords, bigrams, trigrams, and keyword stuffing detection.
Inputs: url (required). Returns: result
analyze_headersA
Inspect HTTP response headers: caching (Cache-Control, ETag), security (HSTS with max-age validation, CSP, X-Frame-Options), SSL certificate validation, cookie security (Secure/HttpOnly/SameSite), compression, server info, and redirect chain analysis.
Inputs: url (required). Returns: result
analyze_headingsA
Extract and validate the heading hierarchy (h1-h6). Checks for single H1, skipped levels, empty headings, duplicate headings, and long headings (>70 chars).
Inputs: url (required). Returns: result
analyze_imagesA
Audit images: alt text presence, lazy loading, explicit dimensions (width/height for CLS), modern format usage (WebP/AVIF), srcset and picture element analysis.
Inputs: url (required). Returns: result
analyze_linksA
Analyze all links on a page: internal vs external count, nofollow/sponsored/ugc detection, anchor text analysis, pagination detection, follow ratio, and optional broken link checking.
Inputs: url (required), check_broken. Returns: result
analyze_meta_tagsA
Analyze meta tags: title (with pixel-width estimation), meta description, canonical (self-referencing check), robots, viewport, charset, lang, Open Graph tags, Twitter Card tags, hreflang tags, and favicon.
Inputs: url (required). Returns: result
analyze_mobileA
Analyze mobile-friendliness: viewport meta, responsive design detection, font sizes (<12px check), tap target sizes (48x48dp check), horizontal scroll, pinch-to-zoom disabled check, intrusive interstitial detection, and content width validation.
Inputs: url (required). Returns: result
analyze_performanceC
Measure all Core Web Vitals: TTFB, FCP, LCP, CLS (Cumulative Layout Shift), TBT (Total Blocking Time), DOM nodes, total requests, transfer size, render-blocking resources, and resource breakdown by type.
Inputs: url (required). Returns: result
analyze_robotsA
Fetch and analyze robots.txt: parses user-agent rules (Disallow/Allow), crawl-delay, sitemap directives. Detects blocking of important bots (Googlebot, Bingbot), CSS/JS resource blocking, contradictory rules, and file size limits.
Inputs: url (required). Returns: result
analyze_sitemapA
Discover and parse XML sitemaps: checks /sitemap.xml, /sitemap_index.xml, and robots.txt Sitemap directives. Validates URL count limits (50K), file size (50MB), lastmod format (W3C), and freshness.
Inputs: url (required). Returns: result
analyze_structured_dataA
Extract and validate structured data: JSON-LD, Microdata, and RDFa. Validates Schema.org required properties, checks Rich Result eligibility, detects @context and @graph handling, and recommends WebSite/Organization schemas.
Inputs: url (required). Returns: result
analyze_url_structureA
Analyze URL structure for SEO best practices: length, depth, separator usage (hyphens vs underscores), uppercase detection, tracking parameter detection, session ID detection, file extensions, and path keyword extraction.
Inputs: url (required). Returns: result
crawlA
Render a page with headless Chromium and return the full rendered HTML. Use this when the page is a SPA or uses client-side rendering.
Inputs: url (required). Returns: result
crawl_siteB
Crawl a website discovering pages via internal links. Analyzes each page for meta tags, headings, and common SEO issues. Returns a site-wide summary with cross-page duplicate detection.
Inputs: url (required), max_pages. Returns: result
fetch_pageA
Fetch the raw HTTP response without JS rendering. Returns JSON with status code, headers, body, redirect chain, and timing.
Inputs: url (required). Returns: result
full_seo_reportA
Generate a comprehensive SEO report combining ALL analyses: HTTP headers, SSL validation, meta tags, headings, links, images, structured data, content quality, sitemap, robots.txt, performance (Core Web Vitals), mobile-friendliness, and lighthouse scoring. This is the most complete analysis available.
Inputs: url (required). Returns: result
lighthouse_auditB
Run a comprehensive SEO audit with weighted continuous scoring (0-100): Meta Tags, Heading Structure, Content Quality, Images, Structured Data, Links. Returns overall score with individual check scores and severity-prioritized issues.
Inputs: url (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Each analyze_* tool targets a distinct SEO aspect (meta, headings, links, images, etc.), so most purposes are clear. However, full_seo_report, lighthouse_audit, and crawl_site all offer comprehensive analyses, which could cause some confusion about which to use for a site-wide overview.
The majority of tools follow an analyze_<resource> pattern (analyze_meta_tags, analyze_links, etc.), providing strong consistency. A few exceptions like crawl, fetch_page, lighthouse_audit, and full_seo_report deviate from this pattern, but they are still readable and recognizable.
With 18 tools, the server is slightly above the typical 3-15 well-scoped range, but the breadth is justified by the comprehensive SEO analysis domain. Each tool covers a specific checklist item, and none feel redundant or extraneous.
The toolset covers the full spectrum of on-page SEO analysis, including meta tags, content, structured data, performance, mobile usability, sitemaps, robots.txt, and site-wide crawling. It also includes comprehensive audits and a full report, leaving no obvious gaps for common SEO workflows.
Related MCP Connectors
Hosted SEO MCP server for AI agents: keyword research, live Google SERPs and Maps, local rank tracking, backlinks, site audits, competitor research, and Search Console data.
Free MCP server that audits any public URL: technical SEO, Core Web Vitals, indexing checks.
Free technical-SEO audit MCP: crawl a site, run checks, return an LLM-ready shareable report.
Your agent needs to crawl a site and say what is wrong with it — broken tags, duplicate content, pages nothing can index, resources that never load. **What you can ask for** • "Crawl this site and list every page with a duplicate title or missing description." • "Which pages are non-indexable, and why?" • "Run Lighthouse on these URLs and give me the failing audits." • "Show the internal link graph and the orphan pages." • "Give me this page's raw HTML and its microdata." **How to use it** Point any MCP client at https://mcp.aisa.one/seo-onpage/mcp and sign in with OAuth — there is no key to create or paste. 20 tools: submit a crawl and read its summary, pages, resources, links and waterfall; duplicate content and duplicate tags; keyword density; non-indexable and uncrawlable resources; parsed content, raw HTML, microdata, screenshots and Lighthouse. **Why this rather than the source** A crawler you drive from the agent, with the audit results as structured data rather than a PDF. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Find the broken pages here, then ask the same agent what those pages used to rank for — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/seo/mcp for all of it at once — rankings, keywords, backlinks, site health and AI-answer visibility across DataForSEO, Semrush and Ahrefs.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server that enables AI agents to perform comprehensive web audits using Google Lighthouse with 13+ tools for performance, accessibility, SEO, and security analysis.111,120 npm76MIT
- AlicenseAqualityBmaintenanceSEO toolkit MCP server for analyzing meta tags, robots.txt, sitemaps, keyword density, readability, and heading structure from any AI assistant that supports MCP.67 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides 23 bounded MCP tools for AI agents to perform technical SEO audits, including crawl setup, page analysis, issue detection, and report exports, all while keeping data local.7MIT
- AlicenseAqualityCmaintenanceProvides on-page SEO analysis via MCP tools, including page audits, schema extraction, robots.txt checks, sitemap parsing, and link analysis. No API keys required; works with any MCP-compatible client.515 npmMIT