About
FastMCP is a production-ready Python framework for building Model Context Protocol (MCP) servers and clients. It eliminates boilerplate by automatically generating schemas, validation, and documentation from Python function definitions, allowing developers to focus on business logic rather than protocol implementation. Key features of FastMCP: - Declarative server creation using Python decorators with automatic OpenAPI-compatible schema generation from type hints - Native support for MCP primitives including tools, resources, prompts, and sampling - Built-in client capabilities with automatic transport negotiation (stdio, SSE, WebSocket) and connection lifecycle management - Enterprise authentication and authorization with support for OAuth, API keys, and custom auth schemes - Composable architecture for connecting multiple servers and building complex agent workflows - Comprehensive development tools including hot reload, testing utilities, and deployment helpers Originally developed by Prefect and incorporated into the official MCP Python SDK, FastMCP serves as the foundation for the majority of MCP servers in production use across multiple languages.
README
FastMCP 🚀
Move fast and make things.
*Made with 💙 by Prefect*
[](https://gofastmcp.com) [](https://discord.gg/uu8dJCgttd) [](https://pypi.org/project/fastmcp) [](https://github.com/PrefectHQ/fastmcp/actions/workflows/run-tests.yml) [](https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE)
---
The Model Context Protocol (MCP) connects LLMs to tools and data. FastMCP gives you everything you need to go from prototype to production:
from fastmcp import FastMCPmcp = FastMCP("Demo 🚀")
@mcp.tool
def add(a: int, b: int) -> int:
"""Add two numbers"""
return a + b
if __name__ == "__main__":
mcp.run()
Why FastMCP
Building an effective MCP application is harder than it looks. FastMCP handles all of it. Declare a tool with a Python function, and the schema, validation, and documentation are generated automatically. Connect to a server with a URL, and transport negotiation, authentication, and protocol lifecycle are managed for you. You focus on your logic, and the MCP part just works: with FastMCP, best practices are built in.
That's why FastMCP is the standard framework for working with MCP. FastMCP 1.0 was incorporated into the official MCP Python SDK in 2024. Today, the actively maintained standalone project is downloaded a million times a day, and some version of FastMCP powers 70% of MCP servers across all languages.
FastMCP has three pillars:
Servers
Expose tools, resources, and prompts to LLMs.
Apps
Give your tools interactive UIs rendered directly in the conversation.
Clients
Connect to any MCP server — local or remote, programmatic or CLI.
Servers wrap your Python functions into MCP-compliant tools, resources, and prompts. Clients connect to any server with full protocol support. And Apps give your tools interactive UIs rendered directly in the conversation.
Ready to build? Start with the installation guide or jump straight to the quickstart. When you're ready to deploy, Prefect Horizon offers free hosting for FastMCP users.
Installation
We recommend installing FastMCP with uv:
uv pip install fastmcp
For full installation instructions, including verification and upgrading, see the Installation Guide.
Upgrading? We have guides for:
📚 Documentation
FastMCP's complete documentation is avai
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support