New to Claude Skills? Learn how to install them →

alirezarezvani on GitHub

MCP Server Builder

Free

Build production-ready MCP servers from OpenAPI contracts.

Get this skill

Free · Opens the source repo

What MCP Server Builder does

MCP Server Builder is a powerful skill designed for developers who need to create production-ready Model Context Protocol (MCP) servers efficiently. By leveraging OpenAPI specifications, this skill eliminates the need for hand-written tool wrappers, allowing for rapid scaffolding of server implementations in both Python and TypeScript. The focus on schema quality and validation ensures that the generated servers are robust and maintainable, making it ideal for teams looking to expose APIs to AI agents like Claude, Codex, or Cursor.

This skill streamlines the workflow of converting OpenAPI paths and operations into MCP tool definitions. Users can quickly generate starter server scaffolds and enforce consistency in naming, descriptions, and schemas. Additionally, the built-in validation checks help catch common production failures before deployment, ensuring that the MCP tools meet quality standards. With support for versioning and backward-compatibility checks, developers can evolve their APIs safely without introducing breaking changes.

MCP Server Builder is particularly useful in scenarios where teams need to expose internal or external REST APIs to LLM agents or when transitioning from brittle browser automation to more reliable typed tools. The ability to bootstrap an MCP server from existing OpenAPI specs means that teams can leverage their current API documentation to kickstart new projects, reducing the overhead of starting from scratch. This skill is a valuable addition for any developer or team involved in API integration and tool development for AI applications.

When to use it

Use this skill when you need to expose an API to an LLM agent or when you want to create a shared MCP server across multiple teams.

When not to use it

This skill may not be suitable for projects that do not utilize OpenAPI specifications or for those requiring highly customized server behavior that cannot be scaffolded.

What you can build with it

Expose an Internal API

Quickly generate an MCP server that exposes your internal REST API to LLM agents using existing OpenAPI specs.

Transition from Browser Automation

Replace brittle browser automation scripts with a robust MCP server that provides typed tools for your applications.

Bootstrap a New Project

Start a new MCP project by generating server scaffolds directly from your OpenAPI documentation, saving time and effort.

How to install MCP Server Builder

View source

1. Install with the skills CLI

npx skills add alirezarezvani/claude-skills/mcp-server-builder --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by alirezarezvani

MCP Server Builder

Tier: POWERFUL · Category: Engineering · Domain: AI / API Integration

Overview

Use this skill to design and ship production-ready MCP servers from API contracts instead of hand-written one-off tool wrappers. It focuses on fast scaffolding, schema quality, validation, and safe evolution.

The workflow supports both Python and TypeScript MCP implementations and treats OpenAPI as the source of truth.

Core Capabilities

  • Convert OpenAPI paths/operations into MCP tool definitions
  • Generate starter server scaffolds (Python or TypeScript)
  • Enforce naming, descriptions, and schema consistency
  • Validate MCP tool manifests for common production failures
  • Apply versioning and backward-compatibility checks
  • Separate transport/runtime decisions from tool contract design

When to Use

  • You need to expose an internal/external REST API to an LLM agent
  • You are replacing brittle browser automation with typed tools
  • You want one MCP server shared across teams and assistants
  • You need repeatable quality checks before publishing MCP tools
  • You want to bootstrap an MCP server from existing OpenAPI specs

Key Workflows

1. OpenAPI to MCP Scaffold

  1. Start from a valid OpenAPI spec.
  2. Generate tool manifest + starter server code.
  3. Review naming and auth strategy.
  4. Add endpoint-specific runtime logic.
python3 scripts/openapi_to_mcp.py \
  --input openapi.json \
  --server-name billing-mcp \
  --language python \
  --output-dir ./out \
  --format text

Supports stdin as well:

cat openapi.json | python3 scripts/openapi_to_mcp.py --server-name billing-mcp --language typescript

2. Validate MCP Tool Definitions

Run validator before integration tests:

python3 scripts/mcp_validator.py --input out/tool_manifest.json --strict --format text

Checks include duplicate names, invalid schema shape, missing descriptions, empty required fields, and naming hygiene.

3. Runtime Selection

  • Choose Python for fast iteration and data-heavy backends.
  • Choose TypeScript for unified JS stacks and tighter frontend/backend contract reuse.
  • Keep tool contracts stable even if transport/runtime changes.

4. Harden for Production

Key items before publishing:

  • Keep secrets in env vars, not tool schemas
  • Prefer outbound host allowlists over open proxies
  • Use additive-only changes; never rename tool names in-place

Full hardening guidance: references/production-hardening-guide.md.

Script Interfaces

  • python3 scripts/openapi_to_mcp.py --help
    • Reads OpenAPI from stdin or --input
    • Produces manifest + server scaffold
    • Emits JSON summary or text report
  • python3 scripts/mcp_validator.py --help
    • Validates manifests and optional runtime config
    • Returns non-zero exit in strict mode when errors exist

Reference Material

Frequently asked questions about MCP Server Builder

Similar skills