mroops0111

Openapi MCP Gateway — Testing skill for Claude Code

Testing community

Turn any OpenAPI/Swagger API into an MCP server with per-user OAuth2. Multi-spec gateway for Claude Code, Codex, Cursor, and other MCP clients.

How to install Openapi MCP Gateway

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mroops0111/openapi-mcp-gateway and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Openapi MCP Gateway does

Turn any OpenAPI/Swagger API into an MCP server with per-user OAuth2. Multi-spec gateway for Claude Code, Codex, Cursor, and other MCP clients.

Alternatives in Testing

  • Regen API — Regenerate the OpenAPI spec and web API client after server API changes 2.5k ★
  • Mda — MDA Open Spec — a Markdown superset for agent-facing documents 615 ★
  • API Spec — Generate Zalando-compliant OpenAPI 3.1 specs (one per bounded context) and publish to SmartBear SwaggerHub 172 ★

README

OpenAPI MCP Gateway

[![CI](https://github.com/mroops0111/openapi-mcp-gateway/actions/workflows/ci.yml/badge.svg)](https://github.com/mroops0111/openapi-mcp-gateway/actions/workflows/ci.yml) [![PyPI version](https://img.shields.io/pypi/v/openapi-mcp-gateway.svg?v=1)](https://pypi.org/project/openapi-mcp-gateway/) [![PyPI Downloads](https://static.pepy.tech/badge/openapi-mcp-gateway/month)](https://pepy.tech/projects/openapi-mcp-gateway) [![Python Version](https://img.shields.io/pypi/pyversions/openapi-mcp-gateway.svg?v=1)](https://pypi.org/project/openapi-mcp-gateway/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Mount any OpenAPI (Swagger) spec as a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server, or expose an existing FastAPI app the same way. Multiple APIs in one process, each with its own mount path and auth.

OpenAPI MCP Gateway architecture: MCP clients (Claude Desktop, Cursor, AI agents) connect over stdio / SSE / streamable-http to the gateway, which at startup ingests OpenAPI specs or FastAPI apps and exposes them as MCP tools, meta-tools, and resources, then per call authorizes with bearer / API key / OAuth2 against its own issuer or an external one, never forwarding the caller's token, shapes the request and response with JSONata, and emits MCP-native output, calling upstream REST APIs over HTTP or an in-process FastAPI app over ASGI.

uvx openapi-mcp-gateway --spec https://petstore3.swagger.io/api/v3/openapi.json
# Server live at http://127.0.0.1:8000/api/mcp
  • Multi-Spec, Multi-Auth. Mount GitHub, an OAuth2 SaaS, and your internal API side by side, each with its own auth and token namespace.
  • Spec-Compliant Authorization. The gateway runs its own OAuth server and mints audience-bound upstream tokens, so the MCP client's credential is never replayed against a third party.
  • Tool Shaping. Rename