The fastest way to deploy your MCP server
fastmcp inspect <file.py:server_object>
to see what FastMCP Cloud will see when it runs your server.requirements.txt
or pyproject.toml
in the repo, FastMCP Cloud will automatically detect your server’s dependencies and install them for you. Note that your file can have an if __name__ == "__main__"
block, but it will be ignored by FastMCP Cloud.
For example, a minimal server file might look like:
echo.py
). This field has the same syntax as the fastmcp run
command, for example echo.py:my_server
to specify a specific object in the file.requirements.txt
or pyproject.toml
file.
main
branch. In addition, FastMCP Cloud will build and deploy servers for every PR your open, hosting them on unique URLs, so you can test changes before updating your production server.