MCP Spectral

Model Context Protocol (MCP) Server for Spectral to lint OpenAPI specifications

Local serverstdio

What is the MCP Spectral MCP Server?

MCP Spectral is an MCP project maintained in the mark-sivill/mcp-spectral repository. The maintainer describes its purpose as “Model Context Protocol (MCP) Server for Spectral to lint OpenAPI specifications”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using docker. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
lint_openapilints OpenAPI specification
lint_openapi_with_rulesetlints OpenAPI specification with Spectral ruleset
spectral_versionreturns version of Spectral being used

How to install the MCP Spectral MCP Server

{
  "mcpServers": {
    "OpenAPI linting (Spectral)": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "marksivill/mcp-spectral"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.