Swagger MCP
Provides tools for loading and querying OpenAPI/Swagger documents, including listing API endpoints, retrieving API details, searching APIs, and managing data models.
Click on "Deploy 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 MCPlist all APIs"
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 | OpenAPI/Swagger MCP Tool
An OpenAPI/Swagger document mcp tool built on FastMCP, providing clean and efficient document querying and analysis capabilities.
基于 FastMCP 构建的 OpenAPI/Swagger MCP server, 更好更准确的编写前端代码和调用接口。
🚀 Quick Start | 快速开始
Method 1: Local Run | 本地运行
# Install dependencies
git clone https://github.com/username/swagger-mcp.git
cd swagger-mcp
pip install -r requirements.txt
export SWAGGER_URI="https://petstore.swagger.io/v2/swagger.json"
# Run server
fastmcp run swagger_mcp/server.py
# Or run directly
python swagger_mcp/server.pyMethod 2: Docker | Docker 方式
docker run --env SWAGGER_URI=https://petstore.swagger.io/v2/swagger.json \
--add-host="host.docker.internal:host-gateway" -p 8000:8000 \
yangyaofei/swagger-mcp🔧 Cursor IDE Integration | Cursor IDE 集成
Configuration | 配置
Add the following MCP configuration in Cursor 在 Cursor 中添加以下 MCP 配置:
{
"mcpServers": {
"swagger-mcp": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}🛠️ Available Tools | 可用工具
Tool Name | Description |
| Load OpenAPI/Swagger documents |
| Get document basic information |
| List all API endpoints |
| Get specific API details |
| Search API endpoints |
| List all data models |
| Get specific model details |
🛠️ 可用工具
工具名称 | 功能描述 |
| 加载 OpenAPI/Swagger 文档 |
| 获取文档基本信息 |
| 列出所有 API 端点 |
| 获取特定 API 详情 |
| 搜索 API 端点 |
| 列出所有数据模型 |
| 获取特定模型详情 |
Developed by Vibe Coding 🚀
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP server over the APIs.io catalog — discover APIs, providers, tags & artifacts.
Detect breaking changes, generate changelogs, diff, and validate OpenAPI specs.
Turn any task into the right API calls: discover, evaluate, and integrate public APIs.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to load, parse, and query OpenAPI/Swagger documentation from URLs with intelligent search across endpoints, schemas, and authentication methods. Provides 10 specialized tools for comprehensive API exploration including path details, operation lookups, and multi-criteria search capabilities.4-
- AlicenseAqualityDmaintenanceExposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.141 npm2MIT
- AlicenseAqualityDmaintenanceEnables progressive exploration of Swagger/OpenAPI API documentation. Supports loading multiple specs, browsing endpoints and schemas, and searching across documentation.125 npm1MIT
- FlicenseAqualityDmaintenanceEnables reading and parsing Swagger/OpenAPI specifications to list API endpoints, get detailed endpoint info, search APIs, and generate TypeScript types for request/response.9-