Consider this library: https://github.com/tadata-org/fastapi_mcp This library requires Python 3.10.