swagger-mcp-server
If you are the rightful owner of swagger-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A server based on Model Context Protocol (MCP) for parsing Swagger/OpenAPI documents and generating TypeScript types and API client code.
The Swagger MCP Server is designed to parse Swagger/OpenAPI documents, supporting both v2 and v3 specifications. It generates TypeScript type definitions and API client code for various frameworks such as Axios, Fetch, and React Query. The server leverages the Model Context Protocol to facilitate integration with large language models. It is optimized for handling large documents through memory and file system caching, lazy loading, incremental parsing, and progress feedback. The server can automatically recognize different formats of Swagger UI URLs, making it versatile and efficient for developers working with API documentation.
Features
- Parses Swagger/OpenAPI documents supporting v2 and v3 specifications.
- Generates TypeScript type definitions.
- Creates API client code for frameworks like Axios, Fetch, and React Query.
- Optimized for large document processing with caching and lazy loading.
- Provides functionality via MCP protocol for integration with large language models.
Tools
parse-swagger
Parses Swagger/OpenAPI documents, returning API operation information.
parse-swagger-optimized
Optimized parsing of Swagger/OpenAPI documents.
parse-swagger-lite
Lightweight parsing of Swagger/OpenAPI documents, optimized for large documents.
generate-typescript-types
Generates TypeScript type definitions from Swagger/OpenAPI documents.
generate-typescript-types-optimized
Optimized generation of TypeScript type definitions from Swagger/OpenAPI documents.
generate-api-client
Generates API client code from Swagger/OpenAPI documents.
generate-api-client-optimized
Optimized generation of API client code from Swagger/OpenAPI documents.
file-writer
Writes content to the file system.