Emulates a Swagger Petstore API using a dynamic Model Context Protocol (MCP) server.
The Swagger tool provides a lightweight Model Context Protocol (MCP) server that interacts with the Swagger Petstore API using an OpenAPI 3.0 specification. It dynamically loads API tools defined in `openapi.json` and exposes endpoints that mimic those of the Petstore API using the `mcp.server.fastmcp` module, allowing for easy integration and testing with existing Petstore API workflows.
Key Features
01Dynamically loads OpenAPI 3.0 spec (Petstore)
02Supports full Petstore operations: Pets, Stores, Users
030 GitHub stars
04Utilizes MCP server CLI and dynamic tool registration
05Built using FastAPI
Use Cases
01Testing and integration with Swagger Petstore API
02Rapid prototyping of MCP-enabled API interactions