Skip to content

Commit 811524d

Browse files
Update gradio-mcp.md (#2838)
* Update gradio-mcp.md - Change “an Model Context Protocol (MCP) servers” to “a Model Context Protocol (MCP) server” - Add missing “a” before “tax calculator” * add --------- Co-authored-by: Abubakar Abid <[email protected]>
1 parent 9f05fb9 commit 811524d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gradio-mcp.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors:
88

99
# How to Build an MCP Server in 5 Lines of Python
1010

11-
[Gradio](https://github.com/gradio-app/gradio) is a Python library used by more than 1 million developers each month to build interfaces for machine learning models. Beyond just creating UIs, Gradio also exposes API capabilities and — now! — Gradio apps can be launched as an Model Context Protocol (MCP) servers for LLMs. This means that your Gradio app, whether it's an image generator or tax calculator or something else entirely, can be called as a tool by an LLM.
11+
[Gradio](https://github.com/gradio-app/gradio) is a Python library used by more than 1 million developers each month to build interfaces for machine learning models. Beyond just creating UIs, Gradio also exposes API capabilities and — now! — Gradio apps can be launched Model Context Protocol (MCP) servers for LLMs. This means that your Gradio app, whether it's an image generator or a tax calculator or something else entirely, can be called as a tool by an LLM.
1212

1313
This guide will show you how to use Gradio to build an MCP server in just a few lines of Python.
1414

@@ -71,7 +71,7 @@ http://your-server:port/gradio_api/mcp/sse
7171

7272
Gradio automatically converts the `letter_counter` function into an MCP tool that can be used by LLMs. **The docstring of the function is used to generate the description of the tool and its parameters.**
7373

74-
All you need to do is add this URL endpoint to your MCP Client (e.g., Claude Desktop, Cursor, or Cline), which typically means pasting this config in the settings:
74+
All you need to do is add this URL endpoint to your MCP Client (e.g., Claude Desktop, Cursor, Cline, or [Tiny Agents](https://huggingface.co/blog/tiny-agents)), which typically means pasting this config in the settings:
7575

7676
```
7777
{
@@ -139,4 +139,4 @@ If you want to dive deeper, here are some articles that we recommend:
139139
* [What Is MCP, and Why Is Everyone – Suddenly!– Talking About It?](https://huggingface.co/blog/Kseniase/mcp)
140140
* [An Introduction to the MCP Protocol](https://modelcontextprotocol.io/introduction)
141141
* [Guide: Building an MCP Server with Gradio](https://www.gradio.app/guides/building-mcp-server-with-gradio)
142-
* [Bonus Guide: Building an MCP Client with Gradio](https://www.gradio.app/guides/building-an-mcp-client-with-gradio)
142+
* [Bonus Guide: Building an MCP Client with Gradio](https://www.gradio.app/guides/building-an-mcp-client-with-gradio)

0 commit comments

Comments
 (0)