swagger-mcp

huixiaheyu/swagger-mcp
★ 1 stars Python AI/LLM Updated today
MCP server that auto-discovers APIs from OpenAPI specs with live change detection
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "swagger-mcp": {
      "command": "uvx",
      "args": [
        "swagger-mcp"
      ]
    }
  }
}

Or install with pip: pip install swagger-mcp

README Excerpt

**给你的 AI Agent 装上实时 API 感知能力——自动发现 OpenAPI 文档,所有接口即时变成可调用的 MCP 工具。** --- **问题**:AI Agent 要调用你的后端 API,通常需要手动把每个接口注册成工具。接口一改,工具定义就得同步更新。在快速迭代的项目里,这几乎不可维护。 **方案**:SwaggerWatcher 充当一个 **MCP 网关**——读取你的 OpenAPI/Swagger 文档,把所有接口自动注册为 AI 可调用的工具。配置一次,后续接口变更自动同步: ``` 你写 OpenAPI 文档 → SwaggerWatcher 自动读取

Tools (16)

_activate_groups_list_groupsapi_headersbase_urlexclude_tagsinclude_tagsmax_toolsmodeopenapi_fileopenapi_urlpetstore_getPetByIdpetstore_get__pet__petIdpetstore_updatePetpoll_intervalspec_headersstatic