FastAPI SSE MCP RandomServer

hk4crprasad
GitHub
FastAPIMCPAI

Loading subscription status...

💡 Description

A FastAPI server implementing the Model Context Protocol (MCP) using Server-Sent Events (SSE) for streaming communication. This project offers utilities such as random number generation, image generation using Azure OpenAI DALL-E, and AI podcast generation.

📝 JSON Entries

{
  "mcpServers": [
    {
      "FastAPI SSE MCP Random": {
        "env": {
          "AZURE_OPENAI_API_KEY": "<AZURE_OPENAI_API_KEY>"
        },
        "args": [],
        "command": "python main.py"
      }
    }
  ]
}

🛠️ Tools

random_numbergenerate_imagegenerate_podcastecho_toolthink_tool

Features

  • Server-Sent Events (SSE) for real-time streaming
  • Model Context Protocol (MCP) implementation
  • Various utilities such as echo tool and random number generator

💬 Example Queries

  • Generate a random number between 1 and 100
  • Create an image based on a prompt: 'A beautiful landscape with mountains and a lake'
  • Generate a podcast discussing the future of artificial intelligence