fastmcp

From public sources

FastMCP is an open-source Python framework for building MCP servers, clients and interactive apps, so LLMs can connect to tools and data with minimal code.

MCP serverCategory: MCP Servers · SDKs & frameworksOpen sourcedata checked Oct 15, 2026

Overview

The Model Context Protocol (MCP) connects LLMs to tools and data, but building a correct MCP application takes significant protocol work. FastMCP handles that layer. You declare a tool as an ordinary Python function, and the schema, input validation and documentation are generated automatically. Connecting to a server needs only a URL, while transport negotiation, authentication and protocol lifecycle are managed for you. FastMCP has three parts: Servers that expose tools, resources and prompts to LLMs; Clients that connect to any MCP server, local or remote, programmatically or from the command line; and Apps that give tools interactive UIs rendered directly in the conversation. It is released under the Apache-2.0 license and is maintained by Prefect, with a TypeScript counterpart for JavaScript projects. Developers building AI agents and MCP servers in Python can install it with uv and start from a short script. Documentation, quickstarts and llms.txt files are available at gofastmcp.com.
  • agents
  • fastmcp
  • llms
  • mcp
  • mcp-clients
  • mcp-servers
  • mcp-tools
  • model-context-protocol
  • python

Installation

Commands are shown, never run by the marketplace. Check them against the official documentation.
  • Official websiteFrom public sourcesfrom catalog metadata
    gofastmcp.com/ ↗
  • Language package registrypythonFrom public sourcesfrom the package manifest — publication on the registry is not verified
    pipx install fastmcp

    Not verified: check that this package in the registry belongs to this project before installing.

    pypi.org/project/fastmcp/ ↗
  • Build from sourceFrom public sourcesfrom catalog metadata

    Build from source: no validated build recipe — follow the repository instructions.

    github.com/PrefectHQ/fastmcp ↗

Compatibility

Unknown means no evidence was found — not that the product is incompatible.
PlatformStatusArchitectureEvidenceConfidence
Claude (web & desktop)Unknown———
Claude CodeUnknown———
CursorUnknown———
VS CodeUnknown———
WindsurfUnknown———
ChatGPTUnknown———
PythonCompatible—package manifest: pyproject.toml name0.60

Releases

checked Oct 29, 2026
v4.1.4LatestOct 26, 2026Official source ↗

Files in 4.1.4

This release has no attached files.

Release history

Quality profile

algorithm quality-v1.0 · assessed Oct 15, 2026
Quality Score100
Risk Score0
Confidence 1.00
Quality Score and Risk Score are different measures. A high score does not guarantee safety.

Score components

Maintenance · 2020
last activity 0 days ago
Documentation · 1515
README 7453 chars, description present
Ready to use · 1515
install instructions: yes; releases: yes
Metadata · 1010
4/4 of description, homepage, license, topics
Releases · 1010
10 release(s), latest 7 days ago
Category confidence · 1010
classifier confidence 1
Adoption · 1010
28089 stars (log-dampened, 10k = max)
License clarity · 55
SPDX Apache-2.0
Community · 55
issues enabled, 2476 forks

License

Apache-2.0
Known licensefrom the repository host

This is the catalog policy status, not legal advice.

Sources

github.com/PrefectHQ/fastmcpPrimary★ 28,089 starslast activity Oct 15, 2026Primary repository · Confidence 1.00

Reviews

Sign in to write a review

No reviews yet.

Alternatives

README

From PrefectHQ/fastmcp · license Apache-2.0 · fetched Oct 29, 2026

FastMCP 🚀

Move fast and make things.

Made with 💙 by Prefect

[Docs] [Discord] [PyPI - Version] [TypeScript] [Tests] [License]


The Model Context Protocol (MCP) connects LLMs to tools and data. FastMCP is a full MCP application framework for servers, clients, and interactive apps. A server starts with ordinary Python:

from fastmcp import FastMCP

mcp = 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 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.

Building in TypeScript? FastMCP for TypeScript is the official counterpart, built and maintained by the same team. Same pillars, same ideas, npm install @prefecthq/fastmcp-ts.

Ready to build? Start with the installation guide or jump straight to the quickstart.

Scale MCP with Horizon

FastMCP handles the MCP application layer. Prefect Horizon is the enterprise MCP gateway for scaling servers and tools across teams, with centralized governance over how they are deployed, discovered, secured, and used.

FastMCP and Horizon are built by the same team at Prefect.

Deploy FastMCP servers from GitHub with branch previews and instant rollback. Create a private registry of every MCP your company uses. Secure access with SSO and tool-level RBAC. Get audit logs, observability, and governance across your MCP stack. Remix approved tools into purpose-built endpoints for teams and agents.

Start with FastMCP. Scale with Horizon →

Installation

We recommend adding FastMCP to your project with uv:

uv add fastmcp

For full installation instructions, including verification and upgrading, see the Installation Guide.

Upgrading? We have guides for:

📚 Documentation

FastMCP's complete documentation is available at gofastmcp.com, including detailed guides, API references, and advanced patterns.

Documentation is also available in llms.txt format, which is a simple markdown standard that LLMs can consume easily:

  • llms.txt is essentially a sitemap, listing all the pages in the documentation.
  • llms-full.txt contains the entire documentation. Note this may exceed the context window of your LLM.

Give your coding agent llms.txt as its starting point. See Coding Agents for version-matched documentation and the optional server authoring skill.

Community: Join our Discord server to connect with other FastMCP developers and share what you're building.

Contributing

Start with CONTRIBUTING.md for accepted contributions and the issue-assignment workflow, then follow the Contributing Guide for setup and validation. Agents should read AGENTS.md.

Open the repository ↗