Swagger-MCP

Swagger-MCP

31

Swagger MCP is a server application that interfaces with Swagger specifications to aid AI in model creation for MCP server generation. It provides tools and prompts to facilitate AI assistant workflows and includes an improved MCP tool code generator for comprehensive tool definitions.

Swagger MCP

An MCP server that connects to a Swagger specification to help AI build required models for MCP server generation.

Features

  • Downloads and stores Swagger specifications locally.
  • Lists endpoints with HTTP methods and descriptions.
  • Provides models and service connections.
  • Generates MCP tool definitions and AI-specific tool descriptions.

Prerequisites

  • Node.js (v14+), npm or yarn.

Configuration

Customize settings in the .env file, including PORT and NODE_ENV.

Usage

  • Build with npm run build.
  • Run as MCP server with node build/index.js.
  • Debug using the MCP Inspector.

Tools and Prompts

Offers tools like getSwaggerDefinition, listEndpoints, and MCP prompts for AI assistants.