Back to Apps

MCP Swagger CLI
by jnotsknab
Generate runnable MCP servers automatically from Swagger or OpenAPI specifications.
0 stars
Works in:claude
Exposes:ToolsResources
What it does
MCP Swagger CLI is a developer tool that transforms OpenAPI 3.x and Swagger 2.0 specifications into fully functional MCP servers. It eliminates the manual effort of writing tool definitions by mapping API operations directly to MCP Tools and schemas to MCP Resources.
Tools
create: Generates a new MCP server from a local file or remote URL specification.validate-spec: Validates the provided OpenAPI/Swagger specification before generation.info: Displays metadata and structure of a specification without generating a server.
Installation
To use a generated server, first install the CLI:
pip install mcp-swagger-cli
Then generate your server:
mcp-swagger create https://petstore.swagger.io/v2/swagger.json -o ./my_mcp_server
Finally, install the generated server in its directory:
cd my_mcp_server && pip install -e .
Supported hosts
Confirmed for Claude Desktop via stdio transport.
Quick install
pip install mcp-swagger-cliInformation
- Pricing
- free
- Published
- 6/15/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Claude Desktop
{
"mcpServers": {
"my_mcp_server": {
"command": "my_mcp_server",
"args": []
}
}
}





