Skip to main content
ClaudeWave
EN, English
PrefectHQ / MCP Servers

fastmcp

🚀 The fast, Pythonic way to build MCP servers and clients.

  • 28.2k stars
  • 2.5k forks
  • 535 open issues
  • Language: Python
  • License: Apache-2.0
  • updated

Install

local · uvx (python)
Claude Code CLI
claude mcp add fastmcp -- uvx fastmcp
  1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
  2. Replace any <placeholder> values with your API keys or paths.
  3. Restart Claude. The MCP server and its tools appear automatically.

Package name inferred from the repository name. Verify it exists on PyPI, or clone https://github.com/PrefectHQ/fastmcp and follow its README.

Editor's note

FastMCP is a Python framework for building and consuming Model Context Protocol servers and clients, sitting at the foundation of the MCP ecosystem. Developers decorate ordinary Python functions with `@mcp.tool`, `@mcp.resource`, or `@mcp.prompt`, and FastMCP automatically generates the JSON schema, validates inputs, and handles transport negotiation, authentication, and protocol lifecycle. On the client side, the included `Client` class connects to any local or remote MCP server programmatically or via CLI. A third pillar called Apps lets tools render interactive UIs directly inside the conversation. FastMCP integrates with Claude Desktop and any MCP-compatible host including Claude Code, and it underpins the official MCP Python SDK after version 1.0 was incorporated into it in 2024. A notable benchmark: the README reports that some version of FastMCP now runs inside roughly 70 percent of MCP servers across all languages, with downloads exceeding one million per day. Python developers building tool integrations for Claude or other LLMs are the primary audience.

README

MCP Servers overview

Full README on GitHub

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

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.

Topics
agentsfastmcpllmsmcpmcp-clientsmcp-serversmcp-toolsmodel-context-protocolpython
Frequently asked

What people ask about fastmcp

What is PrefectHQ/fastmcp?

PrefectHQ/fastmcp is mcp servers for the Claude AI ecosystem. 🚀 The fast, Pythonic way to build MCP servers and clients. It has 28.2k GitHub stars and its last recorded update is dated 2026-10-23.

How do I install fastmcp?

You can install fastmcp by cloning the repository (https://github.com/PrefectHQ/fastmcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is PrefectHQ/fastmcp safe to use?

Our security agent has analyzed PrefectHQ/fastmcp and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains PrefectHQ/fastmcp?

PrefectHQ/fastmcp is maintained by PrefectHQ. The last recorded GitHub activity is dated 2026-10-23, with 535 open issues.

Are there alternatives to fastmcp?

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Maintain this repo? Show its Trust Score in your README

The badge shows this repository's current Trust Score and verdict, and links back to this page. It follows the catalogue data: nobody can buy or edit the score it displays.

ClaudeWave Trust Score for PrefectHQ/fastmcp
Markdown (README)
[![ClaudeWave Trust Score for PrefectHQ/fastmcp](https://claudewave.com/api/badge/prefecthq-fastmcp)](https://claudewave.com/en/repo/prefecthq-fastmcp)
HTML
<a href="https://claudewave.com/en/repo/prefecthq-fastmcp"><img src="https://claudewave.com/api/badge/prefecthq-fastmcp" alt="ClaudeWave Trust Score for PrefectHQ/fastmcp" width="320" height="64"></a>

What the badge means and how the score is computed

Alternatives

Project homepage
https://gofastmcp.com