Skip to main content
FastAPI-MCP uses ASGI transport by default, which means it communicates directly with your FastAPI app without making HTTP requests. This is more efficient and doesn’t require a base URL. It’s not even necessary that the FastAPI server will run. If you need to specify a custom base URL or use a different transport method, you can provide your own httpx.AsyncClient: