Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Openapi MCP Generator

MCP server by harsha-iiiv Verified · npm:openapi-mcp-generator

Generates a TypeScript MCP server from an OpenAPI 3.x spec, proxying calls to your existing REST API. Aimed at developers who want to expose REST APIs to AI assistants over stdio, SSE, Streamable HTTP or Cloudflare Workers.

  • Score 90
  • 651 stars
  • 33k a week
  • MIT
  • Updated

Install Openapi MCP Generator

Built from the published package, never by AI.

claude mcp add openapi-mcp-generator -- npx -y openapi-mcp-generator

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Openapi MCP Generator in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the openapi-mcp-generator block.

About

Openapi MCP Generator is a free, MIT-licensed CLI and library that turns an OpenAPI 3.x specification into a ready-to-run Model Context Protocol server. It supports stdio, SSE, Streamable HTTP and Cloudflare Workers transports. The generated server is TypeScript that you own, and it proxies calls to your original REST API.

Tool inputs are validated against JSON Schema 2020-12 before any request reaches the API. Authentication uses API keys, Bearer tokens, Basic auth or OAuth2 through environment variables, and calls fail closed when credentials are missing. It is aimed at developers who want to expose an existing REST API to AI assistants.

Written from the project's README and checked against it.

What you need

  • Node.js 22.19 or later to run the generator
  • Node.js 22 or later for generated projects
  • An OpenAPI 3.x specification file or URL

Try asking

  • Generate an MCP server from my openapi.json file
  • Create a stdio MCP server for the Petstore API spec
  • Build a Cloudflare Worker MCP server from my REST API spec

Good to know

  • Swagger 2.0 specs are refused and must be converted to OpenAPI 3.x first
  • External http(s) $ref references are disabled by default
  • Streamable HTTP and Worker servers are stateless and return 405 for GET and DELETE on /mcp

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Expose an existing REST API to AI assistants
  • Generate MCP servers from OpenAPI specs
  • Deploy an MCP server to Cloudflare Workers

Alternatives to Openapi MCP Generator

All alternatives →
Azure MCP Server microsoft
100

Azure MCP Server bundles all Azure MCP tools into one local MCP server. It connects AI agents to Azure services and can be used alone or with the GitHub Copilot for Azure extension in VS Code.

AAA Local 261k/wk
openstatus openstatusHQ
98

Manages monitors, status pages, incidents and maintenances in an openstatus workspace from Claude, ChatGPT, or Cursor. It suits teams that run uptime monitoring and status pages and want their AI assistant to update them.

ACA Remote 9.3k
SmartBear MCP SmartBear
97

SmartBear MCP gives AI assistants access to SmartBear's testing and monitoring tools, including BugSnag, Reflect, Swagger, PactFlow and QTM4J. It is aimed at teams that already use these products. Products are reached through remote servers or a local npm package.

AAC Local and remote 17k/wk
Fettle fettlesh
97

Lets AI assistants manage Fettle uptime monitoring, including monitors, incidents, heartbeats, maintenance windows and status page incidents. Built for developers and operations teams who use Fettle and want to work from Claude, Cursor or Codex.

AAC Local and remote 22k/wk
Superlog superloglabs
95

Superlog is an open-source agentic telemetry system that ingests traces, logs and metrics and groups noisy signals into incidents. It is aimed at teams debugging production systems with OpenTelemetry data.

AAA Remote 1.5k
Microsoft Learn MCP MicrosoftDocs
94

Microsoft Learn MCP gives AI assistants direct access to official Microsoft documentation and code samples through a remote MCP endpoint. It is for developers who use MCP-compatible clients and want answers based on current Microsoft docs.

ACA Remote 2k

Compare with Azure MCP Server, openstatus or SmartBear MCP

Openapi MCP Generator: common questions

Does it support OpenAPI 3.1?

Yes, the source says it converts any OpenAPI 3.0 or 3.1 spec into an MCP-compatible server. Swagger 2.0 must be converted first.

Do I own the generated code?

Yes, the source says you own the generated TypeScript code. The project is free and MIT-licensed.

What happens if API credentials are missing?

Calls fail closed with an error naming the variables to set. Setting MCP_ALLOW_MISSING_CREDENTIALS=true restores the older behavior in 5.0.

How do I install Openapi MCP Generator?

In Claude Code run claude mcp add openapi-mcp-generator -- npx -y openapi-mcp-generator. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Openapi MCP Generator the official server?

Openapi MCP Generator is published by npm:openapi-mcp-generator from its verified domain in the official MCP Registry.

Is Openapi MCP Generator free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Openapi MCP Generator safe to use?

It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Openapi MCP Generator?

Similar MCP servers: Azure MCP Server, openstatus, SmartBear MCP, Fettle.

Does Openapi MCP Generator work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Openapi MCP Generator Install

Add to stack

Loading.