Gradio's Journey to 1 Million Monthly Users!
Read MoreGradio's Journey to 1 Million Monthly Users!
Read MoreIn this guide, we will describe how to use the official Gradio Docs MCP Server.
You will need an LLM application that supports tool calling using the MCP protocol, such as Claude Desktop, Cursor, or Cline (these are known as "MCP Clients").
If you're using LLMs in your workflow, adding this server will augment them with just the right context on gradio - which makes your experience a lot faster and smoother.
The server is running on Spaces and was launched entirely using Gradio, you can see all the code here. For more on building an mcp server with gradio, see the previous guide.
For clients that support SSE (e.g. Cursor, Windsurf, Cline), simply add the following configuration to your MCP config:
{
"mcpServers": {
"gradio": {
"url": "https://gradio-docs-mcp.hf.space/gradio_api/mcp/sse"
}
}
}
We've included step-by-step instructions for Cursor below, but you can consult the docs for Windsurf here, and Cline here which are similar to set up.
{
"mcpServers": {
"gradio": {
"url": "https://gradio-docs-mcp.hf.space/gradio_api/mcp/sse"
}
}
}
{
"mcpServers": {
"gradio": {
"command": "npx",
"args": [
"mcp-remote",
"https://gradio-docs-mcp.hf.space/gradio_api/mcp/sse",
"--transport",
"sse-only"
]
}
}
}
There are currently only two tools in the server: gradio_docs_mcp_load_gradio_docs
and gradio_docs_mcp_search_gradio_docs
.
gradio_docs_mcp_load_gradio_docs
: This tool takes no arguments and will load an /llms.txt style summary of Gradio's latest, full documentation. Very useful context the LLM can parse before answering questions or generating code.
gradio_docs_mcp_search_gradio_docs
: This tool takes a query as an argument and will run embedding search on Gradio's docs, guides, and demos to return the most useful context for the LLM to parse.