AI Card Bao WWW.AICARDBAO.COM
Home / open source / FastMCP
AI TOOL / #12904

FastMCP

Fast and Pythonic ways to build MCP servers and clients.

Introduction

Move fast and make things.

*Made with 💙 by Prefect*


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 FastMCP Gateway

FastMCP handles the MCP application layer. FastMCP Gateway 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 FastMCP Gateway 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 FastMCP Gateway →

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.

Visits:43 Updated:2026-12-04 AI tools

Related

Tencent Yuanbao Tencent Yuanbao is a comprehensive AI assistant product for desktop users, developed by Tencent. It incorporates both the deepseek and Hunyuan large-scale models. What sets this product apart from numerous other AI assistants is not only its basic intelligent question-answering capabilities, but also its deep integration with Tencent’s ecosystem resources, especially those related to WeChat. iSlide AIPPT iSlide is an intelligent PPT generation tool built on large AI models. All you need to do is provide a title, and it will create a high-quality, complete PPT report for you – greatly reducing the difficulty involved in designing PPTs. It supports uploading Word documents or mind maps, as well as using pre-existing templates for creation. AI-powered… Scream Straight - Screen Test Screaming Line – Screen Test is a professional screen test tool that supports monitor dead pixel detection, light leakage test, contrast test, color test and other functions. The author promotes that it is permanently free, completely ad-free, no need to download and install, and you can start testing with one click. Solid color test supports six solid colors by default I am not the God of Salt. I am not the "Salt God"; rather, I am a website that freely shares paid articles and novels from Zhihu's "Salt Selection" section. On Zhihu Salt Selection, there are many exciting stories that one might come across while browsing the platform and find themselves unable to stop reading them. However, often these types of stories require one to become a member of Zhihu Salt Selection in order to access their full versions. Anime Scene Search Engine The anime scene search engine trace.moe is extremely user-friendly. Its main function is to help users identify which anime a particular image originates from. The usage is also very simple: whenever you come across an anime-inspired image on the internet and want to know which series it belongs to, you can simply upload that image to this website. Bige AI PPT PenGrid AI PPT is a product developed under the 135 Editor, one of the leading graphic and text layout tools in China. It is an online AI-based service that allows users to create PPTs with just one click. Relying on advanced models such as DeepSeek-R1/V3 and DouBao Pro, users simply need to enter the theme for their presentation or import relevant documents, and the AI will quickly generate the required PPT content for them.