MCP Server Builder

SkillAI & models

Turn an existing API into tools an AI assistant can actually use by generating ready-to-run code from its OpenAPI spec. Instead of writing wrappers by hand, you get production-ready Python or TypeScript built from your API contract. Schema validation and safe evolution keep the result correct as your API changes.

Available today. Use it from your connected AI after setup.

Add this skill, then share your API's OpenAPI spec and ask for the generated code in Python or TypeScript. Review the result and ship it so your assistant can start using your API.

Then ask your AI: use the MCP Server Builder skill

What your AI can do with it

  • Generate ready-to-run Python or TypeScript code from an OpenAPI spec
  • Expose your API's endpoints as tools AI assistants like Claude or Codex can use
  • Validate schemas so requests and responses match your API contract
  • Evolve the generated code safely when your API changes
  • Skip writing tool wrappers by hand

What this skill tells your AI

The instructions your AI receives, as published by borghei/claude-skills in engineering/mcp-server-builder/SKILL.md and read by ahel’s review.

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

Signals

GitHub stars
740
Forks
135
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
mcp-server-builder
Source
github.com/borghei/claude-skills