Generates production-ready Model Context Protocol (MCP) server boilerplate from OpenAPI specifications, enabling exposure of existing APIs as powerful tools for AI agents.
Mcpgen is a command-line tool that bridges the gap between OpenAPI specifications and MCP server implementation. It automates the generation of Go boilerplate code, including server initialization, tool registration, and handler skeletons. By translating OpenAPI schemas into JSON Schemas and creating detailed markdown response templates, Mcpgen simplifies the process of exposing APIs as AI agent tools, enabling developers to focus on integrating their core logic.