mcp-server-builder

Generate MCP server scaffolds and tool manifests from OpenAPI specifications.

2|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/zhangzhang-111-i/claude-skills111 --skill mcp-server-builder-zhangzhang-111-i
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-builder
Source: https://github.com/zhangzhang-111-i/claude-skills111/tree/main/engineering/mcp-server-builder
Command: npx skills add https://github.com/zhangzhang-111-i/claude-skills111 --skill mcp-server-builder-zhangzhang-111-i

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of MCP (Meta-Cognitive Programming) servers directly from OpenAPI specifications, streamlining the process of exposing APIs to AI agents and ensuring contract quality.

Core Features & Use Cases

  • OpenAPI to MCP Conversion: Transforms OpenAPI definitions into MCP tool manifests and starter server scaffolds.
  • Code Generation: Produces Python or TypeScript server code based on the OpenAPI contract.
  • Validation: Includes a validator to check MCP tool definitions for common production issues.
  • Use Case: You have an existing REST API defined by an OpenAPI spec and need to quickly create an MCP server that AI agents can use to interact with it, ensuring the generated tools are well-defined and validated.

Quick Start

Use the mcp-server-builder skill to generate a Python MCP server scaffold from the provided OpenAPI specification file named 'openapi.json'.

Frequently Asked Questions about mcp-server-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an MCP server from an OpenAPI spec?

To generate an MCP server from an OpenAPI spec, you run Python scripts that transform the API contract into executable server scaffolds and validated tool definitions for AI agent integration.

Can I generate TypeScript server code from an OpenAPI definition?

Yes, you can generate TypeScript server code from an OpenAPI definition. The generation process supports both Python and TypeScript output formats with integrated validation checks.

What is the best way to expose my REST API to AI agents?

The best way to expose a REST API to AI agents is converting your OpenAPI specifications into MCP tool manifests, which provides well-defined, validated interfaces for agent interaction.

How do you validate MCP tool definitions for production issues?

You validate MCP tool definitions using an integrated validator that checks the generated tool manifests against common production issues after converting them from OpenAPI specifications.

Do I need an existing OpenAPI specification to create an MCP server scaffold?

Yes, you need an existing OpenAPI specification file, such as 'openapi.json', because the MCP server scaffold and tool manifests are generated directly from these API contracts.