Skip to main content
Glama
advanced-seo-mcp

advanced-seo-mcp

by halilertekin

🚀 Advanced SEO MCP Server

Python Version License Status MCP

Powering AI Agents with Advanced SEO Intelligence

📖 Overview

Advanced SEO MCP is a robust Model Context Protocol (MCP) server designed to equip AI agents with professional-grade SEO capabilities. It combines On-Page analysis, Technical Audits, Google PageSpeed Insights, and Ahrefs Data (via CapSolver) into a unified interface.


Related MCP server: google-seo-mcp

🚀 Installation

If you have uv installed, you can install this extension directly with Gemini CLI. uv handles all Python dependencies automatically.

gemini extensions install https://github.com/halilertekin/advanced-seo-mcp

Note: You will need to configure your API keys in the .env file inside the extension directory after installation.

Option 2: Manual Developer Setup

If you want to modify the code or don't use uv, follow these steps:

  1. Clone the repository:

    git clone https://github.com/halilertekin/advanced-seo-mcp.git
    cd advanced-seo-mcp
  2. Create virtual environment & Install:

    python3 -m venv .venv
    source .venv/bin/activate  # Windows: .venv\Scripts\activate
    pip install -e .
  3. Setup Configuration: Run the setup script to generate the local configuration:

    python setup_extension.py
  4. Link to Gemini:

    ln -s $(pwd) ~/.gemini/extensions/advanced-seo-mcp

🔑 Configuration

This server requires API keys for full functionality.

  1. Create a .env file in the project root (or rename .env.example):

    cp .env.example .env
  2. Add your API keys:

    # Required for Ahrefs Tools (Backlinks, Keywords, Traffic)
    # Get key: https://dashboard.capsolver.com/
    CAPSOLVER_API_KEY="your_capsolver_key"
    
    # Required for PageSpeed Insights
    # Get key: https://developers.google.com/speed/docs/insights/v5/get-started
    GOOGLE_PSI_API_KEY="your_google_psi_key"

🛠️ Management & Execution

A handy skills.sh script is included for easy management of the MCP server.

Make the script executable:

chmod +x skills.sh

Available Commands:

  • ./skills.sh install - Installs project dependencies using uv.

  • ./skills.sh update - Compiles and upgrades dependencies.

  • ./skills.sh audit - Runs a Python security audit (pip-audit).

  • ./skills.sh run - Runs the advanced-seo MCP server.


📚 Tools Reference

Tool

Description

generate_audit_report

Best! Generates a full Markdown SEO report combining all metrics.

onpage_audit

Analyzes content structure, meta tags, and density.

analyze_page_speed

Google PageSpeed Insights analysis (Mobile/Desktop).

check_schema_markup

Validates JSON-LD Schema implementation.

check_broken_links_on_page

Scans page for broken (404) internal/external links.

compare_competitors

Compares Backlinks/Traffic/DR of 2 domains.

bulk_sitemap_audit

Scans sitemap and performs quick audit on multiple pages.

get_backlinks

Retrieves Domain Rating & Top Backlinks (Ahrefs Data).

keyword_ideas

Generates keyword ideas & questions (Ahrefs Data).

📝 License

MIT

Available Tools

13 tools
analyze_content_densityC

Analyzes keyword density and TF-IDF metrics.

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

analyze_page_speedA

Analyzes site speed using Google PageSpeed Insights. Requires GOOGLE_PSI_API_KEY in .env.

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

bulk_sitemap_auditA

Scans the sitemap and runs On-Page audit on multiple pages. Useful for finding site-wide issues (e.g., missing H1s).

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

check_difficultyB

Checks keyword difficulty and returns SERP analysis (Requires CAPSOLVER_API_KEY).

Inputs: keyword (required), country. Returns: result

check_schema_markupB

Validates JSON-LD Schema Markup on a page.

Inputs: url (required). Returns: object

compare_competitorsA

Compares SEO metrics (Backlinks, Traffic, DR) of two domains. Requires CAPSOLVER_API_KEY.

Inputs: my_domain (required), competitor_domain (required). Returns: object

estimate_trafficB

Estimates monthly search traffic and value for a domain (Requires CAPSOLVER_API_KEY).

Inputs: domain (required), country. Returns: result

generate_audit_reportA

Generates a full SEO audit report (Markdown) and saves it locally. Combines On-Page, Technical, Ahrefs data into a single file.

Inputs: url (required), include_ahrefs. Returns: result

keyword_ideasA

Generates keyword ideas and questions based on a seed keyword (Requires CAPSOLVER_API_KEY).

Inputs: keyword (required), country. Returns: result

onpage_auditA

Performs a detailed on-page SEO audit of a specific URL. Checks meta tags, heading structure, word count, internal/external links, and image alt tags. Does NOT require an API key.

Inputs: url (required). Returns: object

technical_health_checkA

Checks technical SEO aspects of a domain/URL. Verifies robots.txt, sitemap.xml, and security headers (HTTPS, HSTS). Does NOT require an API key.

Inputs: url (required). Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, covering different SEO aspects like keyword analysis, page speed, broken links, schema, competitors, traffic estimates, backlinks, on-page audits, technical checks, and report generation. No two tools appear to do the same thing.

    Naming Consistency4/5

    Most tool names follow a verb_noun pattern (e.g., analyze_content_density, check_broken_links_on_page, get_backlinks), but a few deviate (e.g., keyword_ideas, onpage_audit). All use snake_case, so the inconsistency is minor.

    Tool Count5/5

    With 13 tools, the server covers a broad range of SEO functionality without being bloated. Each tool serves a specific need, and the count is well-suited for an advanced SEO tool set.

    Completeness4/5

    The tool set covers key SEO areas: keyword research, on-page auditing, technical SEO, backlinks, competitors, and reporting. Minor gaps like mobile-friendliness or rich results testing exist, but the coverage is very strong overall.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform instant SEO audits, check robots.txt, sitemaps, and AI crawler access for any URL without API keys.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to diagnose and fix technical SEO, content, and generative engine optimization issues by providing 72 tools that integrate Google Search Console, Google Analytics 4, PageSpeed Insights, structured data, llms.txt, WordPress, and GitHub.
      72
      30
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search Google SERPs, track rankings across locations, run Lighthouse SEO audits, find broken internal links, analyze backlinks, and get keyword volume data through a hosted service.
      15
      19 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to access self-hosted SEO data and workflows, including keyword research, rank tracking, competitor insights, backlinks, site audits, and AI visibility.
      MIT