# PrefectHQ/fastmcp

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

Repository: https://github.com/PrefectHQ/fastmcp
Canonical: https://ross.abutalabs.com/products/fastmcp
Homepage: https://gofastmcp.com
Language: Python
License: Apache-2.0
License Family: permissive
Topics: model-context-protocol, fastmcp, mcp, agents, llms, mcp-clients, mcp-servers, mcp-tools, python
Last push: 2026-08-26T23:12:32+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 85, longevity 45
- inputs: {"age_days": 642, "days_push": 7, "days_rel": 23, "gap_med": 2, "n_releases_24m": 96}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 27399, forks 2274 (observed 2026-08-28T04:11:47.685908+00:00)

## What it is
FastMCP is a Python framework for building Model Context Protocol (MCP) servers, clients, and interactive applications. It turns ordinary Python functions into MCP tools with automatic schema generation, validation, transport negotiation, and authentication.

## Use cases
- build an mcp server in python
- expose python functions as llm tools
- connect an mcp client to a remote server
- add tools to claude desktop or cursor
- build interactive ui apps for mcp tools
- deploy a production mcp server with auth
- migrate mcp servers to the latest protocol version

## When to choose
- you want the de facto standard, high-level Python API for MCP with best practices built in
- you need servers, clients, and interactive apps from one coherent framework
- you want automatic schema generation, validation, and transport handling
- you need protocol-version negotiation across MCP eras in one deployment

## When to avoid
- you need a non-Python language (a separate TypeScript port exists)
- you only need the minimal low-level MCP SDK rather than a full framework
- you require a fully stable release of the newest major version (v4 is beta)

## Facets
- artifact type: framework
- maturity: active
- function: mcp, agent-framework, api-framework, auth, sdk, cli
- domain: large-language-models, developer-tools, apis, backend
- platform: python, cross-platform, cli, self-hosted
- tags: model-context-protocol, mcp-servers, mcp-clients, llm-tools, tool-schema-generation, pythonic-api, prefab-ui, ai-agents, docker

## Member repositories
- PrefectHQ/fastmcp (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:47.685908+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:54:32.796773+00:00, confidence not recorded.
  - readme: https://github.com/PrefectHQ/fastmcp (fetched 2026-08-28T04:11:47.685908+00:00, sha b55bd9e736a0)
  - homepage: https://gofastmcp.com (fetched 2026-08-29T07:51:47.882729+00:00, sha 998b58b0f51b)
  - site_page: https://gofastmcp.com/getting-started/whats-new (fetched 2026-08-29T07:51:47.892677+00:00, sha b5656b0a98b6)
  - site_page: https://gofastmcp.com/getting-started/installation (fetched 2026-08-29T07:51:47.895373+00:00, sha 1d73eed87e72)
  - site_page: https://gofastmcp.com/getting-started/quickstart (fetched 2026-08-29T07:51:47.897544+00:00, sha 73d5bb513fb0)
  - site_page: https://gofastmcp.com/apps/quickstart (fetched 2026-08-29T07:51:47.899773+00:00, sha 6589b94ef6b0)
  - registry_pypi: https://pypi.org/pypi/fastmcp/json (fetched 2026-08-29T07:51:47.905526+00:00, sha 4d720e263118)
  - site_page: https://gofastmcp.com/integrations/mcp-json-configuration (fetched 2026-08-29T07:51:47.901731+00:00, sha 3e8724bf6711)
  - site_page: https://gofastmcp.com/more/faq (fetched 2026-08-29T07:51:47.903575+00:00, sha be69289eaef7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
