mcp-builder
БесплатноЗапускает вложенные скриптыНе проверенBuild production MCP (Model Context Protocol) servers that let LLMs drive an external API through well-designed tools, in TypeScript (MCP SDK) or Python…
от akillness★ 63 звезды на GitHubОб этом скилле
MCP Server Builder
Build an MCP server whose quality is measured by one thing: can an LLM actually accomplish real tasks with it? Not endpoint coverage, not schema elegance. A server that mirrors 40 REST endpoints and leaves the model unable to complete a workflow has failed.
The most common failure is treating this as an API-wrapping exercise. Tool naming, response shape, error text, and pagination are all agent ergonomics problems, and they decide whether the server works.
Bundled from anthropics/skills commit
3b3fad96af16a10759d930941b4520ba0c40edae (2026-08-21), Apache-2.0. Upstream
ships skills/mcp-builder/LICENSE.txt; the repository root carries no SPDX
license, so the per-skill license is the operative one — see
upstream and licensing.
When to use this skill
- Wrap an external API or service as an MCP server.
- Decide tool granularity: comprehensive endpoint coverage versus workflow tools.
- Name and shape tools so an agent picks the right one unprompted.
- Choose a transport and a state model.
- Diagnose a server whose tools the model misuses or cannot chain.
- Build evaluations that prove the server enables real tasks.
Do not use this skill for neighboring jobs:
- Consume or configure an already-built MCP server: use that server's own skill.
- Design a REST or GraphQL contract for human clients: use
api-design. - Write the underlying service: this covers the MCP layer over it.
- Harden a web app generally: use
security-best-practices. - Build a non-MCP agent tool layer: use
agent-tool-routing.
Instructions
Step 0: Pick the phase
| Phase | Job | Output |
|---|---|---|
research |
understand the API and MCP design norms | tool inventory and plan |
design |
naming, granularity, response shape | tool contract |
implement |
build in TypeScript or Python | working server |
secure |
auth, validation, error handling, DNS rebinding | reviewed surface |
evaluate |
10 verified questions, harness run | pass or fail evidence |
Skipping research and design is what produces servers with 40 thin tools
that no agent can use.
Step 1: Research before writing tools
Read the target API's real semantics: resources, verbs, pagination style, auth model, rate limits, error shapes. Then decide coverage strategy.
Coverage versus workflow tools. Comprehensive endpoint coverage gives agents composition flexibility; workflow tools are more convenient for specific tasks. Performance varies by client — some benefit from code execution combining basic tools, others from higher-level workflows. Upstream's guidance when uncertain: prioritize comprehensive API coverage.
MCP specification: start at https://modelcontextprotocol.io/sitemap.xml, then
fetch pages with a .md suffix for markdown.
Step 2: Choose the stack deliberately
Upstream recommends TypeScript: strong SDK support, good compatibility in execution environments such as MCPB, static typing, and models generate it well. Python with FastMCP is fully supported and often better when the surrounding service is already Python.
| Need | Choose |
|---|---|
| Default, broad compatibility | TypeScript + MCP SDK |
| Existing Python service, scientific stack | Python + FastMCP |
Step 3: Design tools for discoverability
- Consistent prefixes:
github_create_issue,github_list_repos. - Action-oriented names: the verb says what happens.
- Concise descriptions: they are read by a model with limited context.
- Filterable, paginated results: return focused data, not everything.
- Actionable errors: an error must suggest the next step, not just report
failure.
"Invalid repo"is a dead end;"Repository not found. List available repositories with github_list_repos."is recoverable.
Full conventions in design and implementation.
Step 4: Choose transport and state model
| Transport | Use for | Note |
|---|---|---|
| stdio | local servers | simplest; process-scoped |
| Streamable HTTP | remote servers | prefer stateless JSON |
Upstream prefers stateless JSON over stateful sessions and streaming responses: simpler to scale and maintain. Choose stateful only with a concrete reason.
Step 5: Secure the surface before exposing it
- Authenticate and authorize every tool that touches private data.
- Validate all input at the boundary; never trust model-supplied arguments.
- Return errors that guide without leaking internals, stack traces, or secrets.
- Enable DNS rebinding protection on HTTP transports.
- Apply tool annotations honestly — a destructive tool marked read-only is a trap for both the agent and its user.
Step 6: Evaluate — the phase most often skipped
Ten questions, each independent, read-only, complex (multiple tool calls), realistic, verifiable by string comparison, and stable over time.
Process: inspect the tools, explore da
Установить mcp-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepВложенные файлы
FAQ
Что делает скилл mcp-builder?
Build production MCP (Model Context Protocol) servers that let LLMs drive an external API through well-designed tools, in TypeScript (MCP SDK) or Python (FastMCP). Route one request to research and planning, tool design, transport choice, implementation, security review, or evaluation. Use when the user wants to wrap an API as MCP tools, name and shape those tools, choose between stdio and streamable HTTP, decide tools vs resources vs prompts, write a Server Card and publish to the MCP registry, fix a server whose tools the model cannot use correctly, or build the 10-question evaluation that proves it works. Requires confirmation before running an evaluation harness that spends API credits or calls a live service. Owns the retired `mcp-server-design` name. Route consuming an existing MCP server to that server's own skill, and generic API contract design to `api-design`.
Как установить скилл mcp-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcp-builder запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic