home / mcp / weather mcp server
Provides current weather data and city comparisons with unit options and optional forecasts.
Configuration
View docs{
"mcpServers": {
"glassbead-tc-weather-mcp": {
"command": "python",
"args": [
"/path/to/weather-mcp/src/weather_server.py"
]
}
}
}Weather MCP Server is a lightweight Python-based service that provides current weather data for cities and enables simple comparisons between multiple locations. It supports metric and imperial units and can optionally include a detailed 3-day forecast, making it useful for chat assistants, bots, or local productivity tools that need up-to-date weather information.
You interact with Weather MCP Server through an MCP client. Start the local server in your environment, then connect your MCP client to request current weather for a city, or compare weather between several cities. Use the available tools to fetch data in your preferred units and choose whether you want a detailed forecast.
Prerequisites you need before installation:
Step-by-step setup using the local Python server approach:
pip install -r requirements.txt
python src/weather_server.pyConfigure your MCP client to load the Weather MCP Server as a stdio (local) process. Use the following configuration snippet as a starting point. Replace the path with the actual location of the weather_server.py file on your system.
{
"mcpServers": {
"weather": {
"command": "python",
"args": ["/path/to/weather-mcp/src/weather_server.py"]
}
}
}After starting the server, use your MCP client to request data. For example you can request current weather for a city, or compare multiple cities. Ensure the client points to the Weather MCP Server process you started.
If you need to stop the server, terminate the Python process that is running weather_server.py. Logs printed to the console will help you verify requests and responses.
Fetches the current weather for a specified city with optional units and detailed forecast.
Compares weather across multiple cities, with a choice of sorting metric.