Feedback

MCP Spectral

@mark-sivill Claim

Basic information

Runtime
Python
Category
License
MIT
Transports
stdio
Author
mark-sivill
Submitted by
Community
Quality
20
Stars
1

About MCP Spectral Server

Lints/Validates an OpenAPI specification

MCP Spectral is a MCP server in the Other category listed in the AddMCP.net directory, published by mark-sivill. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: linting, mcp-spectral, openapi.

Setup

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

MCP Spectral config

Add this server to your MCP-compatible client using the configuration below.

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

MCP Spectral tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Spectral?

MCP Spectral is a Model Context Protocol (MCP) server that uses Spectral to lint OpenAPI specifications. It is designed for developers who want to validate and fix OpenAPI documents through large language model (LLM) tools such as Claude Desktop.

How to use MCP Spectral?

Install Docker and Claude Desktop, then add a Docker run command for marksivill/mcp-spectral to the claude_desktop_config.json file. Restart Claude Desktop to access three tools: lint_openapi, lint_openapi_with_ruleset, and spectral_version. Use natural language prompts to lint or build OpenAPI specs.

Key features of MCP Spectral

  • Lints OpenAPI specifications using Spectral
  • Lints OpenAPI specs with a custom Spectral ruleset
  • Returns the installed Spectral version
  • Runs inside a Docker container for easy setup
  • Integrates with Claude Desktop via MCP

Use cases of MCP Spectral

  • Validate an existing OpenAPI specification for errors
  • Iteratively fix errors found in an OpenAPI document
  • Build an OpenAPI specification from API documentation and revalidate
  • Enforce custom linting rules on generated OpenAPI specs

Frequently asked questions

1 What tools does MCP Spectral offer?

It provides three tools: lint_openapi, lint_openapi_with_ruleset, and spectral_version.

2 What are the prerequisites to run MCP Spectral?

You need Docker installed on your machine and a host MCP client such as Claude Desktop.

3 How do I install and configure MCP Spectral?

Add a Docker run entry for marksivill/mcp-spectral to your claude_desktop_config.json file, then restart Claude Desktop. The Docker image will be pulled automatically.

4 Can MCP Spectral be used with other LLM tools besides Claude Desktop?

Yes, but the setup instructions assume Claude Desktop; adjust the configuration for your tool accordingly.

5 Where can I find more details about MCP Spectral?

See the Docker Hub page (marksivill/mcp-spectral) and the Spectral documentation at stoplight.io/open-source/spectral.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