Skip to main content
Glama
mgsrevolver

SEO Inspector & Schema Validator MCP

by mgsrevolver
README.md
// README.md - Instructions for setup and use

# SEO Inspector & Schema Validator MCP

A Model Context Protocol (MCP) server for Cursor that analyzes web pages for SEO issues and validates structured data schemas.

## Features

- Analyze HTML files in a codebase for SEO issues
- Validate JSON-LD structured data
- Get recommendations to improve SEO
- No browser extension required - works directly with your codebase

## Installation

1. Clone this repository:

   ```
   git clone https://github.com/yourusername/seo-inspector-mcp.git
   cd seo-inspector-mcp
   ```

2. Install dependencies:

   ```
   npm install
   ```

3. Configure Cursor to use this MCP server:
   - Go to Settings > Features > MCP in Cursor
   - Add a new MCP server with:
     - Name: SEO Inspector
     - Type: sse
     - URL: http://localhost:8767/sse

## Usage

1. Start the MCP server:

   ```
   ./run-mcp.sh
   ```

2. In Cursor, you can now use the SEO Inspector tools:
   - `seo.analyze-codebase` - Analyze HTML files in a directory
   - `seo.analyze-html` - Analyze a specific HTML string

## Prioritized SEO Components

The tool checks for these key SEO elements (in order of importance):

### Critical

- Page Title
- Meta Description
- H1 Heading
- Canonical URL

### Important

- Heading Structure (H2-H6)
- Image Alt Text
- Structured Data (JSON-LD)
- Robots Directives

### Recommended

- Open Graph Tags
- Twitter Cards
- Internal Linking
- URL Structure
- Mobile Friendliness

## Schema Validation

The tool validates the following schema types:

- Organization
- LocalBusiness
- Product
- Article
- WebPage
- FAQPage
- Event
- Recipe
- Review

## License

MIT

TDQS

C2.2/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'analyzeSEO' has a clear, distinct purpose that cannot be mistaken for any other tool in this set.

Naming Consistency5/5

The naming pattern cannot be inconsistent when there is only one tool. The tool name 'analyzeSEO' follows a verb_noun format, and with no other tools to compare against, it is inherently consistent.

Tool Count2/5

A single tool is too few for a server named 'SEO Inspector & Schema Validator MCP', which suggests a broader scope including both SEO analysis and schema validation. The tool count does not align with the implied domain coverage, making it inappropriate.

Completeness1/5

The tool set is severely incomplete for the server's stated purpose. While 'analyzeSEO' covers SEO analysis, there are no tools for schema validation or other related SEO tasks, creating significant gaps that will cause agent failures.

Maintenance

ActivityInactive
ResponsivenessNo issues