Openapi Mcp Generator
Generates Model Context Protocol (MCP) servers from OpenAPI specifications, enabling AI agents to interact with existing REST APIs.
概要
Openapi Mcp Generator is a CLI tool that automates the generation of MCP-compatible servers, allowing AI agents and other MCP clients to seamlessly interact with your APIs using various transport methods. It converts OpenAPI 3.0+ specifications into a Node.js project that proxies requests to existing REST APIs while validating request structure and security. Supporting multiple transport options like stdio, SSE via Hono, or StreamableHTTP, it offers authentication support, Zod validation, and typed TypeScript code output, making it a comprehensive solution for integrating your APIs with the Model Context Protocol.
主な機能
- Proxies calls to original REST API with validation
- Generates Zod schemas for runtime input validation
- Converts OpenAPI 3.0+ specs into MCP-compatible servers
- Supports API keys, Bearer tokens, Basic auth, and OAuth2 via environment variables
- Supports stdio, SSE via Hono, or StreamableHTTP transports
- 139 GitHub stars
ユースケース
- Enabling AI agents to interact with existing REST APIs
- Creating MCP-compatible servers for local development
- Generating typed TypeScript code for maintainable server implementations