Installation
The Python SDK is available on PyPI as mcp. These docs describe the v1.x maintenance line;
the <2 bound keeps you on it now that pip install mcp selects the 2.x stable release by default (the
v2 documentation covers that line):
pip install "mcp<2"
uv add "mcp<2"
The following dependencies are automatically installed:
httpx: HTTP client to handle HTTP Streamable and SSE transports.httpx-sse: HTTP client to handle SSE transport.pydantic: Types, JSON schema generation, data validation, and more.starlette: Web framework used to build the HTTP transport endpoints.python-multipart: Handle HTTP body parsing.sse-starlette: Server-Sent Events for Starlette, used to build the SSE transport endpoint.pydantic-settings: Settings management used in FastMCP.uvicorn: ASGI server used to run the HTTP transport endpoints.jsonschema: JSON schema validation.pywin32: Windows specific dependencies for the CLI tools.
This package has the following optional groups:
cli: Installstyperandpython-dotenvfor the MCP CLI tools.