mcp-server-builder
Skill0 starsChanged 10 months agoMITView on GitHub
Scaffolds production-ready MCP servers from OpenAPI specs with schema validation, named tool definitions, and versioning strategy. Use when: "build MCP server from API", "create tool server from OpenAPI", "expose REST API to LLM agent", "scaffold MCP from spec", "convert API contract to tools".
11 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- Cure-Consulting-Group/ProductEngineeringSkillstheir own version, first seen Sep 28, 2026
- OneWave-AI/claude-skillstheir own version, first seen Sep 21, 2026
- DROOdotFOO/agent-skillstheir own version, first seen Sep 1, 2026
- yeaight7/agent-powerupstheir own version, first seen Jul 27, 2026
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
- mahiunfiltered/claude-code-skillstheir own version, first seen Jul 8, 2026
Used with
Projects with it also use agent-designer, env-secrets-manager and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Arnav-0Skillagent-designer
Use when the user asks to design multi-agent systems, create agent architectures, define agent communication patterns, or build autonomous agent workflows.
Also in 3 projects that use this
Arnav-0Skillenv-secrets-manager
Env & Secrets Manager
Also in 3 projects that use this
mar-antayaSkillci-cd-pipeline-builder
CI/CD Pipeline Builder
Also in 3 projects that use this
JeffallanSkillrag-architect
Designs and implements production-grade RAG systems by chunking documents, generating embeddings, configuring vector stores, building hybrid search pipelines, applying reranking, and evaluating retrieval quality. Use when building RAG systems, vector databases, or knowledge-grounded AI applications requiring semantic search, document retrieval, context augmentation, similarity search, or embedding-based indexing.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- csiddhant796-blip/claude-skills-collection★ 210% same
- Arnav-0/claude-code-setup★ 010% same
Wrote their own version · 9
- OneWave-AI/claude-skills★ 321same name
- Hassaan146/claude-skills★ 18same name
- cropsgg/skills★ 15same name
- yeaight7/agent-powerups★ 6same name
- Cure-Consulting-Group/ProductEngineeringSkills★ 3same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- codecharmhq/claude-code-skills★ 1same name
- DROOdotFOO/agent-skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository47 other files it gives its agents.
- agent-teachingSkill
- cf-pages-trespies-deploySkill
- compression-ritualSkill
- context-ingestionSkill
- decision-propagationSkill
- documentation-auditSkill
- era-architectureSkill
- file-managementSkill
- frontend-from-backendSkill
- handoff-protocolSkill
- health-auditSkill
- house-poc-builderSkill
- implementation-promptSkill
- iterative-scoutingSkill
- mcp-cloudflare-builderSkill
- memory-gardenSkill
- multi-surface-strategySkill
- parallel-tracksSkill
- patient-learning-protocolSkill
- planning-with-filesSkill
- poc-tool-forgeSkill
- pre-implementation-checklistSkill
- process-extractionSkill
- product-positioningSkill
- project-explorationSkill
- release-specificationSkill
- repo-context-syncSkill
- repo-statusSkill
- research-modesSkill
- research-synthesisSkill
- retrospectiveSkill
- seed-extractionSkill
- seed-librarySkill
- seed-to-skill-converterSkill
- semantic-clustersSkill
- skill-audit-upgradeSkill
- skill-creationSkill
- skill-maintenanceSkill
- spec-constellation-to-prompt-suiteSkill
- static-tool-verifySkill
- status-templateSkill
- status-writingSkill
- strategic-scoutSkill
- strategic-to-tactical-workflowSkill
- web-research-externalSkill
- workflow-routerSkill
- workspace-navigationSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Read the spec and extract:
- Very specific: line 73
Use operationId when available (preferred)
- Very specific: line 75
Use snake_case; avoid raw path segments (get__v1__users___id is wrong)
- Distinctive: line 116
Before integration, check for:
- Distinctive: line 131
Add explicit confirmation parameters to destructive operations
- Distinctive: line 137
Never rename a tool name in-place — introduce a new tool ID for breaking behavior changes
- Distinctive: line 143
Before publishing the manifest, confirm:
- Distinctive: line 145
Every tool has a verb-first, clear name
- Distinctive: line 146
Every description explains intent AND expected result
- Distinctive: line 147
Every required field is explicitly typed
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Server Builder
Scaffolds production-ready MCP servers from OpenAPI specs. Treats the API contract as the source of truth and generates tool manifests + starter code with quality gates before publication.
Description
Converts OpenAPI paths/operations into named MCP tool definitions, generates server scaffolds in Python or TypeScript, enforces naming and description quality, validates manifests against common production failures, and applies a versioning strategy for safe evolution. Distinct from mcp-cloudflare-builder (Cloudflare-specific deployment) and mcp-builder (general MCP concepts) — this skill is spec-driven and language-agnostic.
When to Use
- Exposing an internal or external REST API to LLM agents via MCP
- Replacing brittle browser automation with typed, validated tools
- Sharing one MCP server across multiple teams or assistants
- Bootstrapping from an existing OpenAPI spec rather than hand-writing tool definitions
- Running quality checks before publishing MCP tools to a registry
Workflow
Step 1: Parse the OpenAPI Spec
Read the spec and extract:
- Paths and HTTP methods
operationId(use as canonical tool name when available)- Request parameters and body schemas
- Response schemas
- Authentication requirements
Step 2: Generate Tool Manifest
For each operation, create an MCP tool definition:
{
"name": "get_user",
"description": "Retrieve a user by ID. Returns full profile including email and role.",
"inputSchema": {
"type": "object",
"properties": {
"user_id": { "type": "string", "description": "The user's UUID" }
},
"required": ["user_id"]
}
}Naming rules:
- Use
operationIdwhen available (preferred) - Otherwise derive from method + path:
GET /users/{id}→get_user - Use snake_case; avoid raw path segments (
get__v1__users___idis wrong) - One intent per tool; avoid mega-tools combining unrelated operations
Description rules:
- Lead with action verb + object
- Include what the tool returns, not just what it does
- Note any side effects for mutating operations
Step 3: Scaffold Server Code
Generate starter implementation in the chosen language:
Python (FastMCP):
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("billing-mcp")
@mcp.tool()
def get_user(user_id: str) -> dict:
"""Retrieve a user by ID. Returns full profile."""
response = requests.get(f"{BASE_URL}/users/{user_id}", headers=AUTH_HEADERS)
response.raise_for_status()
return response.json()TypeScript (MCP SDK):
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({ name: "billing-mcp", version: "1.0.0" });
server.tool("get_user", { user_id: z.string() }, async ({ user_id }) => {
const res = await fetch(`${BASE_URL}/users/${user_id}`, { headers: AUTH_HEADERS });
return { content: [{ type: "text", text: await res.text() }] };
});Step 4: Validate the Manifest
Before integration, check for:
- Duplicate tool names
- Missing or empty descriptions
- Parameters with no types
- Ambiguous schemas (no
requiredfields on non-trivial inputs) - Tool names that expose secret values
- Destructive operations without explicit confirmation parameters
Fix all validation errors before proceeding.
Step 5: Apply Auth and Safety Controls
- Store secrets in environment variables, never in tool schemas
- Allowlist outbound hosts explicitly; do not proxy arbitrary user-provided URLs
- Return structured errors:
{ "code": "NOT_FOUND", "message": "...", "details": {...} } - Add explicit confirmation parameters to destructive operations
- Rate-limit high-cost tools and add request timeouts
Step 6: Versioning Strategy
- Additive fields only for non-breaking updates
- Never rename a tool name in-place — introduce a new tool ID for breaking behavior changes
- Maintain a changelog of tool contract changes per release
- Validate backward compatibility in CI using strict mode
Contract Quality Gates
Before publishing the manifest, confirm:
- Every tool has a verb-first, clear name
- Every description explains intent AND expected result
- Every required field is explicitly typed
- Destructive actions include a confirmation parameter
- Error payload format is consistent across all tools
- Validator returns zero errors in strict mode
Runtime Selection
| Constraint | Choose |
| Fast iteration, data-heavy backend | Python |
| Shared types with JS stack | TypeScript |
| Single server, simple ops | Python FastMCP |
| Split domain servers with strict contracts | TypeScript + Zod |
Common Pitfalls
- Tool names derived from raw paths:
get__v1__users___id— fix with cleanoperationId - Missing operation descriptions — agents choose tools poorly without them
- Ambiguous schemas with no
requiredfields - Mixing transport errors and domain errors in one opaque message
- Exposing secret values in tool contracts
- Breaking clients by changing schema keys without versioning
Output
An MCP server scaffold directory containing:
tool_manifest.json— all tool definitions with names, descriptions, and schemasserver.pyorserver.ts— starter implementation with stubs for each toolCHANGELOG.md— initial entry for v1.0.0 contract- Validation report listing any issues found
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

