Skip to main content
ClaudeWave
ES, Spanish
PrefectHQ / MCP Servers

fastmcp

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

  • 28.2k estrellas
  • 2.5k forks
  • 535 issues abiertos
  • Lenguaje: Python
  • Licencia: Apache-2.0
  • actualizado

Instalación

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.

Nota editorial

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

Resumen de MCP Servers

README completo en 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
Preguntas frecuentes

Lo que la gente pregunta sobre fastmcp

¿Qué es PrefectHQ/fastmcp?

PrefectHQ/fastmcp es mcp servers para el ecosistema de Claude AI. 🚀 The fast, Pythonic way to build MCP servers and clients. Tiene 28.2k estrellas en GitHub y su última actualización registrada es del 2026-10-23.

¿Cómo se instala fastmcp?

Puedes instalar fastmcp clonando el repositorio (https://github.com/PrefectHQ/fastmcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar PrefectHQ/fastmcp?

Nuestro agente de seguridad ha analizado PrefectHQ/fastmcp y le ha asignado un Trust Score de 100/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene PrefectHQ/fastmcp?

PrefectHQ/fastmcp es mantenido por PrefectHQ. La última actividad registrada en GitHub es del 2026-10-23, con 535 issues abiertos.

¿Hay alternativas a fastmcp?

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

¿Mantienes este repo? Muestra su Trust Score en tu README

La insignia muestra el Trust Score y el veredicto actuales de este repositorio y enlaza a esta página. Sigue los datos del catálogo: nadie puede comprar ni editar la puntuación que enseña.

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>

Qué significa la insignia y cómo se calcula la puntuación

Alternativas

Web del proyecto
https://gofastmcp.com