# OpenAPI to MCP Generator

> Generate MCP servers from OpenAPI 3.x specifications.

- **URL**: https://followmcp.com/en/servers/openapi-mcp-generator
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 651
- **FMRS Score**: 55/100 (Grade C)
- **Source**: https://github.com/harsha-iiiv/openapi-mcp-generator
- **Transports**: stdio (local process), SSE, Streamable HTTP
- **Runtimes**: Node.js 22.19+
- **Auth**: No credential needed

## Overview
This MIT-licensed CLI and library generates TypeScript MCP servers from OpenAPI 3.0 or 3.1 specifications, with stdio, SSE, and Streamable HTTP support. Generated servers proxy requests to the original REST API and validate tool inputs before sending requests. The README also describes a Cloudflare Workers target, which is outside the allowed transport values.

## Best for
- Developers who want to connect an existing OpenAPI 3.x REST API to MCP.
- Teams that want to generate and maintain their own TypeScript server code.

## Not for
- Users who need to connect directly to an API rather than generate a server.
- Projects with only a Swagger 2.0 specification that has not been converted to OpenAPI 3.x.

## Required permissions
- Read the specified OpenAPI document and write the generated project to the output directory.
- The generated server sends requests to the upstream REST API; required credentials depend on that API's security configuration.

## Risks
- A generated server may hold upstream API credentials; configure inbound Bearer authentication for HTTP endpoints when needed.
- Allowing external HTTP(S) $ref resolution carries SSRF risk; this option is disabled by default.
- The README says HTTP servers check browser Origins to help mitigate DNS rebinding.
