Host MCP server and access it with Gradio in same space

I have my space iimkarthik/query_blogger_mcp_server at main with deployment sdk as Docker, where I try to host the MCP server built using FastAPI.
I want to achieve the below 2 things:

  1. Access it from outside using mcp ui client in my vs code
  2. Access it from Gradio UI hosted in the same space
  3. Access it from Gradio UI hosted in another space

Given that 1 should be the easiest, I tried running it and see that the docker is successfully running but can’t get it to work in my mcp client ui, for some reason.

If you got it working for you, I appreciate your help here.

1 Like

It seems like it might be possible with a relatively new version of Gradio, but are there any stumbling blocks?

Updated the post. I am trying to build and deploy MCP Server built using FastAPI. And want it to deploy it and a UI Client to demo it built using Gradio in same HF Space.

1 Like