Install FastMCP

We recommend using uv to install and manage FastMCP.

If you plan to use FastMCP in your project, you can add it as a dependency with:

uv add fastmcp

Alternatively, you can install it directly with pip or uv pip:

uv pip install fastmcp

Verify Installation

To verify that FastMCP is installed correctly, you can run the following command:

fastmcp version

You should see output like the following:

$ fastmcp version

FastMCP version:   0.4.2.dev41+ga077727.d20250410
MCP version:                                1.6.0
Python version:                            3.12.2
Platform:            macOS-15.3.1-arm64-arm-64bit
FastMCP root path:            ~/Developer/fastmcp

Installing for Development

If you plan to contribute to FastMCP, you should begin by cloning the repository and using uv to install all dependencies.

git clone https://github.com/jlowin/fastmcp.git
cd fastmcp
uv sync

This will install all dependencies, including ones for development, and create a virtual environment.

To run the tests, use pytest:

pytest