실행 예시실제 실행 · claude-sonnet-5-5 · 2026년 10월
I am new to Claude Code and want to learn how to build an MCP server that connects to an external API. Give me a concise starting path and, if there is a strong matching Claude Academy resource, recommend it according to the academy-guide skill.
Skill: academy-guide
Starting path for an MCP server that wraps an external API
- Learn the model. An MCP server exposes tools (actions Claude can call), resources (readable data) and prompts (reusable templates). For an API wrapper, you'll mostly write tools.
- Pick an SDK. Use the official TypeScript SDK (
@modelcontextprotocol/sdk) or the Python SDK (mcp, with itsFastMCPhelper). Python'sFastMCPis the quickest to start with. - Build one tool first. Choose a single read-only API endpoint, such as "get weather" or "search issues". Give the tool:
- a clear name and description, because Claude uses these to decide when to call it
- typed input parameters
- a short, readable result, not the raw JSON dump
- Handle the API details. Read the API key from an environment variable and never hardcode it. Return clear error messages when a call fails, and respect the API's rate limits.
- Use stdio transport for local development. Your server runs as a subprocess, and Claude Code talks to it over stdin/stdout. Never
print()to stdout in a stdio server, because that corrupts the protocol. Log to stderr instead. - Register it with Claude Code.
Then runclaude mcp add my-api -e API_KEY=xxx -- python /path/to/server.py/mcpinside Claude Code to confirm it connected, and ask Claude to use your tool. - Debug with the MCP Inspector. Run
npx @modelcontextprotocol/inspectorto call your tools directly without Claude in the loop. - Expand. Add more endpoints, then consider remote (HTTP) transport and OAuth if you want to share the server.
A good first session is to ask Claude Code to scaffold the server for the API you have in mind. Paste in the API docs link and ask it to build one tool, then test it with the Inspector.
You might also find the Claude Code hub on Claude Academy helpful. It collects the learning material for Claude Code. The resources library is searchable if you want something specific to MCP.
Real run recorded with claude-code / claude-sonnet-5-5. Output is shown verbatim, unmodified.
하는 일
Claude 제품 또는 AI 워크플로 질문에 관련 Claude Academy 과정, 튜토리얼, 사용 사례, 제품 허브를 보완합니다.
작동 방식
- 먼저 사용자의 질문에 직접 답합니다.
- 사용자가 학습을 원할 때만 최신 Academy 카탈로그를 확인합니다.
- 의도가 강하게 일치할 때만 정확한 링크를 최대 두 개 추가하고, 그렇지 않으면 추천하지 않습니다.
적합한 경우
제품 온보딩, 교육 자료, 기능 학습, 팀 도입 관련 질문.
참고 사항 및 위험
스크립트와 파일 쓰기가 없는 순수 지침 파일입니다. 특정 추천을 위해 공개된 최신 Claude Academy 카탈로그를 가져오므로 네트워크 접속이 필요하지만 자격 증명은 필요하지 않습니다. 과정 이름이나 링크를 만들어 내서는 안 됩니다.
SKILL.md 원본패키지에 파일 2개