Skip to main content
Glama
mcp-seo-tools

mcp-seo-tools

by rog0x

mcp-seo-tools

An MCP (Model Context Protocol) server that gives AI agents a suite of SEO analysis tools. Analyze any public webpage for meta tags, heading structure, broken links, keyword density, page speed, and sitemap health — all without external API keys.

Tools

Tool

Description

seo_meta_analyze

Audit meta tags, Open Graph, and Twitter Card tags with scoring

seo_heading_check

Validate H1-H6 hierarchy, detect skipped levels and duplicates

seo_link_check

Find broken links, redirects, and missing anchor text

seo_keyword_density

Measure keyword frequency and check target keyword placement

seo_page_speed

Measure TTFB, load time, HTML size, and resource counts

seo_sitemap_parse

Parse sitemap.xml, check freshness, duplicates, and compliance

Related MCP server: seo-toolkit-mcp

Requirements

  • Node.js 18+

  • No API keys needed — all tools use direct HTTP requests and HTML parsing

Installation

git clone <repo-url>
cd mcp-seo-tools
npm install
npm run build

Usage with Claude Code

Add to your Claude Code MCP configuration:

claude mcp add seo-tools node D:/products/mcp-servers/mcp-seo-tools/dist/index.js

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "seo-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-seo-tools/dist/index.js"]
    }
  }
}

Tool Details

seo_meta_analyze

Fetches a URL and inspects all meta-related elements. Checks title length (optimal: 30-60 chars), meta description length (optimal: 120-160 chars), canonical URL, viewport tag, language attribute, Open Graph completeness, and Twitter Card setup. Returns a 0-100 score.

Input: { "url": "https://example.com" }

seo_heading_check

Parses all headings on a page and builds a visual hierarchy tree. Flags: missing H1, multiple H1s, skipped heading levels, empty headings, overly long headings (>70 chars), and duplicate headings.

Input: { "url": "https://example.com" }

Extracts all anchor tags from a page, resolves relative URLs, deduplicates, and probes each link with a HEAD request (falling back to GET when needed). Classifies links as ok, broken, redirect, timeout, or error. Reports internal vs. external link ratio.

Input: { "url": "https://example.com", "max_links": 100 }

seo_keyword_density

Strips scripts, styles, and navigation, then tokenizes the remaining body text. Computes frequency and density for single words, bigrams, and trigrams (filtering stop words). When a target keyword is provided, checks whether it appears in the title, H1, meta description, and first paragraph.

Input: { "url": "https://example.com", "target_keyword": "seo tools" }

seo_page_speed

Measures Time to First Byte and total download time from the server's perspective. Counts external scripts, stylesheets, images, and iframes. Detects render-blocking scripts (missing async/defer), images without alt text or dimensions, missing compression, and absence of lazy loading.

Input: { "url": "https://example.com" }

seo_sitemap_parse

Accepts a sitemap URL or any page URL (automatically appends /sitemap.xml). Falls back to checking robots.txt for a Sitemap directive. Handles both <sitemapindex> and <urlset> formats. Validates URL count limits, lastmod freshness, duplicate entries, protocol consistency, and trailing slash patterns.

Input: { "url": "https://example.com" }

License

MIT

Available Tools

6 tools
seo_heading_checkA

Audit the heading hierarchy (H1-H6) of a page. Detects missing H1, skipped heading levels, duplicate headings, empty headings, and provides a visual hierarchy tree.

Inputs: url (required).

seo_keyword_densityA

Analyze keyword density and distribution across a page. Returns top single words, two-word and three-word phrases with density percentages. Optionally checks placement of a target keyword in title, H1, meta description, and first paragraph.

Inputs: url (required), target_keyword.

seo_meta_analyzeA

Analyze a page's meta tags, Open Graph tags, and Twitter Card tags. Returns an SEO score with actionable recommendations for title, description, social sharing tags, and other meta elements.

Inputs: url (required).

seo_page_speedB

Measure basic page speed metrics including Time to First Byte, total load time, HTML size, and resource counts (scripts, stylesheets, images). Identifies render-blocking resources and missing optimizations.

Inputs: url (required).

seo_sitemap_parseA

Parse and analyze a website's sitemap.xml. Handles both sitemap indexes and URL sets. Reports URL counts, lastmod freshness, duplicate URLs, protocol consistency, and sitemap compliance issues. Automatically tries /sitemap.xml and falls back to robots.txt.

Inputs: url (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct SEO dimension — meta tags, heading hierarchy, links, keyword density, page speed, and sitemaps. There is no overlap; an agent auditing a site could cleanly select one tool per concern without ambiguity.

    Naming Consistency4/5

    All tools follow a consistent 'seo_<feature>_<action>' pattern with clear, descriptive verbs (analyze, check, parse, measure). The only minor inconsistency is that actions vary (analyze/check/measure/parse) rather than a uniform verb, but the pattern is still highly predictable.

    Tool Count5/5

    Six tools is a well-scoped set for SEO tooling. Each tool covers a major SEO pillar without redundancy or bloat, sitting comfortably in the ideal 3-15 range for a domain-specific server.

    Completeness3/5

    The audit surface covers the major on-page SEO areas well, but there are notable gaps: no tool for robots.txt analysis, structured data/schema validation, canonical/indexability checks, or backlink/social signals. The sitemap tool references robots.txt as a fallback but does not analyze it directly, leaving some common SEO audit tasks unaddressed.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for on-page SEO auditing and JSON-LD schema validation, providing tools for full SEO audit, schema validation, heading hierarchy, and image audit without requiring API keys.
      4
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      SEO toolkit MCP server for analyzing meta tags, robots.txt, sitemaps, keyword density, readability, and heading structure from any AI assistant that supports MCP.
      6
      7 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      An SEO MCP server providing free SEO tools including on-page audits, broken link checks, sitemap analysis, and keyword ideas via Google Suggest, all without requiring an API key.
      10
      19 npm
      6
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      An MCP server providing 20 SEO tools including coverage reports, supporting both stdio and HTTP modes for data-driven SEO analysis.
      20
      -