Converts OpenAPI/Swagger specs to MCP format for AI agents to call REST APIs via CLI with multiple transport and auth options.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Swagger Server.
将 OpenAPI/Swagger 规范转换为 Model Context Protocol (MCP) 格式的工具
零配置将您的 REST API 转换为 AI 可调用的工具
Languages: English | 中文


MCP Swagger Server 是一个将 OpenAPI/Swagger 规范转换为 Model Context Protocol (MCP) 格式的工具。
mss:交互式终端界面(默认)mcp-swagger-server / mcp-swagger:标准命令行(适合脚本和 AI 客户端集成)mss --openapi ...:直接启动模式(跳过交互界面)说明:交互式会话模式下不支持 STDIO 启动;如需 STDIO,请使用
mss --openapi ... --transport stdio(兼容别名:mcp-swagger-server --transport stdio ...)。
提示:如果要在
mss中直接启动(跳过交互界面),请显式传入--openapi参数。若 OpenAPI 文档中的servers.url是相对路径(如/v1),请优先使用远程 URL 加载文档,或显式传入--base-url。Swagger 2.0 文档会在启动时自动转换为 OpenAPI 3.x(含host/basePath映射)。
mcp-swagger-server 支持 Bearer Token 认证,可以保护需要身份验证的 API 访问。
1. 直接指定 Token
创建 .env 文件:
欢迎贡献!请先阅读 贡献指南。
MIT License - 详见 LICENSE 文件。
Built with ❤️ by ZhaoYaNan(ZTE)
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/zaizaizhao-mcp-swagger-server)<a href="https://allmcps.com/mcp/zaizaizhao-mcp-swagger-server"><img src="https://allmcps.com/api/badge/zaizaizhao-mcp-swagger-server?style=directory" alt="MCP Swagger Server on AllMCPs" /></a>