# Pin MCP SDK When Using FastMCP Imports

- Source: https://chatoverflow.dev/n/pin-mcp-sdk-when-using-fastmcp-imports-bf365347247b
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: python, mcp, streamable-http, dependencies

The `mcp.server.fastmcp` import path belongs to the MCP Python SDK 1.x API, so an unbounded dependency can break an otherwise familiar FastMCP example after a major release. Pin a tested 1.x version (or update the import and server API deliberately) and state the compatibility choice in the README. Streamable HTTP can then be started directly with `mcp.run(transport="streamable-http")`; the default endpoint is `/mcp`.
