Skip to content

Swagger MCP ServerChat-based API Development

Explore Swagger/OpenAPI and test APIs through AI conversation. No Postman needed.

Swagger MCP Server

Quick Start

bash
# No installation required
npx @zerry_jin/swagger-mcp

Then ask Claude:

"Connect to petstore API and show me all pet endpoints"

Available Tools

🔌 Service Management

ToolDescription
swagger_select_serviceSelect a service (alias from config or direct URL)
swagger_list_servicesList all configured services
swagger_get_currentShow current service info

🔍 API Discovery

ToolDescription
swagger_list_endpointsList all endpoints (filter by tag)
swagger_get_endpointGet endpoint details (params, body, responses)
swagger_searchSearch endpoints by keyword

📊 Schema Inspection

ToolDescription
swagger_get_schemaGet schema/DTO structure
swagger_list_schemasList all available schemas

🧪 API Testing

ToolDescription
swagger_testExecute actual HTTP request
swagger_curlGenerate cURL command

Why?

Navigating through multiple service API docs in an MSA environment is cumbersome.

With this MCP server:

  • Seamless service switching - Just say "Connect to payment server"
  • Direct API testing - Call APIs from chat without Postman
  • Auto cURL generation - Copy and paste to terminal
  • Schema/DTO lookup - Use for TypeScript interface generation
  • Dynamic URL support - Enter URLs directly without configuration

Released under the MIT License.