All skills
Skillintermediate
create server
Scaffold a new MCP (Model Context Protocol) server with tools, resources, and prompts.
Claude Code Knowledge Pack7/10/2026
Overview
Scaffold a new MCP (Model Context Protocol) server with tools, resources, and prompts.
Steps
- Determine the MCP server configuration:
- Create the project structure:
- Implement the server skeleton:
- Add example tools:
- Add example resources (if applicable):
- Configure for Claude Desktop:
- Test the server with a sample tool invocation.
Format
Server: <name>
Transport: <stdio|sse>
Tools: <list of tools>
Resources: <list of resources>
Rules
- Use Zod or Pydantic for input validation on all tools.
- Every tool must have a clear description for the AI model.
- Include error handling that returns useful error messages.