FastMCP is an open-source Python framework designed to simplify the development of Model Context Protocol servers. It allows developers to define MCP components such as tools, resources, and prompts using decorators, and to organize them through a modular architecture built around providers and transforms. Providers determine where components originate, including local code, directories, OpenAPI specifications, or remote MCP servers. Transforms modify components as they flow to clients, enabling namespacing, filtering, versioning, and visibility control.
The framework supports component versioning, per-component authorization, and middleware for cross-cutting concerns such as authentication and logging. It includes a built-in command-line interface for listing, calling, discovering, and installing MCP servers. FastMCP also supports session-scoped state, background task execution, OpenTelemetry tracing, pagination for large component sets, and transport options including stdio and HTTP-based protocols.
FastMCP is intended for developers building agent-compatible backends and structured tool interfaces for large language model systems that implement the Model Context Protocol.
Hey there! 👋 I created FAUN.dev(), an effortless, straightforward way for busy developers to keep up with the technologies they love 🚀
Aymen @eon01
Founder of FAUN.dev()
Join thousands of developers and engineering teams who use FAUN.dev() to stay up-to-date with the technologies they love, without the overwhelm.