
Fastmcp
- 196 repo stars
- Updated July 25, 2026
- secondsky/claude-skills
FastMCP is used to build and deploy MCP servers in Python with integrated tool exposure, storage backends, and Claude integration capabilities.
About
FastMCP is a Python framework that streamlines building Model Context Protocol (MCP) servers with built-in support for tools, resources, and multiple storage backends. developers use it when exposing tools to Claude, managing state across requests, handling authentication, or deploying to cloud platforms. It matters because it abstracts away common infrastructure challenges—async handling, lifespan management, middleware orchestration—so you can focus on your business logic.
- Multi-backend storage (memory, disk, Redis, DynamoDB)
- Built-in Claude tool exposure and OAuth proxy
- Handles async, lifespan, middleware, and circular imports
Fastmcp by the numbers
- Data as of Jul 28, 2026 (Skillselion catalog sync)
/plugin marketplace add secondsky/claude-skills/plugin install fastmcp@claude-skillsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| repo stars | ★ 196 |
|---|---|
| Last updated | July 25, 2026 |
| Repository | secondsky/claude-skills ↗ |
What it does
FastMCP is used to build and deploy MCP servers in Python with integrated tool exposure, storage backends, and Claude integration capabilities.
README.md
fastmcp
Build MCP (Model Context Protocol) servers in Python with FastMCP
What This Skill Does
This skill provides production-tested patterns, templates, and error prevention for building MCP servers with FastMCP in Python. It covers:
- Server Creation: Tools, resources, resource templates, and prompts
- API Integration: OpenAPI/Swagger auto-generation, FastAPI conversion, manual integration
- Cloud Deployment: FastMCP Cloud requirements and common pitfalls
- Error Prevention: 15 documented errors with solutions
- Production Patterns: Self-contained architecture, connection pooling, caching, retry logic
- Context Features: Elicitation, progress tracking, sampling
- Testing: Unit and integration testing patterns
- Client Configuration: Claude Desktop, Claude Code CLI
When to Use This Skill
Use this skill when you need to:
- Build an MCP server to expose tools/resources/prompts to LLMs
- Integrate an external API with Claude (via MCP)
- Deploy an MCP server to FastMCP Cloud
- Convert an OpenAPI/Swagger spec to MCP
- Convert a FastAPI app to MCP
- Wrap a database, file system, or service for LLM access
- Debug MCP server errors (circular imports, module-level issues, async/await)
- Test MCP servers with FastMCP Client
- Implement elicitation (user input during execution)
- Add progress tracking to long-running operations
- Use sampling (LLM completions from within tools)
Don't use this skill if:
- You're building an MCP client (not server)
- You're using a different MCP framework (not FastMCP)
- You're working in a language other than Python
- You're building with Anthropic's TypeScript SDK for MCP
Auto-Trigger Keywords
This skill should automatically trigger when you mention:
Primary Keywords
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 framework
Use Case Keywords
build 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 server
Error Keywords
mcp server not found,no server object foundcircular import fastmcp,import error mcpmodule-level server,fastmcp cloud deploymentmcp async await,mcp context injectionresource uri scheme,invalid resource uripydantic validation mcp,mcp json serializable
Feature Keywords
mcp elicitation,user input during tool executionmcp progress tracking,progress updates mcpmcp sampling,llm from mcp toolresource templates mcp,dynamic resourcestool transformation mcp,client handlers
Integration Keywords
openapi integration,swagger integration,fastapi mcpapi wrapper mcp,database mcp,file system mcpconnection pooling mcp,caching mcp,retry logic mcp
Claude Integration Keywords
claude desktop mcp,claude code mcpclaude_desktop_config.json,mcp configurationexpose tools to claude,claude tools
Errors Prevented
This skill prevents 15 common errors:
- Missing server object - Module-level export for FastMCP Cloud
- Async/await confusion - Proper async/sync patterns
- Context not injected - Type hints for context parameter
- Resource URI syntax - Missing scheme prefixes
- Resource template mismatch - Parameter name alignment
- Pydantic validation errors - Type hint consistency
- Transport/protocol mismatch - Client/server compatibility
- Import errors - Editable package installation
- Deprecation warnings - FastMCP v2 migration
- Port conflicts - Address already in use
- Schema generation failures - Unsupported type hints
- JSON serialization - Non-serializable objects
- Circular imports - Factory function anti-patterns
- Python version compatibility - Deprecated methods
- Import-time execution - Async resource creation
What's Included
Templates (12)
basic-server.py- Minimal working servertools-examples.py- Sync/async toolsresources-examples.py- Static/dynamic resourcesprompts-examples.py- Prompt templatesopenapi-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 pattern.env.example- Environment variablesrequirements.txt- Package dependenciespyproject.toml- Package configuration
Reference Docs (6)
common-errors.md- 15 errors with solutionscloud-deployment.md- FastMCP Cloud guidecli-commands.md- FastMCP CLI referenceintegration-patterns.md- OpenAPI, FastAPI patternsproduction-patterns.md- Self-contained architecturecontext-features.md- Elicitation, progress, sampling
Scripts (3)
check-versions.sh- Verify package versionstest-server.sh- Test with FastMCP Clientdeploy-cloud.sh- Deployment checklist
Quick Start
Install the Skill
cd /path/to/claude-skills
./scripts/install-skill.sh fastmcp
Use the Skill
Just mention "fastmcp" or "build an mcp server" in your conversation with Claude Code, and the skill will automatically load.
Example prompts:
- "Help me build a FastMCP server"
- "Create an MCP server that wraps this API"
- "Convert this OpenAPI spec to an MCP server"
- "My MCP server has a circular import error"
- "Deploy my MCP server to FastMCP Cloud"
Production Validation
Tested With:
- FastMCP 2.12.0+
- Python 3.10, 3.11, 3.12
- FastMCP Cloud deployments
- OpenAPI integrations
- FastAPI conversions
Based On:
- Official FastMCP documentation
- Real-world production patterns
- SimPro MCP server case study
- FastMCP Cloud deployment experience
Package Info
- Package:
fastmcp>=2.12.0 - Python:
>=3.10 - Repository: https://github.com/jlowin/fastmcp
- Cloud: https://fastmcp.cloud
- Context7:
/jlowin/fastmcp
Related Skills
openai-api- OpenAI API integrationclaude-api- Claude API integrationcloudflare-worker-base- Deploy as Cloudflare Workergoogle-gemini-api- Gemini API integration
Skill Metadata
- Version: 1.0.0
- License: MIT
- Token Savings: 85-90%
- Errors Prevented: 15
- Production Tested: ✅
- Last Updated: 2025-10-28
Questions or issues? Check the templates and references in this skill, or consult the official FastMCP documentation at https://github.com/jlowin/fastmcp