Openapi Mcp Generator icon

Openapi Mcp Generator

139

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
Craft Better Prompts with AnyPrompt
Sponsored