This template mounts multiple Model Context Protocol (MCP) servers under one FastAPI instance.
Each server lives at {{ "{{ base_URL }}" }} → here, resolved to {{ base_url }}. Replace it with your Space's origin if needed.
https://your-space.hf.space) is your {base_URL}.Example
base_URL = {{ base_url }}
Echo MCP = {{ base_url }}/echo
Math MCP = {{ base_url }}/math
Illustration of the “Embed this Space” dialog:
If the image doesn’t load yet, upload your screenshot to Multiple_mcp_fastapi_template/static/embed.png.
Point your MCP client to the endpoints below:
HTTP streaming endpoints
Echo: GET {{ base_url }}/echo
Math: GET {{ base_url }}/math