gradio-mcp-test

yownas/gradio-mcp-test

3.2

If you are the rightful owner of gradio-mcp-test and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a comprehensive summary of a Model Context Protocol (MCP) server setup and its functionalities.

Tools
  1. cat_image

    Returns a PNG image of a cat.

  2. cat_url

    Returns the URL of a cat image and asks the LLM to display it using Markdown.

Setup:

  • Create a virtualenv with python -m venv venv
  • Activate it source venv/bin/activate
  • Install requirements pip install -r requirements
  • Run the server python app.py

Edit MCP.json:

{
  "mcpServers": {
    "gradio-mcp-test": {
      "url": "http://localhost:7860/gradio_api/mcp/sse"
    }
  }
}

The server has two tools. cat_image which will return a PNG image of a cat and cat_url that only return the url and ask the LLM to display it using Markdown.