Vinay-kumar1234/MCP-Server-Wh-CL-FX
3.1
If you are the rightful owner of MCP-Server-Wh-CL-FX and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This document provides a comprehensive overview of a minimal MCP server that offers weather and calculation services, along with a local testing UI.
Tools
2
Resources
0
Prompts
0
MCPServer (fixed)
A minimal MCP server exposing two tools:
get_weather(location: str)– fetches current weather using OpenWeatherMapcalculate(expression: str)– safely evaluates simple math expressions
It also includes a small Streamlit UI for local testing (no MCP client required).
Quick start (VS Code)
-
Python 3.11 or 3.12
- Confirm:
python --version
- Confirm:
-
Create venv
python -m venv .venv
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
# macOS/Linux
# source .venv/bin/activate
- Install deps
pip install -r requirements.txt
- Env var
- Copy
.env.exampleto.envand set your OpenWeather API key:
- Copy
OPENWEATHER_API_KEY=YOUR_KEY_HERE
- Run the MCP server
python main.py
- It will print the transport info (for
streamable-http). Keep the terminal open while using an MCP client.
- Optional: local UI (Streamlit)
streamlit run app_ui.py
- Use the browser UI to test weather and calculator without an MCP client.
VS Code debug
- Hit
Run and Debug→Python: Run main.pyto start the server. - Or
Python: Streamlit appto start the UI.
If you don't see these, add the provided .vscode/launch.json.
Notes
- Do not commit your
.env. - If you copied this into an existing folder that had a
.venvchecked in, delete that folder and create a fresh venv. - The included server uses OpenWeatherMap's free "Current Weather Data" endpoint.