Skip to main content
Glama

Doruva SEO MCP

PyPI Python License: GPL v2+ Tests

An open-source Model Context Protocol server that gives AI assistants real SEO analysis tools: on-page audits, a polite site crawler, structured data validation, robots.txt and sitemap checks, redirect tracing, PageSpeed Insights and Google Search Console.

It works with any client that speaks MCP over stdio: Claude Desktop, Claude Code, Codex, Cursor, VS Code, Windsurf, Zed and others. Ask your assistant things like "audit https://example.com/pricing and tell me what to fix first" or "crawl my site and list broken internal links with the pages that link to them".

Made by Doruva, who also make free tools for agencies: the Doruva SEO WordPress plugin and the Doruva SEO Inspector browser extension.

  • Free and open source (GPL-2.0-or-later), no account, no telemetry.

  • Honest user agent: DoruvaSEO-MCP/1.0.0 (+https://github.com/doruva/doruva-seo-mcp).

  • Safe by default: SSRF protection, size and time limits, robots.txt respected by the crawler.

Static HTML only. Pages are analysed as delivered by the server. JavaScript is never executed, so content that is rendered client-side is not seen. For JavaScript-heavy sites, compare with Google's URL Inspection (the gsc_inspect_url tool) or a rendering crawler.

Tools

Tool

What it does

audit_page(url)

On-page report: status, redirect chain, response time, title and meta description with length and estimated pixel width, canonical, meta robots / X-Robots-Tag, robots.txt verdict, lang, hreflang, viewport, H1-H6 outline, word count, Open Graph / Twitter tags, link counts, images missing alt, JSON-LD types, an indexability verdict and a prioritised issue list with fix hints.

crawl_site(start_url, max_pages=50, max_depth=3, same_host_only=True)

Polite crawler (robots.txt, 4 parallel requests, delay, time budget, hard cap 500 pages). Per-URL summaries plus broken internal links with source pages, redirect chains, duplicate titles/descriptions, missing H1, noindex pages, canonical mismatches, orphan candidates (in the sitemap only) and indexable pages missing from the sitemap.

validate_schema(url=None, json_ld=None)

Extracts JSON-LD (including @graph), reports parse errors with line/column and checks required/recommended properties for Article, Product/Offer/AggregateRating, Organization, LocalBusiness, BreadcrumbList, FAQPage, HowTo, Event, Recipe, VideoObject, JobPosting and SoftwareApplication. Returns the Rich Results Test link.

check_robots(url, user_agent="Googlebot")

RFC 9309 / Google matching: most specific group, longest match, Allow wins ties, * and $ wildcards; 4xx = allow-all, 5xx/429 = disallow-all. Returns the matched rule and listed sitemaps.

check_sitemap(url, sample_size=20)

Discovers sitemaps (robots.txt, /sitemap.xml, /sitemap_index.xml, /wp-sitemap.xml), parses indexes, urlsets and gzip, counts URLs, lastmod stats, and samples URLs for non-200, noindex and canonicalised entries. Flags other-host and robots-blocked URLs.

check_redirects(url, check_variants=True)

Full redirect chain with status codes and timings, loop detection, and http/https + www/non-www consistency.

pagespeed(url, strategy="mobile")

Google PageSpeed Insights v5: performance score, Core Web Vitals field data (LCP, INP, CLS), lab metrics and top opportunities.

gsc_list_sites()

Search Console properties available to your credentials.

gsc_search_analytics(site_url, start_date, end_date, dimensions=["query"], row_limit=100, filters=None)

Clicks, impressions, CTR and position by query, page, country, device, date.

gsc_inspect_url(site_url, url)

URL Inspection API: index status, coverage, Google-selected canonical, rich results, mobile usability.

gsc_sitemaps(site_url)

Submitted sitemaps with errors and warnings.

All tools return structured JSON. Errors come back as {"error": "..."} rather than exceptions.

Prompts: technical_seo_audit(domain) (a step-by-step audit using every tool), schema_review(url) and page_review(url, keyword). Resource: doruva://seo-checklist, a short technical SEO checklist.

Example

You: Audit https://wordpress.org/ and summarise the top issues.

Assistant -> audit_page({"url": "https://wordpress.org/"})
<- {"status": 200, "title": {"text": "Blog Tool, Publishing Platform, and CMS | WordPress.org",
     "length": 55, "pixel_width": 512, "max_pixel_width": 580},
    "canonical": {"status": "self", "href": "https://wordpress.org/"},
    "indexability": {"indexable": true, "reasons": [], "notes": []},
    "issues": [{"severity": "warning", "code": "description_multiple",
                "message": "2 meta descriptions found.", "fix": "Keep one meta description."}, ...],
    "summary": {"errors": 0, "warnings": 2, "notices": 0}, ...}

More things to ask:

  • "Is /wp-admin/ blocked for GPTBot on example.com?" (check_robots)

  • "Check example.com's sitemap and tell me which URLs return redirects or are noindex." (check_sitemap)

  • "Do http://, https://, www and non-www all end up on one URL?" (check_redirects)

  • "Validate this JSON-LD for a Product rich result: {...}" (validate_schema)

  • "Top 20 queries for sc-domain:example.com in the last 28 days with CTR under 2 %." (gsc_search_analytics)

Related MCP server: OpenSEO-Lite

Install

You need uv. uvx downloads and runs the server in an isolated environment; there is nothing else to install.

uvx doruva-seo-mcp --version

Claude Desktop

Edit claude_desktop_config.json (Settings > Developer > Edit Config):

{
  "mcpServers": {
    "doruva-seo": {
      "command": "uvx",
      "args": ["doruva-seo-mcp"],
      "env": {
        "PAGESPEED_API_KEY": "optional-google-api-key",
        "DORUVA_GSC_CREDENTIALS": "/path/to/service-account.json"
      }
    }
  }
}

If Claude Desktop cannot find uvx, use its full path (which uvx on macOS/Linux, where uvx on Windows, for example C:\\Users\\you\\.local\\bin\\uvx.exe).

Claude Code

claude mcp add doruva-seo -- uvx doruva-seo-mcp
# with environment variables, available in every project:
claude mcp add doruva-seo --scope user -e PAGESPEED_API_KEY=your-key -- uvx doruva-seo-mcp

Codex

~/.codex/config.toml:

[mcp_servers.doruva-seo]
command = "uvx"
args = ["doruva-seo-mcp"]
# crawls and PageSpeed runs can take a while
tool_timeout_sec = 300

[mcp_servers.doruva-seo.env]
PAGESPEED_API_KEY = "optional-google-api-key"

Or: codex mcp add doruva-seo -- uvx doruva-seo-mcp

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "doruva-seo": {
      "command": "uvx",
      "args": ["doruva-seo-mcp"]
    }
  }
}

