pablomartinferrari/mcp-demo
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.