mcp-demo

pablomartinferrari/mcp-demo

3.1

If you are the rightful owner of mcp-demo 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.

The MCP Server Demo is a humorous edition of a Model Context Protocol server implemented in Python, designed to read plain text and respond with funny messages. It is deployable via Docker and Azure.

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.