$ timeahead.in
/ servers/npm/openapi-mcp-generator
npm

openapi-mcp-generator

Generates MCP server code from OpenAPI specifications

602 stars34k/wkupdated 38d agogithub ↗
90excellent
▣ Overview
npm versionLicense: MITGitHub repository

What it does

The server reads OpenAPI 3.0+ specifications and generates a complete MCP-compatible TypeScript/Node.js project. It creates MCP tools that proxy calls to your underlying REST API while automatically generating Zod schemas for request validation. Built-in support for multiple authentication methods: API keys, Bearer tokens, Basic auth, and OAuth2. Choose your transport layer: stdio for local use, or web-based transports (Hono/SSE or StreamableHTTP) for remote access. The generated project includes a full Node.js scaffold with tsconfig.json, package.json, and browser-based test clients for web transports.

Who it's for

Backend engineers and API maintainers who want to quickly expose existing REST services to Claude and other MCP clients without manual scaffolding.

Common use cases

  • Expose an existing REST API to Claude Code and Claude Chat via MCP
  • Generate a typed, validated MCP proxy for a third-party REST API
  • Set up a local stdio MCP server for testing API calls in Claude
  • Deploy a web-based MCP server with SSE transport for remote AI agent integration
  • Create a Node.js project scaffold with authentication and Zod validation pre-configured

Setup pitfalls

  • OpenAPI spec must be valid 3.0+ (YAML or JSON); provide via --input (local file or URL)
  • If the OpenAPI spec lacks a servers section, you must supply --base-url explicitly
  • Authentication is configured via environment variables in .env; the generator creates .env.example but you populate it with actual credentials
  • Transport mode is critical: stdio for local use, web or streamable-http for web deployment
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
82
16.4
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
90.4
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecevalsecrets
◆ Risk level: high
fs read + fs write + network + exec + eval + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "openapi-generator": {
      "command": "npx",
      "args": [
        "-y",
        "openapi-mcp-generator"
      ]
    }
  }
}
📈 Score historylast 35 snapshots
4/30/20266/13/2026 · 35 snapshots
⚙ Maintenance health
46/ 100 · is this project alive?
contributors (1y)7
top contributor share35%
releases (1y)0
ci✓ passing
⛁ Raw data
weekly downloads34k
github stars602
forks86
open issues20
license✓ present
readme length11112 chars
last publish1d ago
last commit38d ago
last updated1d ago
install verified✓ pass · 30d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points