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 · Oct 17, 2026

openapi-mcp-generator has 4,613 recorded weekly downloads on npm, a decrease of 51.2% over the past 30 days.

It ranks #1113 of 2,255 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -70.9%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
4,613
Official API · Oct 17, 2026
7-day growth
-62.7%
-7.8K weekly downloads
30-day growth
-51.2%
-4.8K weekly downloads
90-day growth
-70.9%
-11.2K weekly downloads
Rank
#1113
Among tracked npm listings

About openapi-mcp-generator

OpenAPI to MCP Generator (openapi-mcp-generator)

Generate Model Context Protocol (MCP) servers from OpenAPI specifications.

This CLI tool automates the generation of MCP-compatible servers that proxy requests to existing REST APIs—enabling AI agents and other MCP clients to seamlessly interact with your APIs using your choice of transport methods.

✨ Features

• 🔧 OpenAPI 3.0 Support: Converts any OpenAPI 3.0+ spec into an MCP-compatible server. • 🔁 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. • 🧪 Zod Validation: Automatically generates Zod schemas from OpenAPI definitions for runtime input validation. • ⚙️ Typed Server: Fully typed, maintainable TypeScript code output. • 🔌 Multiple Transports: Communicate over stdio, SSE via Hono, or StreamableHTTP. • 🧰 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

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

🛠 Usage

CLI Options

| Option | Alias | Description | Default |

| --input | -i | Path or URL to OpenAPI specification (YAML or JSON) | Required | | --output | -o | Directory to output the generated MCP project | Required | | --server-name | -n | Name of the MCP server (package.json:name) | OpenAPI title or mcp-api-server | | --server-version | -v | Version of the MCP server (package.json:version) | OpenAPI version or 1.0.0 | | --base-url | -b | Base URL for API requests. Required if OpenAPI servers missing or ambiguous. | Auto-detected if possible | | --transport | -t | Transport mode: "stdio" (default), "web", "streamable-http", or "cloudflare-worker" | "stdio" | | --port | -p | Port for web-based transports | 3000 | | --default-include | | Default behavior for x-mcp filtering. Accepts true or false (case-insensitive). true = include by default, false = exclude by default. | true | | --allow-external-refs | | Allow resolving external http(s) $ref references in the spec. Disabled by default to prevent SSRF during parsing. | false | | --max-tool-name-length | | Maximum length for generated tool names (Claude Desktop caps at 64). Longer names are truncated with a hash suffix. | 64 | | --header-passthrough | | Comma-separated inbound header names to forward to the upstream API (web/streamable-http). Enables per-user API keys via MCP client headers. | _(none)_ | | --insecure | -k | Allow insecure HTTPS connections (skip TLS certificate verification) in the generated server. | false | | --generate-lib | | Generate library-style output: export main() instead of auto-invoking it, omitting signal/cleanup wiring. | false | | --custom-auth | | Generate an editable src/auth.ts hook (applyCustomAuth) called before built-in auth; return true to skip built-in auth. | false | | --oauth-creds-in-body | | Send OAuth2 client credentials in the token request body instead of the Basic Authorization header. | false | | --force | | Overwrite existing files in the output directory without confirmation | false |

Configuring the API base URL at runtime: the generated server reads API_BASE_URL from the environment (.env), overriding the value baked in from the OpenAPI servers list. The port resolves from --port, then the PORT env var, then 3000.

📦 Programmatic API

You can also use this package programmatically in your Node.js applications:

For full documentation of the programmatic API, see PROGRAMMATIC_API.md.

🧱 Project Structure

The generated project includes:

Core dependencies:

• @modelcontextprotocol/sdk - MCP protocol implementation • axios - HTTP client for API requests • zod - Runtime validation • json-schema-to-zod - Convert JSON Schema to Zod • Transport-specific deps (Hono, uuid, etc.)

📡 Transport Modes

Stdio (Default)

Communicates with MCP clients via standard input/output. Ideal for local development or integration with LLM tools.

Web Server with SSE

Launches a fully functional HTTP server with:

• Server-Sent Events (SSE) for bidirectional messaging • REST endpoint for client → server communication • In-browser test client UI • Multi-connection support • Built with lightweight Hono framework

StreamableHTTP

Implements the MCP StreamableHTTP transport which offers:

• Stateful JSON-RPC over HTTP POST requests • Session management using HTTP headers • Proper HTTP response status codes • Built-in error handling • Compatibility with MCP StreamableHTTPClientTransport • In-browser test client UI • Built with lightweight Hono framework

Cloudflare Worker

Generates a complete, deployable Cloudflare Workers project that serves the MCP server over Streamable HTTP at /mcp using the MCP SDK's WebStandardStreamableHTTPServerTransport directly (no extra framework dependency). Deploy it to your own Cloudflare account with one command:

Highlights:

• Stateless, runs on the free Workers tier (no Durable Objects or KV). A fresh MCP server + transport is created per request (required by MCP SDK ≥ 1.26). • Lean dependencies: just @modelcontextprotocol/sdk and zod — no extra agent framework. • Non-secret config (e.g. API_BASE_URL) lives in wrangler.jsonc under vars; secrets are set with wrangler secret put and read from the env binding — never committed. • Workers-native runtime: global fetch (no Node https), and argument validation uses build-time-emitted zod (no runtime eval). • Auth is scheme-aware: API key (header/query/cookie), HTTP basic/bearer, and OAuth2 client-credentials are derived from env secrets. • --header-passthrough, --custom-auth, --port, --insecure, --generate-lib, and --oauth-creds-in-body do not apply to this target and are ignored with a warning.…

Description from the npm listing.

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

Where openapi-mcp-generator sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 56, #13 (overall #1113)
All npm: every listing in weekly downloads order
PNG SVG
MCP servers254 listings · 13 pages · page 11, #13 (overall #213)
MCP servers: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

openapi-mcp-generator weekly downloads on npm, last 90 days: 4,613 weekly downloads as of Oct 17, 2026, -70.9% over 90 days.openapi-mcp-generatorWeekly downloads on npm · Last 90 days4,613downloads / week-70.9% over 90 days05K10K15K20K25KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
openapi-mcp-generator weekly downloads on npm, last 90 days: 4,613 weekly downloads as of Oct 17, 2026, -70.9% over 90 days.
PNG SVG

7/30/90-day growth

openapi-mcp-generator weekly downloads growth on npm: -62.7% over 7 days, -51.2% over 30 days, -70.9% over 90 days.openapi-mcp-generatorWeekly downloads growth on npm4,613downloads / week now7-day growth-7,770 weekly downloads-62.7%30-day growth-4,842 weekly downloads-51.2%90-day growth-11,215 weekly downloads-70.9%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
openapi-mcp-generator weekly downloads growth on npm: -62.7% over 7 days, -51.2% over 30 days, -70.9% over 90 days.
PNG SVG

Ranking history

openapi-mcp-generator npm ranking history: currently #1113 (by weekly downloads).openapi-mcp-generatornpm ranking · by weekly downloads · Last 90 days#1113current rank#300#400#500#600#700#800#900#1000#1100#1200Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
openapi-mcp-generator npm ranking history: currently #1113 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for openapi-mcp-generator
Date (UTC)Weekly downloadsChange vs. previous
4,613-738
5,351+603
4,748-2.7K
7,415-2.3K
9,7060
9,706-2.7K
12,435+52
12,383-446
12,829-2.4K
15,182-1.2K
16,383-4.3K
20,669-3.4K
24,022+1.1K
22,947—

Similar npm MCP servers plugins

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 Oct 19, 2026. See the methodology.