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 "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 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yangyaofei/swagger-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server