MCP 伺服器

OpenAPI MCP Gateway

Turns OpenAPI specs or FastAPI apps into MCP servers with multi-spec auth support.

32d ago
來源

安裝

uvx
uv add openapi-mcp-gateway

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

OpenAPI MCP Gateway mounts one or more OpenAPI/Swagger specs as Model Context Protocol servers. It can also expose existing FastAPI apps in-process through the same MCP interface. The gateway supports multiple APIs in one process, with separate mount paths and auth settings for bearer tokens, API keys, and OAuth2. It can run over stdio, SSE, or streamable HTTP for use with Claude Desktop and other MCP clients. It includes dynamic operation exposure, resource auto-promotion for eligible GET endpoints, and server-side OAuth handling with per-user or client-credentials flows. The README also shows YAML-based multi-server configuration and environment-variable substitution.

標籤

mcpopenapiswaggeroauth2fastapiclaude