Mcp Server Builder skill for Claude

Use when exposing an API as an MCP server or scaffolding a new MCP server in Python or TypeScript, before hand-writing tool wrappers. Generates tools from OpenAPI with openapi_to_mcp.py and validates them with mcp_validator.py.

Mcp Server Builder SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

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

How to install Mcp Server Builder

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering/skills/mcp-server-builder#main ~/.claude/skills/mcp-server-builder

Codex

npx degit alirezarezvani/claude-skills/engineering/skills/mcp-server-builder#main ~/.codex/skills/mcp-server-builder

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Mcp Server Builder skill do?

Use when exposing an API as an MCP server or scaffolding a new MCP server in Python or TypeScript, before hand-writing tool wrappers. Generates tools from OpenAPI with openapi_to_mcp.py and validates them with mcp_validator.py.

+How do I install Mcp Server Builder in Claude Code?

Copy the skill folder into ~/.claude/skills/mcp-server-builder, for example with "npx degit alirezarezvani/claude-skills/engineering/skills/mcp-server-builder#main ~/.claude/skills/mcp-server-builder". Claude Code loads it automatically and uses it when a task matches.

+Does Mcp Server Builder work with ChatGPT or Codex?

Yes. Mcp Server Builder uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/mcp-server-builder. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Mcp Server Builder free?

Mcp Server Builder is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related ai agents & skills skills

  1. Grill Me

    A relentless interview to sharpen a plan or design.

    mattpocock/skills★ 327k
  2. Skill Creator

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    anthropics/skills★ 197k
  3. Caveman

    Terse caveman voice: answer first, fluff gone, every technical fact kept.

    JuliusBrussee/caveman★ 121k
  4. Memory Engineering

    Use before adding memory to an agent or when a memory store keeps growing (long context vs RAG vs graph vs agentic memory, what to expire).

    alirezarezvani/claude-skills★ 30k
  5. Memory Status

    Health check of agent auto-memory: line counts, topic files, capacity, stale entries and what to prune.

    alirezarezvani/claude-skills★ 30k
  6. Prompt Engineer Toolkit

    Use when a marketing team's AI prompts need testing, versioning or governance, before shipping a prompt.

    alirezarezvani/claude-skills★ 30k
  7. Prompt Governance

    Use when prompts run in production and need versioning, a registry, A/B tests, regression checks or an eval pipeline.

    alirezarezvani/claude-skills★ 30k
  8. Red Team

    Use when planning or running an authorized red team engagement or attack path analysis.

    alirezarezvani/claude-skills★ 30k
  9. Remember

    Save something important to auto-memory with a timestamp and context.

    alirezarezvani/claude-skills★ 30k

See all ai agents & skills skills →

More skills from alirezarezvani

  1. Md Document

    Use when converting long-form markdown (spec, RFC, report, plan) into a single-file HTML page with sticky TOC, search and code-copy.

    alirezarezvani/claude-skills★ 30k
  2. Md Review

    Use when converting a markdown code review with diff blocks and severity callouts into a two-column HTML review.

    alirezarezvani/claude-skills★ 30k
  3. Md Slides

    Turn a markdown file into a single-file HTML slide deck with keyboard navigation, presenter notes and print-to-PDF.

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.