A tool that turns OpenAPI docs into Claude MCP servers
mcpgen is a that creates a Python MCP server from an OpenAPI document or a . The goal is to reduce the repeated setup work needed when connecting Claude to a personal or company API.
After installation, a developer can pass in an API document URL and get working server code. The generated result is not a hosted proxy; it is the developer owns, can inspect, edit, and deploy anywhere.
The generated server does not need mcpgen to keep running. It supports OpenAPI 3.x and s, detects automatically, and prints the config block at the end.
Key points
- mcpgen generates Python MCP server code from OpenAPI docs.
- The generated code can be read, changed, and deployed by the developer.
- The server does not depend on mcpgen at runtime.
- It supports OpenAPI 3.x and s.
- It detects and outputs a config block.