Swagger MCP 服务器

Swagger MCP 服务器

一个用于暴露 Swagger/OpenAPI 端点的模型上下文协议服务器。

快速入门

  1. 全局安装工具: npm install -g swagger-mcp-server

  2. 创建配置文件 config.json: { "endpoints": [ { "name": "example-api", "url": "https://example.com/api/swagger.json" } ] }

  3. 启动服务器: swagger-mcp-server config.json

或者使用 npx: npx swagger-mcp-server config.json

开发

构建项目:npm run build 本地运行:npm run run