Fetches and parses Swagger/OpenAPI documentation from specified URLs, supporting both Swagger 2.0 and OpenAPI 3.x formats. Enables access to API specifications via multiple transport methods.
swagger-api-mcp
English | 简体中文
This is a Swagger/OpenAPI documentation fetcher based on MCP (Model Context Protocol). It can fetch and parse Swagger/OpenAPI documentation from a specified URL and supports multiple transport methods.
✨ Features
- Fetch Swagger/OpenAPI documentation from remote URLs
- Support for both Swagger 2.0 and OpenAPI 3.x formats
- Multiple transport methods:
- stdio: Standard input/output mode
- http: HTTP server mode
- sse: Server-Sent Events mode
- Automatic port allocation and failover
- CORS support
- Comprehensive error handling
Getting Started
MacOS / Linux
Windows
Command Line Arguments
--transport <stdio|http|sse>
: Choose transport method (default: stdio)--port <number>
: HTTP/SSE server port (default: 3000)--doc-url <url>
: Swagger/OpenAPI documentation URL (required)
💻 Development
📋 Requirements
- Node.js >= 16.0.0
- npm >= 6.0.0 or pnpm >= 6.0.0
📄 License
MIT
This server cannot be installed
A server that fetches and parses Swagger/OpenAPI documentation from specified URLs, supporting multiple transport methods like stdio, HTTP, and SSE.
Related MCP Servers
- -securityAlicense-qualityA server that enables interaction with any API that has a Swagger/OpenAPI specification through Model Context Protocol (MCP), automatically generating tools from API endpoints and supporting multiple authentication methods.Last updated -3490TypeScriptApache 2.0
- AsecurityFlicenseAqualityA server based on Model Context Protocol that parses Swagger/OpenAPI documents and generates TypeScript types and API client code for different frameworks (Axios, Fetch, React Query).Last updated -12713TypeScript
- -securityAlicense-qualityA LangChain-based server that supports dynamic loading of OpenAPI specifications and enables natural language interaction with web services through Server-Sent Events (SSE) transport.Last updated -17PythonMIT License
- -securityAlicense-qualityA lightweight server that enables interaction with the Swagger Petstore API using the Model Context Protocol, allowing operations on pets, stores, and users through dynamically loaded OpenAPI specifications.Last updated -1PythonApache 2.0