← Back to directory
O

OpenAPI to MCP Generator

Community
Framework / SDK
Generate MCP servers from OpenAPI 3.x specifications.

This is a framework for building MCP servers or agents, not a server you connect a client to.

Category
Dev Tools #207 of 751
Stars
★ 651 Very popular
Transport
stdio (local process) · SSE · Streamable HTTP
Runtime
Node.js 22.19+
Credentials
No credential needed
License
MIT
Last commit
55FMRS · C

The README describes a CLI and library for generating TypeScript MCP servers from OpenAPI 3.x, with input validation, authentication configuration, and multiple transports. No server manifest was provided, so generated tool identifiers and a specific server configuration cannot be confirmed.

Strongest · Documentation 15/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
12/20
Maintenance
8/20
Documentation
15/20
Setup experience
12/20
Why each score
Reliability 8/20
The README describes OpenAPI 3.x conversion, JSON Schema input validation, fail-closed credential handling, several transports, and error behavior. However, it provides no verifiable CI, tests, or evidence of a successful startup and MCP handshake. The manifest is not cached, so the current server entry point and dependencies cannot be checked; the score is therefore conservative.
Security and permissions 12/20
The documentation says external $ref resolution is disabled by default, missing credentials fail closed, and describes inbound bearer auth, origin checks, and environment-based secrets. Generated APIs may still expose side-effecting operations, HTTP inbound auth defaults to none, and there is no evidence of per-operation confirmation or data-flow auditing. The supplied material does not indicate a red-line behavior.
Maintenance 8/20
The repository is not archived and the README provides an MIT license, a changelog link, and a vulnerability reporting channel. The supplied material does not verify commit frequency, release cadence, issue response, or dependency update practices, so it does not support a high activity score.
Documentation 15/20
The README covers installation, CLI and programmatic use, authentication, filtering, transports, generated tool behavior, and security configuration, with examples. Troubleshooting guidance is limited, and operation-specific costs and side effects are not fully documented; the implementation cannot be verified from the README.
Setup experience 12/20
The README gives npm/npx installation, generation and run steps, a Node.js requirement, and several transport options, including a Worker deployment example. It does not provide a complete, directly usable configuration for a mainstream MCP client. The missing manifest and lack of verifiable execution evidence also reduce confidence.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the network

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js 22.19+

MCP_AUTH_TOKEN optionalsecret Inbound bearer token for HTTP transports; set by the deployer.
MCP_AUTH_TOKENS optionalsecret Comma-separated inbound tokens, useful for rotation.
Other optional settings (5)
API_BASE_URL optional Optional upstream API base URL; overrides the server URL in the spec at runtime.
PORT optional Optional port for web transports; defaults to 3000.
MCP_ALLOW_MISSING_CREDENTIALS optional Set to true to allow requests without required upstream credentials.
MCP_ALLOWED_ORIGINS optional Comma-separated browser origins allowed to access a local Node HTTP server.
MCP_PLAYGROUND optional Set to off to disable the generated server’s browser playground.

Node.js 22.19 or later is required to run the generator. Install it globally with npm: npm install -g openapi-mcp-generator. Then run the generator with an OpenAPI specification file path or URL and an output directory. The README includes generation examples for stdio, SSE, and Streamable HTTP.

Check that it works

This is a CLI and library for generating MCP servers from OpenAPI specs, not a directly connectable server. Generate and start a project, then confirm its tools appear in your client’s tool list.

Troubleshooting

  1. Confirm the generator is running on Node.js 22.19 or later.
  2. Convert Swagger 2.0 specifications to OpenAPI 3.x first.
  3. Check API_BASE_URL, the specification's servers configuration, and any missing upstream credentials.
  4. For HTTP transports, check MCP_AUTH_TOKEN, client request headers, and MCP_ALLOWED_ORIGINS configuration.

Use cases

Generate a runnable MCP server from an OpenAPI 3.x specification.
Convert OpenAPI documents into MCP tool definitions through the programmatic API.
Filter generated tools by tags, operations, or the x-mcp extension.

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.

Similar servers

Source revision 835374e1dea8 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/openapi-mcp-generator.svg)](https://followmcp.com/en/servers/openapi-mcp-generator)