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

openapi-mcp-generator

Generates MCP server code from OpenAPI specifications

596 stars25k/wkupdated 31d agogithub ↗
90excellent
▣ Overview
npm versionLicense: MITGitHub repository

What it does

This tool converts OpenAPI specifications into complete, production-ready MCP servers. Given an OpenAPI 3.0+ spec, it generates a TypeScript project that proxies requests to your actual REST API while adding MCP protocol handling, runtime input validation via Zod schemas, and support for multiple transport modes—stdio for local integration, SSE for web clients, and StreamableHTTP for broader deployment. The generated server handles authentication (API keys, Bearer tokens, Basic auth, OAuth2) via environment variables and includes a browser-based test client for web transports.

Who it's for

Backend engineers and platform teams maintaining REST APIs who want to expose them as MCP tools for Claude and other AI agents. Organizations deploying agent infrastructure that needs seamless integration with documented APIs. Developers building API gateways or multi-agent orchestration systems where consistent tool interfaces across APIs are essential.

Common use cases

  • Expose a documented REST API as an MCP tool without writing server code
  • Enable Claude Code and AI agents to call your API with structured, validated inputs
  • Generate proxy servers for legacy or third-party APIs without modifying the original
  • Deploy API access across stdio, HTTP, and SSE transports from a single OpenAPI spec
  • Validate API request payloads against the OpenAPI schema before forwarding

Setup pitfalls

  • Requires a complete OpenAPI spec (YAML or JSON); missing or inaccurate schema definitions will be reflected in generated validation
  • Marked as high-risk due to filesystem writes and network call capabilities—review generated servers and validate that the OpenAPI spec is trusted before production use
  • API credentials and secrets must be injected via environment variables at runtime; ensure .env files are properly gitignored and access-controlled
  • The generated project is TypeScript; requires Node.js and a build step before deployment
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
81
16.1
Quality
10%
90
9.0
Trust
10%
50
5.0
Total
90.1
⚿ 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 30 snapshots
4/30/20266/6/2026 · 30 snapshots
⚙ Maintenance health
44/ 100 · is this project alive?
contributors (1y)7
top contributor share42%
releases (1y)0
ci✓ passing
⛁ Raw data
weekly downloads25k
github stars596
forks84
open issues20
license✓ present
readme length11112 chars
last publish2d ago
last commit31d ago
last updated7h ago
install verified✓ pass · 22d 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