Agent skill · software engineering · davila7
fastmcp-server
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.
Why this skill is useful
Provides specific patterns and code snippets for building MCP servers with FastMCP 3.0 that the AI wouldn't reliably generate on its own.
What it needs
About 4k tokens when loaded. Last updated 2026-08-06. 30,138 stars on the source repository.
What this skill does
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: Create a resource: Create a resource template: Create a prompt: Run the server: Using context in tools Authentication setup Key concepts Tools Functions exposed as executable capabilities for LLMs. Decorated with @mcp.tool. Support Pydantic validation, async, custom return types, and annotations (readOnlyHint, destructiveHint). Resources & Templates Static or dynamic data sources identified by URIs. Resources use fixed URIs (data://config), templates use parameterized URIs (users://{id}/profile). Support MIME types, annotations, and wildcard parameters. Context The Context object provides access to MCP features within tools/resources: logging, progress reporting, resource access, LLM sampling, user elicitation, and session state. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills davila7/fastmcp-server