Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alirezarezvani avatar

Mcp Server Builder

  • 615 installs
  • 23.5k repo stars
  • Updated July 17, 2026
  • alirezarezvani/claude-skills

mcp-server-builder is a Claude agent skill that generates and validates production-ready MCP servers from OpenAPI specs for developers who need typed API tools for Claude, Cursor, or Codex instead of hand-written wrapper

About

mcp-server-builder is an alirezarezvani/claude-skills engineering skill that scaffolds production-ready Model Context Protocol servers from OpenAPI contracts in Python or TypeScript. Two bundled scripts—openapi_to_mcp.py and mcp_validator.py—convert openapi.json paths into tool_manifest.json plus starter server code and run strict structural validation before integration tests. Five reference guides cover OpenAPI extraction, Python and TypeScript server templates, production hardening, and a validation checklist. Developers use mcp-server-builder when exposing internal or external REST APIs to LLM agents, replacing brittle browser automation with typed tools shared across teams. The workflow treats OpenAPI as source of truth, enforces naming and schema quality, and recommends additive-only tool versioning. Reach when bootstrapping MCP integrations from existing API contracts.

  • OpenAPI → tool_manifest.json plus Python or TypeScript starter server via openapi_to_mcp.py
  • Strict structural validation with mcp_validator.py before you ship tools to agents
  • operationId-first tool naming with sanitized method_path fallbacks
  • Bundled extraction guide, language templates, and validation checklist references
  • Copy-install paths documented for Claude Code, Codex, and OpenClaw skill directories

Mcp Server Builder by the numbers

  • 615 all-time installs (skills.sh)
  • Ranked #1,545 of 16,565 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/alirezarezvani/claude-skills --skill mcp-server-builder

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs615
repo stars23.5k
Security audit3 / 3 scanners passed
Last updatedJuly 17, 2026
Repositoryalirezarezvani/claude-skills

How do you generate MCP servers from OpenAPI specs?

Scaffold and validate production-ready MCP servers from an existing OpenAPI spec so your coding agent can call your API safely.

Who is it for?

Developers exposing existing REST APIs as MCP tools who want OpenAPI-driven scaffolds with manifest validation before agent integration.

Skip if: Developers building MCP servers without an OpenAPI contract or who only need one-off browser automation scripts.

When should I use this skill?

User asks to scaffold an MCP server from OpenAPI, validate tool_manifest.json, or expose a REST API to Claude or Cursor agents.

What you get

tool_manifest.json, Python or TypeScript MCP server scaffold, and strict validation report from mcp_validator.py.

  • tool_manifest.json
  • MCP server scaffold
  • Validation report

By the numbers

  • Bundles 2 Python scripts: openapi_to_mcp.py and mcp_validator.py
  • Includes 5 reference guides for extraction, templates, hardening, and validation

Files

SKILL.mdMarkdownGitHub ↗

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

  • references/production-hardening-guide.md — auth & safety design, versioning strategy, common pitfalls, best practices, architecture decisions, contract quality gates, testing strategy, deployment practices, security controls
  • references/openapi-extraction-guide.md
  • references/python-server-template.md
  • references/typescript-server-template.md
  • references/validation-checklist.md
  • README.md

Related skills

How it compares

Pick mcp-server-builder over manual MCP tutorials when you already have openapi.json and need repeatable scaffold plus strict manifest validation.

FAQ

Which scripts does mcp-server-builder include?

mcp-server-builder bundles openapi_to_mcp.py for OpenAPI-to-MCP scaffold generation and mcp_validator.py for strict tool_manifest.json validation checking duplicate names, schema shape, and missing descriptions.

What languages does mcp-server-builder support?

mcp-server-builder generates Python or TypeScript MCP server scaffolds via openapi_to_mcp.py --language python or --language typescript, with separate reference templates for each runtime.

How do you validate MCP tools before integration tests?

mcp-server-builder runs python3 scripts/mcp_validator.py --input out/tool_manifest.json --strict --format text to catch duplicate tool names, invalid schemas, and empty required fields before agent integration.

Is Mcp Server Builder safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.