openapi-to-mcpserver

openapi-to-mcpserver

3.2

If you are the rightful owner of openapi-to-mcpserver 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.

OpenAPI to MCP converts an OpenAPI specification file into an MCP server for interacting with web APIs.

OpenAPI to MCP is a tool that transforms OpenAPI specification files into a Model Context Protocol (MCP) server. This server allows AI agents and other clients that understand MCP to interact with web APIs described by OpenAPI specifications. The tool supports both modern Streamable HTTP and legacy Server-Sent Events (SSE) transports, ensuring compatibility with a wide range of clients. It automatically detects the API base URL from OpenAPI specs and supports both OpenAPI/Swagger 2.0 and OpenAPI 3.x. The server handles binary responses and provides detailed logging for debugging purposes. It also includes features for graceful shutdown handling, making it robust for production environments.

Features

  • Automatic conversion of OpenAPI operations to MCP tools
  • Support for both modern Streamable HTTP and legacy SSE transports
  • Automatic API base URL detection from OpenAPI specs
  • Support for OpenAPI/Swagger 2.0 and OpenAPI 3.x
  • Detailed logging for debugging