- Home
- MCP servers
- Weather MCP Tool Server
Weather MCP Tool Server
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"jalaj-pandey-weather-mcp-tool": {
"command": "mcp",
"args": [
"dev",
"main.py"
],
"env": {
"OPENWEATHER_API_KEY": "YOUR_API_KEY"
}
}
}
}You run a weather-focused MCP server that uses the OpenWeatherMap API to deliver real-time conditions, forecasts, air quality data, and location search. This server is designed for India-focused queries and lets MCP clients fetch weather data programmatically with simple tool calls.
How to use
Use an MCP client to interact with the Weather MCP Tool server by invoking its available actions through the MCP interface. You can retrieve current weather, get a multi-day forecast, check air quality, and search for locations. Each action returns structured data you can display in your app or automate in workflows.
- Get current weather for a location by calling the current weather action with your location string (for example, a city name).
- Get a 5-day forecast by calling the forecast action with a location string, optionally specifying the number of days (default is 5).
- Obtain air quality metrics for a location by using the air quality action with your location string.
- Search for locations by providing a query; you will receive up to five matching results to choose from.
Available tools
get_current_weather
Returns current weather conditions for the specified location, including temperature, humidity, wind, and weather description.
get_weather_forecast
Returns a multi-day weather forecast for the specified location, including daily high/low temperatures and conditions.
get_air_quality
Returns air quality metrics and AQI level for the specified location.
search_location
Searches for locations matching a query and returns up to a few matches with coordinates.