LibreAI / AI Agents / fastmcp
// agents · PrefectHQ/fastmcp

fastmcp

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

★ 28.0k stars⑂ 2.4k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

fastmcp is an open-source ai agents project by PrefectHQ (PrefectHQ/fastmcp on GitHub). It has 28,003 GitHub stars and 2,444 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 8 October 2026.

GitHub stars
28,003
Forks
2,444
License
Apache-2.0
Last updated on GitHub
8 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Define the job

    Write down the task or workflow you want the agent to handle.

  2. Get the code

    Clone the repository and read the README's prerequisites.

  3. Set up your environment

    Install dependencies and configure keys or endpoints.

  4. Try the quickstart

    Run the sample script and check the output against the docs.

// features

Why people love it

Pythonic API

Decorators turn functions into MCP tools.

Servers and clients

Covers both ends of the protocol.

Minimal boilerplate

Minutes from function to working server.

Prefect-backed

Maintained under the Prefect umbrella.

Spec-aligned

Tracks the Model Context Protocol.

Apache-2.0

Open and commercially friendly.

Advertisement
// run it

Run it yourself

  1. Step 1 - Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/PrefectHQ/fastmcp.git
    cd fastmcp
  2. Step 2 - Install dependencies

    Create a virtual environment and install the requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 - Run an example

    Treat these as starting points - the README documents the exact commands.

    python examples/quickstart.py
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who is behind fastmcp?

The project lives at PrefectHQ/fastmcp and has attracted 2444 forks. Browse its commit history and contributor list for a sense of maintenance pace.

Is fastmcp free to use?

Yes - it is Apache-2.0 licensed, so it is free for commercial use with attribution.

Do I need a paid API to use it?

The code is free; you bring your own model provider, which may be a paid API or a local model.

FastMCP vs the official Python SDK?

FastMCP prioritizes developer speed with a high-level API; the official SDK stays closer to the spec. Start with FastMCP for productivity, drop to the SDK when you need fine control.

Where should I start?

The README and the official docs site are the fastest path: run the quickstart example first, then adapt it to your use case.

// keep exploring

Similar tools

AI Agents

fast-agent

Code, build and evaluate LLM agents with full MCP, Skills, ACP and A2A support.

★ 3.9k starsApache-2.0
View guide →
AI Agents

n8n-mcp

An MCP server that lets Claude, Cursor and Windsurf build n8n workflows for you

★ 23.0k starsMIT
View guide →
AI Agents

godot-ai

Production-grade MCP server for Godot — let AI build scenes, edit scripts and wire your game live

★ 2.9k starsMIT
View guide →
AI Agents

metamcp

MCP aggregator, orchestrator, middleware and gateway in one Docker — compose many servers into one endpoint

★ 2.7k starsMIT
View guide →
AI Agents

mcphub

Self-hosted MCP gateway and control plane — connect, control and operate all your MCP servers from one place

★ 2.5k starsApache-2.0
View guide →
AI Agents

basic-memory

Basic Memory: local-first MCP memory so you and your AI tools build a shared knowledge graph in Markdown

★ 4.1k starsAGPL-3.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if fastmcp is not the right fit.

Get fastmcp

Free and open — grab the source, star the repo, and start creating.