Used for storing API credentials securely in a .env file for the OpenWeatherMap API integration
Required as the runtime environment (version 3.10+) for executing the MCP server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP Toolwhat's the air quality like in Bangalore today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather MCP Tool (India-Focused)
An MCP (Model Context Protocol) server using the OpenWeatherMap API to provide:
Real-time weather conditions
5-day weather forecasts
Air quality data
Location search
π Setup
Python 3.10+ is required.
Install dependencies:
pip install -r requirements.txtGet an API key from OpenWeatherMap.
Create a in the root folder:
OPENWEATHER_API_KEY=your_api_key_here
Related MCP server: Weather Query MCP Server
π Available Tools
get_current_weather(location: str)
Returns current weather for a given location.
get_weather_forecast(location: str, days: int = 5)
Returns a weather forecast (up to 5 days) for the location.
get_air_quality(location: str)
Returns air quality metrics and AQI level.
search_location(query: str)
Returns up to 5 location matches based on the query.
π§ͺ Example Output (India)
Current Weather (Delhi)
Weather Forecast (Mumbai)
Air Quality (Bangalore)
Location Search
π§° Error Handling
All tools return clear error messages:
π Notes
Ensure
.envfile is configured correctly.API keys may take time to activate.
OpenWeatherMap free tier: 60 API calls per minute.
π§βπ» Run the Server
Once running, you can use this server with MCP-compatible clients like Claude Desktop or other automation tools.