---
title: "Five Big Improvements to Gradio MCP Servers"
description: "Gradio 5.38.0 adds five features for building MCP servers. A \"File Upload\" MCP server lets agents send local files to remote Gradio apps, and progress notifications now stream to MCP clients. `gr.load_openapi` turns an OpenAPI spec into an MCP server in one line, `gr.Header`-typed arguments extract auth headers and list them in the connection docs, and the `api_description` parameter overrides auto-generated tool descriptions."
url: "https://swe.quest/articles/five-big-improvements-to-gradio-mcp-servers-de0d05a26f23e057"
canonical: "https://huggingface.co/blog/gradio-mcp-updates"
source: "Hugging Face"
published: "2025-07-17"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["ai-agents","python","api-design","llms"]
---

# Five Big Improvements to Gradio MCP Servers

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-07-17, 4 min read, Release. Original: [https://huggingface.co/blog/gradio-mcp-updates](https://huggingface.co/blog/gradio-mcp-updates)

## Summary

Gradio 5.38.0 adds five features for building MCP servers. A "File Upload" MCP server lets agents send local files to remote Gradio apps, and progress notifications now stream to MCP clients. \`gr.load\_openapi\` turns an OpenAPI spec into an MCP server in one line, \`gr.Header\`-typed arguments extract auth headers and list them in the connection docs, and the \`api\_description\` parameter overrides auto-generated tool descriptions. Short code examples cover the OpenAPI loader, header-based auth and custom descriptions.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- Python basics ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- Model Context Protocol

## Keywords

Gradio, MCP, OpenAPI, Hugging Face Spaces, gr.load\_openapi, gr.Header

## Related posts

- [How to Build an MCP Server with Gradio](https://swe.quest/articles/how-to-build-an-mcp-server-with-gradio-76a4960460af5603.md): Hugging Face · 2025-04-30 · Medium · 10 min read · AI agents, Python, LLMs
  Gradio apps become Model Context Protocol servers by passing mcp\_server=True to launch(), which auto-converts each Python function into an MCP tool, using its docstring and type hints to build the description and input schema.
- [Implementing MCP Servers in Python: An AI Shopping Assistant with Gradio](https://swe.quest/articles/implementing-mcp-servers-in-python-an-ai-shopping-assistant-with-gradio-21ac8e123355c19a.md): Hugging Face · 2025-07-31 · Medium · 4 min read · AI agents, Python, LLMs
  Gradio's MCP integration turns Python functions into LLM tools: launching an app with mcp\_server=True exposes each endpoint as an MCP tool, with names, descriptions and input schemas generated from function docstrings, plus progress streaming and file upload handling.
- [Auto-generating MCP Servers from OpenAPI Schemas: Yay or Nay?](https://swe.quest/articles/auto-generating-mcp-servers-from-openapi-schemas-yay-or-nay-ddbbf7dc3df515f6.md): Neon · 2025-05-01 · Easy · 4 min read · AI agents, API design, LLMs
  Auto-generating an MCP server as a 1:1 mapping of an OpenAPI spec works poorly.
- [Building the Hugging Face MCP Server](https://swe.quest/articles/building-the-hugging-face-mcp-server-70bae73ac8de2021.md): Hugging Face · 2025-07-10 · Medium · 8 min read · AI agents, API design, Scaling
  Hugging Face's hosted MCP server at hf.co/mcp runs in production on Streamable HTTP in a stateless, direct-response configuration.
- [What’s MCP all about? Comparing MCP with LLM function calling](https://swe.quest/articles/what-s-mcp-all-about-comparing-mcp-with-llm-function-calling-fcce1ee01a7d0aed.md): Neon · 2025-03-12 · Medium · 5 min read · AI agents, LLMs, TypeScript
  The Model Context Protocol (MCP) builds on LLM function calling by moving tool definitions and execution out of individual LLM applications into standalone servers that any MCP-compatible client can discover and invoke.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
