Provides tools for parsing and querying Swagger/OpenAPI documentation to retrieve API paths, HTTP methods, detailed endpoint information, and data model schemas.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swagger-mcp-toolshow me the details for the GET /user/profile endpoint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
swagger-mcp-tool
What is swagger-mcp-tool
An MCP (Model Context Protocol) server that loads Swagger/OpenAPI documents and exposes query tools for AI assistants and MCP clients.
Features
Generate API-related code directly through an agent using Swagger docs.
Generate response types and interface definitions for TypeScript projects.
Installation
Prerequisites
Node.js >= 18
npm or npx (for running the CLI)
Bun >= 1.0.0 (optional, for development/build)
Install
Usage
Add one or more server entries to your MCP client config (example for Cursor: ~/.cursor/mcp.json). Use a separate server name per Swagger/OpenAPI document to support multiple projects in parallel.
Chat panel examples
After the server is configured, describe what you want to add in the chat panel. Start with "View the Swagger doc" to help the agent trigger this tool, for example:
"View the Swagger doc and complete the refund API for the order domain."
API
Tool | Description | Parameters | Output |
| List all API groups (tags) | None | JSON array of tag objects |
| Search APIs by tag or keyword |
| JSON array of API summaries |
| Get full operation detail |
| JSON operation object |
| Get schema by |
| JSON schema object |
License
This project is licensed under the MIT License - see the LICENSE file for details.