Submit

swagger-mcp

@danishjsheikh

a year ago
mcp server which will dynamically define tools based on swagger
Overview

what is swagger-mcp?

swagger-mcp is a tool designed to scrape Swagger UI by extracting the swagger.json file and dynamically generating well-defined MCP tools at runtime. These tools can be utilized by the MCP client for further tool selection.

how to use swagger-mcp?

To use swagger-mcp, ensure you have the required dependencies, install it using Go, and configure it with your MCP client by including the necessary settings in the .mcp.json file.

key features of swagger-mcp?

  • Dynamic generation of MCP tools based on Swagger definitions.
  • Integration with various LLM models for enhanced functionality.
  • Easy setup and configuration for seamless use with MCP clients.

use cases of swagger-mcp?

  1. Automating the generation of tools for API integration.
  2. Enhancing backend services with dynamically defined tools.
  3. Facilitating the development of applications that require real-time API interactions.

FAQ from swagger-mcp?

  • What dependencies are required to use swagger-mcp?

You need an LLM Model API Key or a local LLM, and any MCP client like mark3labs - mcphost.

  • How do I install swagger-mcp?

You can install it using the command: go install github.com/danishjsheikh/swagger-mcpo@latest.

  • Can swagger-mcp work with any MCP client?

Yes, it is designed to integrate with any MCP client that supports the required configuration.

Server Config

{
  "mcpServers": {
    "swagger_loader": {
      "command": "swagger-mcp",
      "args": [
        "--specUrl=<swagger/doc.json_url>"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.