1morshed1/weather-mcp-server
If you are the rightful owner of weather-mcp-server 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 Weather MCP Server is a two-part Python application designed to provide weather data and AI-powered assistance through a FastMCP backend and an interactive Streamlit web client.
Weather MCP Server

A two-part Python application for weather data and AI-powered assistance, featuring:
- MCP Server: FastMCP backend for weather data and API integration.
- Streamlit Client: Interactive web UI for users.
Project Structure
.
├── client/
│ └── client.py
│ └── Dockerfile
├── mcp/
│ └── weather.py
│ └── Dockerfile
├── requirements.txt
├── docker-compose.yml
├── .env
Prerequisites
- Docker & Docker Compose installed
- Python 3.11+ (for local development)
- A valid
GROQ_API_KEY(for Groq API access)
Setup
-
Clone the repository
git clone https://github.com/1morshed1/weather-mcp-server.git cd mcp-project -
Create a
.envfileGROQ_API_KEY=your_api_key_here
Running with Docker Compose
-
Build and start the services
docker compose up --build -
Access the application
- MCP Server: http://localhost:8000
- Streamlit Client: http://localhost:8501
-
Stop the services Press
Ctrl+Cin the terminal, then:docker compose down
Local Development
-
Install dependencies
python -m venv venv source venv/bin/activate pip install -r requirements.txt -
Run MCP Server
python mcp/weather.py -
Run Streamlit Client
streamlit run client/client.py
Environment Variables
GROQ_API_KEY: Your Groq API key
Troubleshooting
-
Docker cannot access
.envfile
Remove thevolumessection mounting.envindocker-compose.yml. Docker Compose will automatically use.envfor environment variables. -
Ports already in use
Change the exposed ports indocker-compose.ymlif 8000 or 8501 are busy. -
Healthcheck fails
Ensureweather.pyexposes a/healthendpoint.
File Overview
client/client.py: Streamlit web clientmcp/weather.py: FastMCP serverrequirements.txt: Python dependenciesdocker-compose.yml: Multi-service orchestration.env: Secrets and API keys
License
MIT