$57
Build MCP (Model Context Protocol) servers in Python with FastMCP
This skill provides production-tested patterns, templates, and error prevention for building production-ready MCP servers with FastMCP in Python. It covers:
Use this skill when you need to:
Don't use this skill if:
This skill should automatically trigger when you mention:
fastmcp, fast mcp, FastMCPMCP server, mcp server, MCP server python, python mcp servermodel context protocol, model context protocol pythonmcp tools, mcp resources, mcp promptsmcp integration, mcp frameworkbuild mcp server, create mcp server, make mcp serverpython mcp, mcp python, mcp with pythonintegrate api with claude, expose api to llm, api for claudeopenapi to mcp, swagger to mcp, fastapi to mcpmcp cloud, fastmcp cloud, deploy mcpmcp testing, test mcp servermcp storage, fastmcp storage backends, persistent storage mcpredis storage mcp, disk storage mcp, encrypted storageoauth token storage, cache persistence mcppy-key-value-aio, fernet encryption mcpmcp middleware, fastmcp middleware, middleware systemrate limiting mcp, response caching mcp, logging middlewaretiming middleware, error handling middlewaremiddleware order, middleware hooksoauth mcp, oauth proxy mcp, jwt verification mcpgithub oauth mcp, google oauth mcp, azure oauth mcptoken validation mcp, auth patterns mcpconsent screen, pkce mcp, token introspectionimport server mcp, mount server mcp, server compositionmodular mcp, subservers mcp, tag filtering mcpserver lifespan mcp, mcp lifespan, resource management mcpdatabase connection mcp, cleanup hooks mcpasgi integration mcp, fastapi lifespanmcp icons, server icons mcp, visual mcpdata uri icons, icon sizes mcpmcp server not found, no server object foundstorage backend error, lifespan not running, middleware order erroroauth not persisting, consent screen missingcircular import fastmcp, import error mcpmodule-level server, fastmcp cloud deploymentmcp async await, mcp context injectionresource uri scheme, invalid resource uripydantic validation mcp, mcp json serializablemcp elicitation, user input during tool executionmcp progress tracking, progress updates mcpmcp sampling, llm from mcp toolresource templates mcp, dynamic resourcestool transformation mcp, client handlersstate management mcp, context stateopenapi integration, swagger integration, fastapi mcpapi wrapper mcp, database mcp, file system mcpconnection pooling mcp, caching mcp, retry logic mcpclaude desktop mcp, claude code mcpclaude_desktop_config.json, mcp configurationexpose tools to claude, claude toolsThis is the highest token savings in the skills collection!
This skill prevents 25 common errors:
Basic Server Templates:
basic-server.py - Minimal working servertools-examples.py - Sync/async toolsresources-examples.py - Static/dynamic resourcesprompts-examples.py - Prompt templatesProduction Features:
storage-backends-example.py - Memory, Disk, Redis storageserver-lifespan-example.py - Database connection lifecyclemiddleware-examples.py - All 8 built-in middleware typesserver-composition-example.py - Import vs mount patternsoauth-proxy-example.py - Full OAuth proxy configurationauthentication-patterns.py - 4 auth strategiesicons-example.py - Server and component iconsIntegration & Testing:
openapi-integration.py - OpenAPI auto-generationapi-client-pattern.py - Manual API integrationclient-example.py - Testing with Clienterror-handling.py - Structured errors with retryself-contained-server.py - Production patternConfiguration:
.env.example - Environment variablesrequirements.txt - Package dependencies (fastmcp>=2.13.0)pyproject.toml - Package configurationError & Deployment:
common-errors.md - 25 errors with solutionscloud-deployment.md - FastMCP Cloud guidecli-commands.md - FastMCP CLI referenceProduction Features:
storage-backends.md - Complete storage options guideserver-lifespans.md - Lifecycle management patternsmiddleware-guide.md - Middleware system deep diveoauth-security.md - OAuth Proxy and security featuresperformance-optimization.md - Caching and middleware strategiesIntegration & Patterns:
integration-patterns.md - OpenAPI, FastAPI patternsproduction-patterns.md - Self-contained architecturecontext-features.md - Elicitation, progress, sampling, statecheck-versions.sh - Verify package versionstest-server.sh - Test with FastMCP Clientdeploy-cloud.sh - Deployment checklistcd /path/to/claude-skills
./scripts/install-skill.sh fastmcp
Just mention "fastmcp" or "build an mcp server" in your conversation with Claude Code, and the skill will automatically load.
Example prompts:
Tested With:
Based On:
fastmcp>=2.13.0>=3.10/jlowin/fastmcppy-key-value-aio (storage backends)cryptography (encrypted storage)httpx (async HTTP)pydantic (validation)openai-api - OpenAI API integrationclaude-api - Claude API integrationcloudflare-worker-base - Deploy as Cloudflare Workergoogle-gemini-api - Gemini API integrationclerk-auth - Alternative auth solutionbetter-auth - Better Auth for authenticationQuestions or issues? Check the templates and references in this skill, or consult the official FastMCP documentation at https://github.com/jlowin/fastmcp
npx skills add ovachiever/fastmcp下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer