Build Python MCP servers with FastMCP: define tools, resources, and prompts, then test and deploy.

skills.sh installs
1.4K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full workflow: scaffolding, local testing, pre-deploy checks, and deployment to FastMCP Cloud or Docker
  • Includes a module-level server template, a FastMCP Client test script, and a table of common errors with fixes
  • Enforces a pre-deploy checklist, including a module-level server object, PyPI-only requirements.txt, and no hardcoded secrets
  • Designed for developers exposing tools to LLMs or troubleshooting FastMCP server, lifespan, or deployment errors

Install

$ npx -y skills add jezweb/claude-skills --skill mcp-builder -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

MCP Builder

Build a working MCP server from a description of the tools you need. Produces a deployable Python server using FastMCP.

Workflow

Step 1: Define What to Expose

Ask what the server needs to provide:

  • Tools -- Functions Claude can call (API wrappers, calculations, file operations)
  • Resources -- Data Claude can read (database records, config, documents)
  • Prompts -- Reusable prompt templates with parameters

A brief like "MCP server for querying our customer database" is enough.

Step 2: Scaffold the Server

pip install fastmcp

Create the server file. The server instance MUST be at module level:

from fastmcp import FastMCP

# MUST be at module level for FastMCP Cloud
mcp = FastMCP("My Server")

@mcp.tool()
async def search_customers(query: str) -> str:
    """Search customers by name or email."""
    # Implementation here
    return f"Found customers matching: {query}"

@mcp.resource("customers://{customer_id}")
async def get_customer(customer_id: str) -> str:
    """Get customer details by ID."""
    return f"Customer {customer_id} details"

if __name__ == "__main__":
    mcp.run()

Details

Repository
github.com/jezweb/claude-skills
Categories
Skill & Plugin Building, Python
First seen
May 16, 2026

More from jezweb/claude-skills

All 64

Similar to Mcp Builder

More Skill & Plugin Building