fastmcp-server

Featured

Complete guide for building MCP servers with FastMCP 3.0 - tools, resources, authentication, providers, middleware, and deployment. Use when creating Python MCP servers or integrating AI models with external tools and data.

AI & Automation 27,681 stars 2854 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# FastMCP 3.0 Server Development Complete reference for building production-ready MCP (Model Context Protocol) servers with FastMCP 3.0 - the fast, Pythonic framework for connecting LLMs to tools and data. ## When to use this skill **Use FastMCP Server when:** - Creating a new MCP server in Python - Adding tools, resources, or prompts to an MCP server - Implementing authentication (OAuth, OIDC, token verification) - Setting up middleware for logging, rate limiting, or authorization - Configuring providers (local, filesystem, skills, custom) - Building production MCP servers with telemetry and storage - Upgrading from FastMCP 2.x to 3.0 **Key areas covered:** - **Tools & Resources** (CORE): Decorators, validation, return types, templates - **Context & DI** (CORE): MCP context, dependency injection, background tasks - **Authentication** (SECURITY): OAuth, OIDC, token verification, proxy patterns - **Authorization** (SECURITY): Scope-based and role-based access control - **Middleware** (ADVANCED): Request/response pipeline, built-in middleware - **Providers** (ADVANCED): Local, filesystem, skills, and custom providers - **Features** (ADVANCED): Pagination, sampling, storage, OpenTelemetry, versioning ## Quick reference ### Core patterns **Create a server with tools:** ```python from fastmcp import FastMCP mcp = FastMCP("MyServer") @mcp.tool def add(a: int, b: int) -> int: """Add two numbers""" return a + b ``` **Create a resource:** ```python @mcp.resource("dat...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category