mcp-server-builder — Claude Code skill: what it does, how to install
Generates production-ready MCP server scaffolding in Python or TypeScript directly from OpenAPI contracts. Ideal for exposing existing APIs to LLMs.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install engineering-advanced-skills@claude-code-skillsWhat mcp-server-builder does
This skill translates OpenAPI paths and operations into Model Context Protocol tool definitions. It includes scripts/openapi_to_mcp.py to generate server code and scripts/mcp_validator.py to test manifests before deployment. The validator catches broken schema shapes, duplicate tool names, and missing descriptions.
The workflow targets Python for data backends or TypeScript for unified JavaScript stacks. You feed the OpenAPI spec via --input or stdin. Running the scripts requires Python 3.
Install this when you already maintain an OpenAPI specification and want agent tools fast. Without an existing API contract, hand-coding the server is simpler.
What it helps with
- Scaffold Python or TypeScript MCP servers directly from OpenAPI specs
- Validate MCP tool manifests for schema shape issues and naming errors
- Convert existing REST API endpoints into typed LLM tools
- Enforce backward-compatibility checks before publishing MCP tools
Example prompts for the agent
- Scaffold a Python MCP server from openapi.json for billing-mcp
- Validate out/tool_manifest.json using the strict validator script
How to install mcp-server-builder
1Plugin marketplace
/plugin marketplace add alirezarezvani/claude-skills/plugin install engineering-advanced-skills@claude-code-skillsThis installs the whole engineering-advanced-skills plugin with all its skills
2Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill mcp-server-builder -a claude-code3Manually: put the files in place
~/.claude/skills/mcp-server-builder/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/mcp-server-builder/
Manually: put the files in place
.agents/skills/mcp-server-builder/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/mcp-server-builder/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills mcp-server-builder2Manually: put the files in place
.github/skills/mcp-server-builder/SKILL.mdPlatform CLI
gemini skills install https://github.com/alirezarezvani/claude-skills --path engineering/skills/mcp-server-builderManually: put the files in place
.devin/skills/mcp-server-builder/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set349
The whole set →Similar
Questions about mcp-server-builder
How to install mcp-server-builder in Claude Code?
Run /plugin marketplace add alirezarezvani/claude-skills or execute npx skills add alirezarezvani/claude-skills --skill mcp-server-builder -a claude-code.
What does mcp-server-builder do?
It turns OpenAPI specifications into Python or TypeScript MCP server starter code and validates manifests against common tool schema defects.
Which runtimes are supported?
The generator produces starter code for Python and TypeScript, keeping tool definitions consistent regardless of runtime.
Source text
SKILL.md · MIT
--- name: "mcp-server-builder" description: "Design and ship production-ready MCP (Model Context Protocol) servers from OpenAPI contracts instead of hand-written tool wrappers. Python and TypeScript support, schema validation, safe evolution. Use when exposing an existing API as an MCP server, building tool integrations for Claude or Codex or Cursor, or scaffolding an MCP project from scratch." --- # 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. ```bash python3 scripts/openapi_to_mcp.py \ --input openapi.json \ --server-name billing-mcp \ --language python \ --output-dir ./out \ --format text ``` Supports stdin as well: ```bash 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: ```bash 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](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](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/openapi-extraction-guide.md) - [references/python-server-template.md](references/python-server-template.md) - [references/typescript-server-template.md](references/typescript-server-template.md) - [references/validation-checklist.md](references/validation-checklist.md) - [README.md](README.md)
© Alireza Rezvani · MIT · alirezarezvani/claude-skills