Converts Swagger/OpenAPI specifications into Model Context Protocol (MCP) tools, enabling interaction with APIs through a standardized protocol.
The Swagger Tool Adapter acts as a crucial bridge, transforming traditional Swagger (2.0) and OpenAPI specifications into powerful MCP tools. This facilitates seamless integration of existing APIs into MCP-compatible clients and applications. It operates flexibly as both a standalone command-line interface and a Go library, offering comprehensive support for various HTTP methods, parameter handling, and API key authentication. Its robust filtering capabilities allow for precise control over which API endpoints are exposed as tools, ensuring security and tailored functionality.
主な機能
01Dual usage as a standalone CLI tool and Go library
02Supports multiple transports: stdio and HTTP
03Loads Swagger 2.0 and OpenAPI specs (JSON/YAML)
04Automatic conversion of API endpoints to MCP tools
05Advanced API filtering for security and control
061 GitHub stars
ユースケース
01Creating a standardized MCP interface for multiple microservices defined by OpenAPI
02Integrating existing RESTful APIs into MCP-compatible agents or clients
03Exposing a subset of an API's functionality as secure, manageable MCP tools