AI Briefing
KO

Gradio Adds MCP Server Support for LLM Tools

·2025.04.30 09:00

Key point

Gradio apps can now be turned into MCP servers callable by LLMs with just a few lines of code.

Details

Beyond building ML model interfaces, Gradio now offers the ability to directly run Model Context Protocol (MCP) servers. This allows Gradio apps like image generators or calculators to be called and used by LLMs as Tools.

The implementation method is very simple. Just add the mcp_server=True option to the .launch() method. Gradio automatically generates the MCP tool's description and parameters using the function's docstring, helping the LLM accurately understand the tool's purpose.

Through a recent update, the following advanced MCP features are also supported:

  • Resources: Data exposure feature
  • Prompts: Define reusable templates
  • Enhanced authentication and real-time progress notifications
  • Convert OpenAPI to MCP

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.