{"library":"openapi-mcp-generator","title":"OpenAPI MCP Generator","description":"CLI tool that generates Model Context Protocol (MCP) server code from OpenAPI 3.0+ specifications. v3.3.0 released March 2025. Generates a complete, typed TypeScript project with Zod validation, proxy behavior to the original REST API, and support for multiple transports (stdio, SSE via Hono, StreamableHTTP). Key differentiators: automates full scaffolding including package.json, tsconfig.json, and entry point; built-in HTML test clients for web transports; supports API key, Bearer, Basic, and OAuth2 auth via environment variables. Requires Node >=20 and peer deps @modelcontextprotocol/sdk, json-schema-to-zod, zod. Ships TypeScript types.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install openapi-mcp-generator"],"cli":{"name":"openapi-mcp","version":null}},"imports":["import { generateServer } from 'openapi-mcp-generator';","import generateMCPServer from 'openapi-mcp-generator';","npx openapi-mcp-generator --input spec.yaml --output ./server"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install globally or use npx\n// Generate a stdio-based MCP server from a local OpenAPI file\n// Command:\nnpx openapi-mcp-generator --input petstore.yaml --output ./mcp-server --server-name petstore-api --server-version 1.0.0\n\n// Then run the generated server:\ncd ./mcp-server\nnpm start\n","lang":"javascript","description":"Shows how to generate a stdio MCP server from an OpenAPI specification using the CLI, then run it.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}