mroops0111/openapi-mcp-gateway
🔌 MCP Servermroops0111
Mount many OpenAPI specs as MCP servers in one process. Auto-promotes GETs to resources.
This MCP server gateway simplifies integrating existing REST APIs with the Model Context Protocol (MCP). It aggregates multiple OpenAPI specifications into a unified MCP interface, reducing overhead by using meta-tools for resource discovery and invocation. For each OpenAPI spec, it generates three meta-tools: list (list available endpoints), get (fetch a resource), and call (invoke an endpoint). Eligible GET endpoints are automatically exposed as MCP resources for efficient access. It also features a built-in OAuth2 token relay that handles per-user token management, ensuring secure, audience-bound authentication. The gateway is particularly suited for FastAPI applications, as it can directly mount existing FastAPI instances without modification.
💡Highlights
- ├─Auto-promotes GETs to MCP resources
- ├─Three meta-tools: list/get/call
- └─Per-user OAuth2 token relay
🎯For
- ├─Backend developers
- ├─MCP server builders
- └─API integrators