building-mcp-servers

Guides creation of MCP servers in Python or TypeScript with tool design, Docker deployment, and evaluation.

9|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/AbdullahMalik17/Hacathan_5 --skill building-mcp-servers-abdullahmalik17
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: building-mcp-servers
Source: https://github.com/AbdullahMalik17/Hacathan_5/tree/main/.claude/skills/building-mcp-servers
Command: npx skills add https://github.com/AbdullahMalik17/Hacathan_5 --skill building-mcp-servers-abdullahmalik17

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires anthropic, mcp, and includes scripts (resource) and references (resource) components.

What problem does it solve? Building MCP (Model Context Protocol) servers that LLMs can actually use effectively requires careful tool design, schema validation, transport configuration, and testing—this Skill provides a structured four-phase workflow covering research, implementation, review, and evaluation. ## Core Features & Use Cases - End-to-End MCP Server Workflow: Covers research and planning, implementation in Python (FastMCP) or TypeScript (MCP SDK), code review, and evaluation creation. - Language-Specific References: Detailed guides for Python/FastMCP with Pydantic validation and Node/TypeScript with Zod schemas, including naming conventions, pagination, and error handling patterns. - Evaluation Harness: Includes scripts to run XML-based evaluation questions against your MCP server via stdio, SSE, or HTTP transports and generate accuracy reports. - Use Case: You need to expose your company's internal API to an LLM agent. Use this Skill to scaffold a FastMCP server with well-annotated tools, containerize it with proper transport security, and validate it with 10 read-only evaluation questions. ## Quick Start Ask the agent to build an MCP server for your chosen API using the building-mcp-servers skill, specifying Python or TypeScript as the implementation language.

Frequently Asked Questions about building-mcp-servers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an MCP server in Python?▼

Use the FastMCP framework from the official MCP Python SDK. Define tools with the @mcp.tool decorator, validate inputs with Pydantic models, set annotations like readOnlyHint, and run the server over stdio or streamable HTTP transport.

How do I build an MCP server in TypeScript?▼

Use the MCP TypeScript SDK's McpServer class and registerTool method with Zod schemas for input validation. Provide explicit title, description, inputSchema, and annotations for each tool, then build with tsc and run via stdio or streamable HTTP.

Should I use stdio or streamable HTTP transport for my MCP server?▼

Use stdio for local integrations and command-line tools running as subprocesses. Use streamable HTTP for remote servers, web services, and multi-client scenarios. SSE is deprecated in favor of streamable HTTP.

How do I test whether my MCP server works well with LLMs?▼

Create 10 read-only, complex evaluation questions in XML format with verifiable answers, then run the included evaluation.py script against your server. It reports accuracy, tool call counts, and agent feedback on tool quality.

Why does my FastMCP server reject requests inside Docker?▼

FastMCP validates Host headers via transport security settings. Configure TransportSecuritySettings with allowed_hosts including your Docker container name and 0.0.0.0:* so requests from outside the container are accepted.

When should I not use this MCP server building skill?▼

Do not use it when consuming an existing MCP server—connect to that server directly instead. It is intended only for creating new servers that integrate external APIs or services as LLM tools.