fastmcp
FastMCP Python framework for MCP servers with tools, resources, storage backends (memory/disk/Redis/DynamoDB). Use for Claude tool exposure, OAuth Proxy, cloud deployment, or encountering storage, lifespan, middleware, circular import, async errors.
npx skills add majiayu000/claude-skill-registry --skill fastmcp-secondsky-claude-skills-3 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# FastMCP - Build MCP Servers in Python FastMCP is a Python framework for building Model Context Protocol (MCP) servers that expose tools, resources, and prompts to Large Language Models like Claude. ## Quick Start ### Installation ```bash pip install fastmcp # or: uv pip install fastmcp ``` ### Minimal Server ```python from fastmcp import FastMCP # MUST be at module level for FastMCP Cloud mcp = FastMCP("My Server") @mcp.tool() async def hello(name: str) -> str: """Say hello to someone.""" return f"Hello, {name}!" if __name__ == "__main__": mcp.run() ``` **Run:** ```bash python server.py # Local development fastmcp dev server.py # With FastMCP CLI python server.py --transport http --port 8000 # HTTP mode ``` **Copy-Paste Template**: See `templates/basic-server.py` ## Core Concepts ### Tools Functions that LLMs can call: ```python @mcp.tool() def calculate(operation: str, a: float, b: float) -> float: """Perform mathematical operations.""" operations = { "add": lambda x, y: x + y, "subtract": lambda x, y: x - y, "multiply": lambda x, y: x * y, "divide": lambda x, y: x / y if y != 0 else None } return operations.get(operation, lambda x, y: None)(a, b) ``` **Best Practices:** - Clear
- Quick Start
- Installation
- Minimal Server
- Core Concepts
- Tools
- Resources
- Prompts
- Context Features
- Storage Backends
- Server Lifespans
- Middleware System
- Server Composition
- Cloud Deployment
- Top 5 Critical Errors
pip install fastmcp python server.py # Local development fastmcp dev server.py # With FastMCP CLI python server.py --transport http --port 8000 # HTTP mode fastmcp deploy server.py fastmcp dev server.py # Development mode with hot reload fastmcp run server.py # Production mode fastmcp deploy server.py # Deploy to FastMCP Cloud fastmcp test server.py # Run tests
What does the fastmcp skill do?
FastMCP Python framework for MCP servers with tools, resources, storage backends (memory/disk/Redis/DynamoDB). Use for Claude tool exposure, OAuth Proxy, cloud deployment, or encountering storage, lifespan, middleware, circular import, async errors.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill fastmcp-secondsky-claude-skills-3 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
