-
securityA
license-
qualityAn MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
Last updated -
2
Python
MIT License
通过模型上下文协议 (MCP) 提取并提供 Swagger/OpenAPI 规范的服务器。
这是个人服务器!请勿将其暴露在公共互联网上。如果底层 API 需要身份验证,则不应将 MCP 服务器暴露在公共互联网上。
.env
文件:swagger.json
)config.json
中的配置:注意:服务器优先使用 Swagger 规范中的设置,而不是配置文件中的设置:
servers
数组,则第一个服务器 URL 将用作基本 URLGET /health
- 检查服务器健康状态GET /sse
- 建立服务器发送事件连接POST /messages
- 向 MCP 服务器发送消息运行测试套件:
服务器支持多种身份验证方法。当 Swagger 文件中未指定这些方法时,请在config.json
文件中配置它们作为后备:
该项目采用 Apache 2.0 许可证授权。
PORT
:服务器端口(默认值:3000)API_USERNAME
:API 身份验证的用户名(后备)API_PASSWORD
:API 身份验证的密码(后备)API_TOKEN
:用于身份验证的 API 令牌(后备)DEFAULT_API_BASE_URL
:API 端点的默认基本 URL(后备)DEFAULT_SWAGGER_URL
:默认 Swagger 规范 URLThis server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
一种服务器,能够通过模型上下文协议(MCP)与任何具有 Swagger/OpenAPI 规范的 API 进行交互,自动从 API 端点生成工具,并支持多种身份验证方法。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcolley/swagger-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server