Skip to main content
Glama

MCP Server Demo

MCP Server Demo (Humorous Edition)

A simplified Model Context Protocol (MCP) server implemented in Python. This version reads plain text from standard input and responds with a humorous message. It is Docker- and Azure-deployable.

Project Structure

. ├── infrastructure/ # Infrastructure and deployment related files │ ├── azure/ # Azure deployment files │ │ ├── deploy.ps1 # PowerShell deployment script │ │ ├── deploy.sh # Bash deployment script │ │ └── main.bicep # Azure Bicep deployment template │ └── docker/ # Docker deployment files │ ├── Dockerfile # Container definition │ └── docker-compose.yml # Docker Compose configuration ├── main.py main.py # MCP server implementation (reads text, returns funny responses) └── requirements.txt # Python dependencies

Development

To run the MCP server locally:

python main.py

To run with Docker:

cd infrastructure/docker docker compose up --build # Build and start the container docker compose down # Stop and remove the container

To test the MCP server, send a message:

echo '{"type": "prompt", "content": "Hello MCP Server!", "metadata": {}}' | docker compose exec -T mcp-server-demo python -u main.py

Deployment

To deploy to Azure:

cd infrastructure/azure ./deploy.ps1

Make sure you have the Azure CLI installed and are logged in before deploying.

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A simplified Model Context Protocol server in Python that reads text input and generates humorous responses, with support for Docker and Azure deployment.

  1. Project Structure
    1. Development
      1. Deployment

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.
          Last updated -
          2
          Python
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          A Python-based implementation of the Model Context Protocol that enables communication between a model context management server and client through a request-response architecture.
          Last updated -
          Python
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that delivers various types of jokes (Chuck Norris, Dad jokes, etc.) to Microsoft Copilot Studio and GitHub Copilot through standardized API integration.
          Last updated -
          MIT License
          • Apple
          • Linux
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that provides various jokes (Chuck Norris, Dad jokes, etc.) which can be integrated with Microsoft Copilot Studio and GitHub Copilot.
          Last updated -
          MIT License
          • Apple
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/pablomartinferrari/mcp-demo'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server