pip
or uv pip
:
from mcp.server.fastmcp import FastMCP
to from fastmcp import FastMCP
will be sufficient.
fastmcp==2.3.0
and mcp==1.8.0
, the 2.x API always mirrored the official 1.0 API. However, as the projects diverge, this can not be guaranteed. You may see deprecation warnings if you attempt to use 1.0 APIs in FastMCP 2.x. Please refer to this documentation for details on new capabilities.FastMCP
server, core FastMCP components like Tool
, Prompt
, Resource
, and ResourceTemplate
, and their respective public methods. It does not include private methods, utilities, or objects that are stored as private attributes, as we do not expect users to rely on those implementation details.