How to use mcp-remote

Hello,

In the MCP Course, while using gradio to build an mcp server, it is suggested as a troubleshooting step to use mcp-remote. Here’s the snippet the instructors ask to use.

{
  "mcpServers": {
    "gradio": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://your-server:port/gradio_api/mcp/sse"
      ]
    }
  }
}

The issue is, I do not understand where will this code snippet go to allow mcp-remote? Because I do not see any file containing the mcp configuration. The only configuration I have provided is in the server.py file with the the command gr.Interface().

1 Like

Hmm, I’m not really familiar with MCP, so I’m not sure if this is right