Skip to content
PluginStats

openapi-mcp-generator weekly downloads statistics

By harsha-iiiv · npm · MCP servers

Generates MCP server code from OpenAPI specifications

View on npm Fresh · Dec 6, 2026

openapi-mcp-generator has 30,460 recorded weekly downloads on npm, an increase of 67.9% over the past 30 days, ranking #923 of 3,247 tracked listings.

Weekly downloads
30,460
Official API · Dec 5, 2026
7-day growth
+34.9%
+7.9K weekly downloads
30-day growth
+67.9%
+12.3K weekly downloads
90-day growth
+199%
+20.3K weekly downloads
Rank
#923
▲ 64 in 7 days

About openapi-mcp-generator

OpenAPI to MCP Generator (openapi-mcp-generator)

npm version License: MIT GitHub repository Ask DeepWiki

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 (MCP) server for stdio, SSE, Streamable HTTP or Cloudflare Workers. You own the generated TypeScript code, and tool inputs are validated against JSON Schema before any request reaches your API.

Docs · Quickstart · Browser playground · Changelog

npx openapi-mcp-generator --input ./openapi.json --output ./my-mcp

✨ Features

  • 🔧 OpenAPI 3.x Support: Converts any OpenAPI 3.0 or 3.1 spec into an MCP-compatible server (convert Swagger 2.0 first).
  • 🔁 Proxy Behavior: Proxies calls to your original REST API while validating request structure and security.
  • 🔐 Authentication Support: API keys, Bearer tokens, Basic auth, and OAuth2 supported via environment variables; calls fail closed when required credentials are missing.
  • 🧪 JSON Schema Validation: Arguments are validated against each tool's JSON Schema 2020-12 input schema (no code generation, no eval).
  • 🏷️ Annotations and Structured Output: Tools carry titles and read-only/destructive/idempotent hints, and JSON object responses come back as structuredContent (optionally with a declared outputSchema).
  • ⚙️ Typed Server: Fully typed, maintainable TypeScript code output.
  • 🔌 Multiple Transports: Communicate over stdio, SSE via Hono, StreamableHTTP, or a deployable Cloudflare Worker.
  • 🧰 Project Scaffold: Generates a complete Node.js project with tsconfig.json, package.json, and entry point.
  • 🧪 Built-in HTML Test Clients: Test API interactions visually in your browser (for web-based transports).

🚀 Installation

npm install -g openapi-mcp-generator

You can also use yarn global add openapi-mcp-generator or pnpm add -g openapi-mcp-generator


⬆️ Upgrading to 5.0

5.0 generates servers on the MCP TypeScript SDK v2 and supports MCP 2026-07-28 alongside 2025-era clients. Generated projects change, so upgrade deliberately:

  1. Commit your generated project, then regenerate with the same flags: npx openapi-mcp-generator@5 -i ./openapi.json -o ./my-mcp --force. --force overwrites generated files, including your edits.
  2. Use Node.js 22.19 or later to run the generator (generated projects need Node.js 22 or later), then run npm install. @modelcontextprotocol/sdk is replaced by @modelcontextprotocol/server (^2.4.0), and zod, json-schema-to-zod, dotenv and uuid by @cfworker/json-schema.
  3. Update customized code to import from @modelcontextprotocol/server (stdio helpers from @modelcontextprotocol/server/stdio).
  4. Streamable HTTP and Worker servers are stateless: no mcp-session-id, and GET and DELETE on /mcp return 405. Tool calls over POST are unaffected.
  5. Missing upstream credentials now fail closed with an error naming the variables to set; MCP_ALLOW_MISSING_CREDENTIALS=true restores the old behavior.
  6. An unknown tool name is now a JSON-RPC -32602 error. Integers stay integers, readOnly properties leave request inputs, and schema defaults are no longer injected.
  7. Swagger 2.0 specs are refused: convert them with npx swagger2openapi swagger.json -o openapi.json.
  8. Credential variables, Worker secret names, --inbound-auth, --header-passthrough and MCP_ALLOWED_ORIGINS are unchanged.

Not ready yet? Stay on 4.x with npx openapi-mcp-generator@4. Full notes: CHANGELOG.md.


🛠 Usage

# Generate an MCP server (stdio)
openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir

# Generate an MCP web server with SSE
openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir --transport=web --port=3000

# Generate an MCP StreamableHTTP server
openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir --transport=streamable-http --port=3000

# Generate a deployable Cloudflare Worker MCP server
openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir --transport=cloudflare-worker

The examples/ folder holds the Swagger Petstore generated with 5.0 for stdio (petstore-mcp), web (pet-store-sse) and StreamableHTTP (pet-store-streamable-http).

CLI Options…

Description from the npm listing.

  • openapi
  • mcp
  • model-context-protocol
  • generator
  • llm
  • ai
  • api

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

openapi-mcp-generator weekly downloads on npm, last 90 days: 30,460 weekly downloads as of Dec 5, 2026, +199% over 90 days.openapi-mcp-generatorWeekly downloads on npm · Last 90 days30,460downloads / week+199% over 90 days05K10K15K20K25K30K35KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
openapi-mcp-generator weekly downloads on npm, last 90 days: 30,460 weekly downloads as of Dec 5, 2026, +199% over 90 days.

7/30/90-day growth

openapi-mcp-generator weekly downloads growth on npm: +34.9% over 7 days, +67.9% over 30 days, +199% over 90 days.openapi-mcp-generatorWeekly downloads growth on npm30,460downloads / week now7-day growth+7,885 weekly downloads+34.9%30-day growth+12,321 weekly downloads+67.9%90-day growth+20,276 weekly downloads+199%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
openapi-mcp-generator weekly downloads growth on npm: +34.9% over 7 days, +67.9% over 30 days, +199% over 90 days.

Ranking history

openapi-mcp-generator npm ranking history: currently #923 (by weekly downloads).openapi-mcp-generatornpm ranking · by weekly downloads · Last 90 days#923current rank#200#400#600#800#1000#1200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
openapi-mcp-generator npm ranking history: currently #923 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 47, #3 (overall #923)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 8, #7 (overall #147)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for openapi-mcp-generator
Date (UTC)Weekly downloadsChange vs. previous
30,460-2.5K
32,947+26
32,921+1.9K
30,976+2.1K
28,912+3.1K
25,791+1.1K
24,682+2.1K
22,575+1K
21,533-194
21,727-249
21,976-2.6K
24,553-1.6K
26,182+888
25,294—

Similar npm MCP servers plugins

All 20 openapi-mcp-generator alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/openapi-mcp-generator. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.