build-mcp-server
Was er macht
Er leitet deinen Agenten an, einen Model-Context-Protocol-Server zu planen und zu bauen, der Claude mit einer API, einem Gerät oder einer lokalen App verbindet. Er richtet sich an Entwickler, die eigene Werkzeuge oder Daten für Claude verfügbar machen wollen.
Wann du ihn nutzt
- ✓Wenn du Claude über einen MCP-Server mit einer Cloud-API oder einem Dienst verbinden willst.
- ✓Wenn du eine bestehende API umhüllen willst, damit Claude sie als Werkzeuge nutzen kann.
- ✓Wenn du entscheiden musst, ob dein MCP-Server remote oder auf dem Rechner des Nutzers laufen soll.
Link zum Skill
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/mcp-server-dev/skills/build-mcp-server/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich möchte, dass Claude in unserer internen API Aufgaben lesen und anlegen kann. Kannst du mir helfen, dafür einen MCP-Server zu bauen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent fragt zuerst nach deinem Anwendungsfall, etwa womit der Server sich verbindet und wer ihn nutzt. Danach empfiehlt er einen Bereitstellungstyp. Erst danach beginnt er mit dem Bau.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Build an MCP Server
You are guiding a developer through designing and building an MCP server that works seamlessly with Claude. MCP servers come in many forms — picking the wrong shape early causes painful rewrites later. Your first job is discovery, not code.
Load Claude-specific context first. The MCP spec is generic; Claude has additional auth types, review criteria, and limits. Before answering questions or scaffolding, fetch https://claude.com/docs/llms-full.txt (the full export of the Claude connector docs) so your guidance reflects Claude's actual constraints.
Do not start scaffolding until you have answers to the questions in Phase 1. If the user's opening message already answers them, acknowledge that and skip straight to the recommendation.
Phase 1 — Interrogate the use case
Ask these questions conversationally (batch them into one message, don't interrogate one-at-a-time). Adapt wording to what the user has already told you.
1. What does it connect to?
| If it connects to… | Likely direction |
|---|---|
| A cloud API (SaaS, REST, GraphQL) | Remote HTTP server |
| A local process, filesystem, or desktop app | MCPB or local stdio |
| Hardware, OS-level APIs, or user-specific state | MCPB |
| Nothing external — pure logic / computation | Either — default to remote |
2. Who will use it?
- Just me / my team, on our machines → Local stdio is acceptable (easiest to prototype)
- Anyone who installs it → Remote HTTP (strongly preferred) or MCPB (if it must be local)
- Users of Claude desktop who want UI widgets → MCP app (remote or MCPB)
3. How many distinct actions does it expose?
This determines the tool-design pattern — see Phase 3.
- Under ~15 actions → one tool per action
- Dozens to hundreds of actions (e.g. wrapping a large API surface) → search + execute pattern
4. Does a tool need mid-call user input or rich display?
- Simple structured input (pick from list, enter a value, confirm) → Elicitation — spec-native, zero UI code. Host support is rolling out (Claude Code ≥2.1.76) — always pair with a capability check and fallback. See
references/elicitation.md. - Rich/visual UI (charts, custom pickers with search, live dashboards) → MCP app widgets — iframe-based, needs
@modelcontextprotocol/ext-apps. Seebuild-mcp-appskill. - Neither → plain tool returning text/JSON.
5. What auth does the upstream service use?
- None / API key → straightforward
- OAuth 2.0 → you'll need a remote server with CIMD (preferred) or DCR support; see
references/auth.md
Phase 2 — Recommend a deployment model
Based on the answers, recommend one path. Be opinionated. The ranked options:
⭐ Remote streamable-HTTP MCP server (default recommendation)
A hosted service speaking MCP over streamable HTTP. This is the recommended path for anything wrapping a cloud API.
Why it wins:
- Zero install friction — users add a URL, done
- One deployment serves all users; you control upgrades
- OAuth flows work properly (the server can handle redirects, DCR, token storage)
- Works across Claude desktop, Claude Code, Claude.ai, and third-party MCP hosts
Choose this unless the server must touch the user's local machine.
→ Fastest deploy: Cloudflare Workers — references/deploy-cloudflare-workers.md (zero to live URL in two commands)
→ Portable Node/Python: references/remote-http-scaffold.md (Express or FastMCP, runs on any host)
Elicitation (structured input, no UI build)
If a tool just needs the user to confirm, pick an option, or fill a short form, elicitation does it with zero UI code. The server sends a flat JSON schema; the host renders a native form. Spec-native, no extra packages.
Caveat: Host support is new (Claude Code shipped it in v2.1.76; Desktop unconfirmed). The SDK throws if the client doesn't advertise the capability. Always check clientCapabilities.elicitation first and have a fallback — see references/elicitation.md for the canonical pattern. This is the right spec-correct approach; host coverage will catch up.
Escalate to build-mcp-app widgets when you need: nested/complex data, scrollable/searchable lists, visual previews, live updates.
MCP app (remote HTTP + interactive UI)
Same as above, plus UI resources — interactive widgets rendered in chat. Rich pickers with search, charts, live dashboards, visual previews. Built once, renders in Claude and Cha
Häufige Fragen
Fängt er gleich mit dem Programmieren an?
Nein. Der Skill stellt zuerst Fragen zur Ausgangslage und baut erst, wenn der Anwendungsfall klar ist.
Welche Bereitstellungsoptionen berücksichtigt er?
Er berücksichtigt entfernte HTTP-Server und lokale Server, einschließlich gebündelter lokaler Server.
Prüft er Claude-spezifische Anforderungen?
Ja. Laut Skill lädt er die Dokumentation zu Claude-Connectors, damit seine Hinweise Claudes Grenzen berücksichtigen.
Details
Originalbeschreibung des Autors
This skill should be used when the user asks to "build an MCP server", "create an MCP", "make an MCP integration", "wrap an API for Claude", "expose tools to Claude", "make an MCP app", or discusses building something with the Model Context Protocol. It is the entry point for MCP server development — it interrogates the user about their use case, determines the right deployment model (remote HTTP, MCPB, local stdio), picks a tool-design pattern, and hands off to specialized skills.
Beliebtheit
- GitHub-Sterne
- 46k
- Platz im Ranking
- #6341
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
access
46kLässt dich festlegen, wer deinem Assistenten über den Discord-Kanal schreiben darf, inklusive Kopplungsfreigaben und Erlaubnislisten.
configure
46kRichtet den Discord-Kanal für deinen Assistenten ein, indem er das Bot-Token speichert und prüft, wer ihn erreichen kann.
access
46kLässt dich festlegen, wer dir über den iMessage-Kanal schreiben darf, inklusive Freigaben und Erlaubnislisten.
configure
46kPrüft deine iMessage-Kanaleinrichtung, inklusive Vollzugriff auf die Festplatte, und erklärt, wer deinen Assistenten erreichen kann.
Ähnliche Skills
mcporter
394kHilft deinem Agenten, MCP-Server und ihre Werkzeuge über HTTP oder stdio aufzulisten, aufzurufen und zu prüfen und ihre Anmeldeeinstellungen zu verwalten.
fastmcp
260kHilft dir, einen Python-MCP-Server zu bauen, zu testen und bereitzustellen, der KI-Assistenten Zugriff auf deine API, Datenbank oder Dateien gibt.
mcp-oauth-remote-gateway
260kFührt dich durch die OAuth-Anmeldung für einen entfernten MCP-Server, wenn Hermes auf einem Server läuft und die normale Browseranmeldung ihn nicht erreicht.