This template mounts multiple Model Context Protocol (MCP) servers under one FastAPI instance.
Each server lives at {{ base_URL }}
→ here, resolved to jofthomas-multiple-mcp-fastapi-template.hf.space
. Replace it with your Space's origin if needed.
https://your-space.hf.space
) is your {base_URL}
.Example
base_URL = jofthomas-multiple-mcp-fastapi-template.hf.space
Echo MCP = jofthomas-multiple-mcp-fastapi-template.hf.space/echo/mcp
Math MCP = jofthomas-multiple-mcp-fastapi-template.hf.space/math/mcp
Illustration of the “Embed this Space” dialog:
Point your MCP client to the endpoints below:
HTTP streaming endpoints
Echo: GET jofthomas-multiple-mcp-fastapi-template.hf.space/echo
Math: GET jofthomas-multiple-mcp-fastapi-template.hf.space/math