VS Code

.vscode/mcp.json in your workspace (or run MCP: Add Server from the command palette):

{
  "servers": {
    "doruva-seo": {
      "type": "stdio",
      "command": "uvx",
      "args": ["doruva-seo-mcp"]
    }
  }
}

Other clients

Any MCP client that can launch a stdio server works: the command is uvx with the argument doruva-seo-mcp. You can also pip install doruva-seo-mcp and run doruva-seo-mcp.

Google Search Console setup

The gsc_* tools are optional. Without credentials they return setup instructions instead of failing.

  1. In the Google Cloud Console create (or pick) a project.

  2. Enable the Google Search Console API (APIs & Services > Library).

  3. Create a service account (IAM & Admin > Service Accounts), open it, go to Keys > Add key > JSON and download the key file. Keep it private.

  4. In Search Console, for each property open Settings > Users and permissions > Add user, paste the service account e-mail (name@project.iam.gserviceaccount.com) and give it Restricted (read) or Full permission.

  5. Point the server at the key with DORUVA_GSC_CREDENTIALS (or GOOGLE_APPLICATION_CREDENTIALS) in your client's env block, then restart the client.

Use sc-domain:example.com for domain properties and https://www.example.com/ (with the trailing slash) for URL-prefix properties.

OAuth instead of a service account: set DORUVA_GSC_CLIENT_ID, DORUVA_GSC_CLIENT_SECRET and DORUVA_GSC_REFRESH_TOKEN (an OAuth client of type Desktop and a refresh token with the https://www.googleapis.com/auth/webmasters.readonly scope). An authorized_user JSON file created by gcloud auth application-default login --scopes=...webmasters.readonly also works as DORUVA_GSC_CREDENTIALS.

The server only requests the read-only Search Console scope.

Environment variables

Variable

Purpose

PAGESPEED_API_KEY

Optional Google API key for PageSpeed Insights (higher quota than anonymous use).

DORUVA_GSC_CREDENTIALS

Path to a service account JSON key (or the JSON itself) for Search Console.

GOOGLE_APPLICATION_CREDENTIALS

Used when DORUVA_GSC_CREDENTIALS is not set.

DORUVA_GSC_CLIENT_ID, DORUVA_GSC_CLIENT_SECRET, DORUVA_GSC_REFRESH_TOKEN

OAuth refresh-token alternative.

DORUVA_SEO_ALLOW_PRIVATE

Set to 1 to allow private and loopback addresses, for auditing local development sites. Cloud metadata addresses stay blocked.

Safety and limits

An AI agent may call these tools with any URL, so the server is defensive:

  • Only http and https URLs. Host names are resolved and every address is checked; private, loopback, link-local, multicast, reserved and cloud metadata ranges are refused, for IPv4 and IPv6 (including IPv4-mapped, 6to4, NAT64 and decimal/hex/octal IPv4 forms). The check runs in the connection layer and the socket connects to the checked address, so every redirect hop is re-checked and DNS rebinding does not work.

  • At most 10 redirects; 5 MB per HTML page, 50 MB per (uncompressed) sitemap with gzip bomb protection; connect/read timeouts and a 60-second limit per fetch.

  • Crawls: at most 500 pages, depth 10 and 300 seconds, whatever the parameters say; 4 parallel requests, a delay after each request, Crawl-delay honoured up to 5 seconds, automatic back-off on 429/503.

  • Sitemap XML with DOCTYPE/ENTITY declarations is refused.

  • Logs go to stderr only; stdout carries the MCP protocol.

Privacy

No telemetry, no analytics, no accounts. Network requests go only to the sites you ask about and, when you call those tools, to Google's PageSpeed Insights and Search Console APIs. See PRIVACY.md.

Development

git clone https://github.com/doruva/doruva-seo-mcp
cd doruva-seo-mcp
uv sync                      # creates .venv with dev dependencies
uv run pytest                # unit, integration (local fixture server) and live tests
uv run pytest -m "not live"  # skip tests that need the internet
uv run ruff check .
uv build                     # sdist and wheel in dist/

Try the server with the MCP Inspector (needs Node.js): npx @modelcontextprotocol/inspector uv run doruva-seo-mcp.

The banner is generated with .github/assets/make_banner.py (Pillow).

License

GPL-2.0-or-later. Copyright (C) Doruva. See LICENSE.

Available Tools

11 tools
audit_pageAudit a page (on-page SEO)A
Read-onlyIdempotent

Fetch one page and return an on-page SEO report.

Covers: HTTP status, redirect chain and response time; title and meta description with length and estimated pixel width (Arial, Google SERP limits ~580px / ~920px); canonical; meta robots and X-Robots-Tag; robots.txt verdict for Googlebot; lang, hreflang, viewport; H1-H6 outline with skipped levels; word count; Open Graph and Twitter tags; internal, external and nofollow link counts; images missing alt; JSON-LD types and errors; an indexability verdict with reasons; and a prioritised issue list (error > warning > notice) where every issue has a fix hint. Static HTML only: JavaScript is not executed.

Inputs: url (required). Returns: object

check_redirectsTrace redirectsA
Read-onlyIdempotent

Follow a URL's redirect chain hop by hop (max 10) and check host/scheme consistency.

Returns every hop with status code, Location and timing, flags loops, long chains, temporary redirects, https-to-http downgrades and error endings; optionally checks that the http/https and www/non-www variants all end at the same final URL.

Inputs: url (required), check_variants. Returns: object

check_robotsCheck robots.txt for a URLA
Read-onlyIdempotent

Fetch the site's robots.txt and decide whether a crawler may fetch the URL.

Uses RFC 9309 / Google semantics: the most specific user-agent group applies (groups with the same token are merged, '' is the fallback); the longest matching rule wins and Allow wins ties; '' and '$' are wildcards. A 4xx robots.txt means allow-all, a 5xx or unreachable robots.txt means disallow-all. Returns the decision, the matched group and rule (with line number), Crawl-delay and the Sitemap URLs listed.

Inputs: url (required), user_agent. Returns: object

check_sitemapCheck XML sitemapsA
Read-onlyIdempotent

Find, parse and sanity-check XML sitemaps.

Discovers sitemaps from robots.txt Sitemap: lines, /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml; follows sitemap indexes; reads gzip sitemaps with size limits. Reports URL counts, lastmod statistics, duplicates, URLs on other hosts, http URLs on https sites, URLs blocked for Googlebot by robots.txt, and fetches an evenly spaced sample of URLs to flag non-200, noindex and canonicalised entries.

Inputs: url (required), sample_size. Returns: object

crawl_siteCrawl a siteA
Read-onlyIdempotent

Politely crawl a website and report site-level SEO problems.

Obeys robots.txt for the DoruvaSEO-MCP user agent (including Crawl-delay), uses 4 parallel requests with a delay after each, and stops at the page, depth or time limit. Returns per-URL summaries (status, title, meta description length, canonical, noindex, depth, inlinks) and findings: broken internal links with their source pages, redirects and redirect chains, duplicate titles and descriptions, missing H1/title/description, noindex pages, canonical mismatches, robots-blocked URLs, orphan candidates (in the sitemap but not linked) and indexable pages missing from the sitemap.

Inputs: start_url (required), max_depth, max_pages, same_host_only, +2 more. Returns: object

gsc_inspect_urlSearch Console: inspect URLA
Read-onlyIdempotent

Run the URL Inspection API: index status, coverage state, robots.txt and fetch state, last crawl, Google-selected vs. declared canonical, rich results and (when returned) mobile usability. Requires Search Console credentials.

Inputs: url (required), site_url (required). Returns: object

gsc_list_sitesSearch Console: list propertiesA
Read-onlyIdempotent

List the Google Search Console properties the configured credentials can access.

Requires DORUVA_GSC_CREDENTIALS / GOOGLE_APPLICATION_CREDENTIALS (service account JSON) or an OAuth refresh token; without them it returns setup instructions.

Inputs: no named parameters. Returns: object

gsc_search_analyticsSearch Console: search analyticsB
Read-onlyIdempotent

Query Search Console performance data: clicks, impressions, CTR and average position.

Returns rows grouped by the requested dimensions (top queries, pages, countries...). Requires Search Console credentials; returns setup instructions otherwise.

Inputs: end_date (required), site_url (required), start_date (required), filters, +3 more. Returns: object

gsc_sitemapsSearch Console: sitemapsA
Read-onlyIdempotent

List sitemaps submitted in Search Console with errors, warnings and submitted URL counts. Requires Search Console credentials.

Inputs: site_url (required). Returns: object

pagespeedPageSpeed InsightsA
Read-onlyIdempotent

Run Google PageSpeed Insights (Lighthouse) for a URL.

Returns the performance and SEO scores, Core Web Vitals field data (LCP, INP, CLS, plus FCP/TTFB) from the Chrome UX Report when Google has enough traffic data, lab metrics and the top opportunities by estimated savings. Uses the public API; set PAGESPEED_API_KEY for a higher quota. Quota errors are returned with a hint instead of failing. A run can take up to a minute.

Inputs: url (required), strategy. Returns: object

validate_schemaValidate structured data (JSON-LD)A
Read-onlyIdempotent

Extract and check JSON-LD structured data (including @graph).

Give either a URL or the JSON-LD itself. Reports JSON parse errors with line and column, the schema.org types found, and missing required/recommended properties for common Google rich result types: Article/BlogPosting/NewsArticle, Product (+Offer, AggregateRating, Review), Organization, LocalBusiness and subtypes, BreadcrumbList, FAQPage, HowTo, Event, Recipe, VideoObject, JobPosting and SoftwareApplication. Also returns the Google Rich Results Test and Schema Markup Validator links. These checks approximate Google's documentation; the Rich Results Test is authoritative.

Inputs: url, json_ld. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 11 tools

    Disambiguation4/5

    Tools are mostly distinct: audit_page vs. crawl_site differ by scope, and the check_* tools clearly target robots.txt, sitemaps, and redirects. Minor overlap exists between audit_page and validate_schema (JSON-LD reporting) and between audit_page/crawl_site and check_robots (robots verdicts), but descriptions make the intended division reasonably clear.

    Naming Consistency4/5

    Most tools follow a snake_case verb_noun pattern (audit_page, crawl_site, check_robots, gsc_inspect_url, gsc_list_sites). A few deviate with noun-only names (pagespeed, gsc_sitemaps), but the gsc_ prefix groups Search Console tools predictably, so the set remains readable and mostly consistent.

    Tool Count5/5

    At 11 tools, the server is well-scoped for technical SEO work. Each tool covers a distinct workflow area (page audit, crawl, schema, GSC, robots, sitemap, redirects, PageSpeed) without redundant entries.

    Completeness4/5

    The technical SEO surface is strong: on-page auditing, site crawling, structured data validation, Search Console data, robots/sitemap/redirect checks, and PageSpeed are all covered. Obvious adjacent gaps remain (backlink analysis, rank tracking, sitemap submission), but core technical audit workflows are largely complete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Real SEO data for AI assistants: page audits, Keyword Planner volumes, Search Console history.

      https://www.trafficbud.io/mcp
    • SEO MCP: Search Console, GA4, SERP and domain data, rank tracking, AI citations and site fixes.

      https://auditae.app/api/mcp/pay
    • 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.

      https://app.fastestrank.com/mcp
    • 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

    • A
      license
      A
      quality
      B
      maintenance
      Checks what GPTBot, ClaudeBot, PerplexityBot and 50+ other AI crawlers can read on a site and what its access policy allows, checks whether a page permits search, answers, training or agent use (with a signed receipt), generates llms.txt, robots.txt and JSON-LD, and reads your Answer Analysis. Nine tools for Claude Desktop, Cursor and other MCP clients.
      9
      149 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to perform live Google SERP searches, run on-page and full-site SEO audits with prioritized fixes, and check brand visibility in AI answer engines via four MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to run SEO audits and use site tools for meta tags, robots.txt, schema validation, SERP previews, Core Web Vitals, Open Graph, hreflang, Search Console, GA4, keywords, and backlinks via the Model Context Protocol.
      68 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude, ChatGPT, Cursor, and other MCP clients to query Google Search Console, GA4, PageSpeed Insights, and live SERPs through 38 read-only SEO tools for quick wins, content decay, indexing, Core Web Vitals, AI traffic, and conversion analysis.
      2
      MIT