- Explore MCP Servers
- mcp-openweathermap
Mcp Openweathermap
What is Mcp Openweathermap
mcp-openweathermap is a simple MCP server that provides current weather information using the OpenWeatherMap API.
Use cases
Use cases include weather forecasting applications, travel planning tools, and environmental monitoring systems.
How to use
To use mcp-openweathermap, install the dependencies with ‘uv venv’ and ‘uv sync’, then create a ‘.env’ file with your OpenWeatherMap API key. Finally, run the server using the specified command.
Key features
Key features include obtaining current weather conditions such as temperature, humidity, wind speed, and additional details like atmospheric pressure and visibility.
Where to use
mcp-openweathermap can be used in applications that require real-time weather data, such as mobile apps, web applications, and IoT devices.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Openweathermap
mcp-openweathermap is a simple MCP server that provides current weather information using the OpenWeatherMap API.
Use cases
Use cases include weather forecasting applications, travel planning tools, and environmental monitoring systems.
How to use
To use mcp-openweathermap, install the dependencies with ‘uv venv’ and ‘uv sync’, then create a ‘.env’ file with your OpenWeatherMap API key. Finally, run the server using the specified command.
Key features
Key features include obtaining current weather conditions such as temperature, humidity, wind speed, and additional details like atmospheric pressure and visibility.
Where to use
mcp-openweathermap can be used in applications that require real-time weather data, such as mobile apps, web applications, and IoT devices.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MPC OpenWeatherMap Server
A simple MCP server that provides current weather information using the OpenWeatherMap API.
Setup
- Install dependencies using
uv:
uv venv
uv sync
- Create a
.envfile with your OpenWeatherMap API key:
OPENWEATHERMAP_API_KEY=your_api_key_here
You can get an API key by registering at OpenWeatherMap API.
Running the Server
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"tool",
"run",
"--from",
"git+https://github.com/leonhardholz/mcp-openweathermap.git",
"mcp-openweathermap"
],
"env": {
"OPENWEATHERMAP_API_KEY": "your_api_key_here"
}
}
}
}
API Usage
Get Current Weather
Response:
{
"location": "Berlin",
"coordinates": {
"lat": 52.5244,
"lon": 13.4105
},
"country": "DE",
"current_conditions": {
"temperature": {
"value": 18.2,
"unit": "C"
},
"weather_text": "clear sky",
"feels_like": 17.5,
"humidity": 65,
"pressure": 1013,
"wind_speed": 2.5,
"wind_direction": 180,
"cloudiness": 10,
"observation_time": 1683721962,
"visibility": 10000
}
}
The API provides:
- Current weather conditions including temperature, weather description, humidity, and wind speed
- Additional details such as:
- Atmospheric pressure
- Wind direction
- Cloudiness percentage
- Visibility
- Rain and snow data (when applicable)
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










