# fastmcp

> MCP Server

FastMCP was a Python library for building Model Context Protocol (MCP) servers quickly and easily, allowing developers to create tools, expose resources, and define prompts with minimal boilerplate. However, it

## Overview

- **Category:** Developer Tools
- **Language:** Python
- **Stars:** 26894
- **Forks:** 101
- **Owner:** jlowin
- **GitHub:** https://github.com/jlowin/fastmcp
- **Created:** 2024-11-30T01:47:40+00:00
- **Updated:** 2025-03-28T23:25:41+00:00
- **Source:** https://model-context-protocol.com/servers/python-model-context-protocol-server-library

## Setup

## Setup
We strongly recommend installing FastMCP with [uv](https://docs.astral.sh/uv/), as it is required for deploying servers:

```bash
uv pip install fastmcp
```

Note: on macOS, uv may need to be installed with Homebrew (`brew install uv`) in order to make it available to the Claude Desktop app.

Alternatively, to use the SDK without deploying, you may use pip:

```bash
pip install fastmcp
```

For development, clone the repository, navigate into it, and install development dependencies using `uv sync --frozen --extra dev`.
For running tests only, use `uv sync --frozen --extra tests`.
Install pre-commit hooks with `pre-commit install` to enforce formatting.

## Tools

## Available Tools

1.  **Fast**: High-level interface means less code and faster development.
2.  **Simple**: Build MCP servers with minimal boilerplate.
3.  **Pythonic**: Feels natural to Python developers.
4.  **Complete**: FastMCP aims to provide a full implementation of the core MCP specification.
5.  **Resources**: Expose data to LLMs, similar to GET endpoints.
6.  **Tools**: Let LLMs take actions through your server, similar to POST endpoints.
7.  **Prompts**: Reusable templates that help LLMs interact with your server effectively.
8.  **Images**: Handles image data in your server.
9.  **Context**: Provides access to MCP capabilities like progress reporting, logging, and resource access.

## Related Articles

- [fastmcp MCP Server: Rapid Python Development for LLM Context](https://model-context-protocol.com/blog/fastmcp-mcp-server-rapid-python-development-for-llm-context-mcp-server-guide)
