MCP-Generator
Active·★ 20·MIT·Updated 2026-10-18
MCP-Generator is a command-line tool that transforms OpenAPI v3 specifications into full-fledged MCP (Multi-Agent Communication Protocol) servers. It supports TypeScript, Python, and Go, generating typed models, API clients, and preserving custom code across regenerations.
#OpenAPI#Code Generation#TypeScript#Python#Go#CLI#API Tooling#Server Scaffolding
01
Features
01Generates MCP servers from OpenAPI v3 specifications in TypeScript, Python, or Go.
02Maps API routes to typed MCP tools with input parameters, example responses, and complex schema support (oneOf/anyOf).
03Supports incremental code preservation, allowing custom logic to be retained during code regeneration.
04Provides a validation command to check OpenAPI specs for issues like name collisions, missing examples, and unsupported schemas.
05Option to generate handlers that call the real API over HTTP (HTTP client mode) instead of returning example stubs.
02
Compatibility
Node.js
Runtime
Verified via docs
npm
Package Manager
Verified via docs
TypeScript
Target Language
Verified via docs
Python
Target Language
Verified via docs
Go
Target Language
Verified via docs
03
Quick start
1
$ git clone https://github.com/ChristopherDond/MCP-Generator.git
2
$ cd MCP-Generator
3
$ npm install
4
$ npm run build
04
Use cases
↳Rapidly scaffold an MCP server project for a new API based on its OpenAPI definition.
↳Integrate existing APIs into multi-agent systems by automatically exposing them as typed MCP tools.
↳Automate the generation of API server code, client code, and data models for multiple programming languages (TypeScript, Python, Go).
↳Maintain up-to-date server implementations by regenerating code when the OpenAPI specification evolves, while preserving custom business logic.
↳Validate OpenAPI specifications for correctness and adherence to best practices during the API design and development process.
05
Alternatives
universal-bluetooth-sdk★ 35
Experimental Go Bluetooth daemon and CLI with Linux RFCOMM, MCP tools, and a hardware-free demo. Building toward nearby chat and optional local AI.
universal-mcp-toolkit★ 15
The canonical open-source monorepo for production-ready MCP servers.
Comments
Log in to leave a comment
No comments yet. Be the first!