build-mcp-servers

Official

Build robust MCP servers with FastMCP 2.x

Authorlushly-dev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides expert guidance to build reliable MCP servers using FastMCP 2.x, focusing on crucial aspects like token budget management, tool consolidation, and Opus compatibility to prevent common LLM integration failures.

Core Features & Use Cases

  • FastMCP 2.x Server Setup: Scaffolds modern async MCP servers with stdio and SSE transports.
  • Token Budget Management: Prevents context overflow and model crashes with safe output limits.
  • Tool Consolidation: Reduces tool count using action-based and provider-based patterns.
  • Output Truncation: Enforces safe character limits on all tool outputs.
  • Execute Pattern: Implements a code-execution tool for Opus compatibility.
  • Async Subprocess: Handles non-blocking command execution with timeouts.
  • Troubleshooting: Diagnoses connection failures, context overflow, and platform-specific issues.
  • Use Case: When creating new MCP servers, debugging tool overload, optimizing token usage, or fixing silent failures in Claude Opus.

Quick Start

Use the build-mcp-servers skill to set up a new FastMCP 2.x server, ensuring token budgets and tool consolidation are optimized.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: build-mcp-servers
Download link: https://github.com/lushly-dev/afd/archive/main.zip#build-mcp-servers

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.