Submit

MCP Spectral

@mark-sivill

Lints/Validates an OpenAPI specification
Overview

What is MCP Spectral?

MCP Spectral is a server that allows Large Language Models (LLMs) to validate and lint OpenAPI specifications using the Model Context Protocol (MCP). It wraps the Spectral command line tool within a Docker image to facilitate this process.

How to use MCP Spectral?

To use MCP Spectral, install Docker, configure the MCP server access, and then interact with the server using prompts to validate OpenAPI specifications.

Key features of MCP Spectral?

  • Lints OpenAPI specifications for validity.
  • Supports custom rulesets for linting.
  • Provides version information of the Spectral tool being used.

Use cases of MCP Spectral?

  1. Validating OpenAPI specifications for APIs.
  2. Ensuring compliance with specific API documentation standards.
  3. Assisting in the development of API documentation and contracts.

Is MCP Spectral free to use?

Yes! MCP Spectral is open-source and free to use.

What do I need to run MCP Spectral?

You need to have Docker installed on your machine.

Server Config

{
  "mcpServers": {
    "OpenAPI linting (Spectral)": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "marksivill/mcp-spectral"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.