build-mcp-server
Fungsinya
Skill ini memandu agent Anda merencanakan dan membangun server Model Context Protocol yang menghubungkan Claude ke API, perangkat, atau aplikasi lokal. Skill ini ditujukan untuk developer yang ingin membuka alat atau data mereka sendiri untuk Claude.
Kapan dipakai
- βSaat Anda ingin menghubungkan Claude ke API atau layanan cloud melalui server MCP.
- βSaat Anda ingin membungkus API yang sudah ada agar Claude bisa menggunakannya sebagai alat.
- βSaat Anda perlu memutuskan apakah server MCP sebaiknya berjalan secara remote atau di mesin pengguna.
Link skill
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/mcp-server-dev/skills/build-mcp-server/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSaya ingin Claude membaca dan membuat tugas di API internal saya. Bisakah Anda membantu membangun server MCP untuk itu?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent pertama-tama menanyakan kasus penggunaan Anda, seperti apa yang akan dihubungkan dan siapa yang akan memakainya, lalu merekomendasikan jenis penerapan. Baru setelah itu agent mulai membangun.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah agent langsung mulai menulis kode?
Tidak. Skill ini mengajukan pertanyaan penjajakan terlebih dahulu dan tidak membuat kerangka sampai kasus penggunaannya jelas.
Opsi penerapan apa saja yang dipertimbangkan?
Skill ini mempertimbangkan server HTTP remote dan server lokal, termasuk server lokal yang dikemas.
Apakah skill mengecek persyaratan khusus Claude?
Ya. Skill ini menyebutkan agar dokumentasi connector Claude dimuat sehingga panduannya sesuai dengan batasan Claude.
Detail
Deskripsi asli dari pembuat
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.
Popularitas
- Bintang GitHub
- 46k
- Peringkat
- #6341
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
access
46kMemungkinkan Anda mengatur siapa yang dapat mengirim pesan ke asisten Anda melalui kanal Discord, termasuk persetujuan pairing dan daftar izin.
configure
46kMenyiapkan kanal Discord untuk asisten Anda dengan menyimpan token bot dan memeriksa siapa yang dapat menghubunginya.
access
46kMemungkinkan Anda mengatur siapa yang dapat mengirim pesan teks ke asisten Anda melalui kanal iMessage, termasuk persetujuan dan daftar izin.
configure
46kMemeriksa pengaturan kanal iMessage Anda, termasuk Full Disk Access, dan menjelaskan siapa yang dapat menghubungi asisten Anda.
Skill serupa
mcporter
394kMembantu agent Anda mendaftar, memanggil, dan memeriksa server MCP beserta alatnya lewat HTTP atau stdio, serta mengatur pengaturan login mereka.
fastmcp
260kMembantu Anda membangun, menguji, dan menerapkan server MCP Python yang memberi asisten AI akses ke API, basis data, atau file Anda sebagai alat.
mcp-oauth-remote-gateway
260kMemandu Anda masuk dengan OAuth untuk server MCP jarak jauh saat Hermes berjalan di server, di mana proses masuk browser biasa tidak dapat menjangkaunya.