# Gradio

CreateWithAI Hub page: https://createwithaihub.com/open-source/gradio
Latest version of this file: https://createwithaihub.com/open-source/gradio.md

- Type: Library · Category: Libraries & Open Source
- Publisher: Gradio team
- Pricing: Free · License: Apache-2.0
- Runs on: Web

Open-source Python library for building web UIs, chatbots and demos for ML models, with share links and an MCP server mode.

Gradio lets you wrap a Python function or model in a web interface with a few lines of code, using the high-level Interface, the low-level Blocks API for custom layouts, or ChatInterface for chatbots. Apps can be shared through a temporary public link with share=True, hosted on Hugging Face Spaces, called from code with gradio_client, or exposed as an MCP server so agents can use their functions as tools.

Useful for: Putting a quick web demo with file upload and a chat box in front of a model you are testing.

## Key features

- gr.Interface, gr.Blocks and gr.ChatInterface
- Public share links with launch(share=True)
- Free hosting on Hugging Face Spaces
- gradio_client to call any Gradio app from Python
- MCP server mode: launch(mcp_server=True) serves tools at /gradio_api/mcp/ over streamable HTTP

## Connection

- Language: Python

## Before you start

- Python 3.10+

## Install steps from the official documentation

pip:

```
pip install --upgrade gradio
```

With MCP support:

```
pip install "gradio[mcp]"
```

## Limitations

- Python 3.10 or higher
- MCP server mode needs the gradio[mcp] extra

## Official links

- Website: https://www.gradio.app
- Source repository: https://github.com/gradio-app/gradio
- Documentation: https://www.gradio.app/guides/building-mcp-server-with-gradio
- Source: https://github.com/gradio-app/gradio (README: description, Python 3.10+, install command, Interface/Blocks/ChatInterface, share links, Spaces, gradio_client; LICENSE Apache-2.0)
- Source: https://www.gradio.app/guides/building-mcp-server-with-gradio (gradio[mcp] install, mcp_server=True, endpoint /gradio_api/mcp/, streamable HTTP)
- Source: https://www.gradio.app/ (Public share links; 'Deploy to Hugging Face Spaces for free')
