Swagger MCP Server

mcp server which will dynamically define tools based on swagger

Local serverstdioGo

What is the Swagger MCP Server?

mcp server which will dynamically define tools based on swagger

What you get

Supported spec formats: - Swagger 2.0 (swagger: "2.0") — path/query/header parameters and in: body request bodies - OpenAPI 3.0 (openapi: "3.0.x") — path/query/header parameters and requestBody with inline or $ref schemas

swagger-mcp is a tool that reads a Swagger 2.0 or OpenAPI 3.0 specification and dynamically generates MCP tools at runtime — one tool per API endpoint. These tools can be used by any MCP client for LLM-driven API interaction.

Configuration and credentials

To use swagger-mcp, ensure you have the following dependencies: 1. LLM Model API Key / Local LLM: Requires access to OpenAI, Claude, or Ollama models. 2. Any MCP Client: (Used mark3labs - mcphost)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Swagger MCP Server

{
  "mcpServers": {
    "xquik": {
      "command": "swagger-mcp",
      "args": [
        "--specUrl=https://xquik.com/openapi.json",
        "--baseUrl=https://xquik.com",
        "--security=apiKey",
        "--apiKeyAuth=header:x-api-key=<XQUIK_API_KEY>"
      ]
    }
  }
}

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

Configuration

To use swagger-mcp, ensure you have the following dependencies: 1. LLM Model API Key / Local LLM: Requires access to OpenAI, Claude, or Ollama models. 2. Any MCP Client: (Used mark3labs - mcphost)

Frequently asked questions

Swagger 2.0 (`swagger: "2.0"`) and OpenAPI 3.0 (`openapi: "3.0.x"`), including inline and `$ref` schemas for request bodies and parameters.