{
"mcpServers": {
"mcpgen": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Generate Go MCP server boilerplate from OpenAPI 3 specifications
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 318 days ago. 90 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
An open-source AI agent that brings the power of Gemini directly into your terminal.
The full-stack TypeScript framework to build, test, and deploy production-ready MCP servers and AI-native apps.
Open-source persistent memory for AI agent pipelines (LangGraph, CrewAI, AutoGen) and Claude. REST API + knowledge graph + autonomous consolidation.
MCP Security Weekly
Get CVE alerts and security updates for Mcpgen and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
mcpgen is a command-line tool that seamlessly generates production-ready Model Context Protocol (MCP) server boilerplate from your OpenAPI specifications, enabling you to easily expose your existing APIs as powerful tools for AI agents.
oneOf/anyOf/allOf combinatorsminimum, maximum, maxLength, pattern)go install github.com/lyeslabs/mcpgen/cmd/mcpgen@latest
By default, the binary is installed to $HOME/go/bin (or %USERPROFILE%\go\bin on Windows).
Make sure this directory is in your PATH.
mcpgen --input openapi.yaml --output generated-server
--input
Path to your OpenAPI specification file (YAML or JSON).
--output
Output directory for the generated MCP server boilerplate.
--validation
Enable OpenAPI validation (default: false).
--package
Name for the generated Go package (default: mcpgen).
--includes
Comma-separated list of additional includes for the generated code. Use httpclient,types to generate the HTTP client and types.
mcpgen --input api/openapi.yaml --output ./generated-server --validation --package myserver --includes=httpclient,types
mcpgen acts as a bridge between your declarative OpenAPI specification and the programmatic Go code required for an MCP server. It reads your OpenAPI definition and automatically generates the necessary boilerplate, including the structured schemas and prompts essential for effective AI agent interaction.
Let's illustrate this with an example of a moderately complex endpoint defined in OpenAPI:
# This is a snippet from your OpenAPI specification
/todos:
get:
tags:
- Todos
summary: List all todo items
description: Retrieves a list of todo items, optionally filtered by status.
operationId: listTodos
parameters:
- name: status
in: query
description: Filter todos by status (e.g., "pending", "completed")
required: false
schema:
type: string
enum: [pending, completed, in-progress]
- n
... [View full README on GitHub](https://github.com/lyeslabs/mcpgen#readme)