by isdaniel
Provides current weather, historical weather ranges, and timezone‑aware current datetime for specified cities using the free Open‑Meteo API.
What is Weather MCP Server about?
A lightweight Model Context Protocol (MCP) server that retrieves weather data from the Open‑Meteo service and returns it in a format consumable by LLMs or other clients. It supports fetching the latest conditions for a city, obtaining weather forecasts over a date range, and getting the current time in any IANA timezone.
How to use Weather MCP Server?
pip install mcp-weather-server
.cline_mcp_settings.json
:
{
"mcpServers": {
"weather": {
"command": "python",
"args": ["-m", "mcp_weather_server"],
"disabled": false,
"autoApprove": []
}
}
}
get_weather
, get_weather_by_datetime_range
, get_current_datetime
) using the MCP XML syntax shown in the README.Key features of Weather MCP Server
Use cases of Weather MCP Server
FAQ from the Weather MCP Server
YYYY‑MM‑DD
).get_current_datetime
tool defaults to UTC.python -m mcp_weather_server
directly or set PYTHONPATH
to the package root if needed.A Model Context Protocol (MCP) server that provides weather information using the Open-Meteo API.
Pip Installation and Usage, This package can be installed using pip:
pip install mcp_weather_server
This server is designed to be installed manually by adding its configuration to the cline_mcp_settings.json
file.
mcpServers
object in your cline_mcp_settings.json
file:{
"mcpServers": {
"weather": {
"command": "python",
"args": [
"-m",
"mcp_weather_server"
],
"disabled": false,
"autoApprove": []
}
}
}
cline_mcp_settings.json
file.This server does not require an API key. It uses the Open-Meteo API, which is free and open-source.
This server provides several tools: get_weather
, get_weather_by_datetime_range
, and get_current_datetime
.
get_weather
Retrieves the current weather information for a given city.
Parameters:
city
(string, required): The name of the city.Example:
To get the weather in Taipei, you would use the tool like this:
<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_weather</tool_name>
<arguments>
{
"city": "Taipei"
}
</arguments>
</use_mcp_tool>
get_weather_by_datetime_range
Retrieves weather information for a specified city between start and end dates.
Parameters:
city
(string, required): The name of the city.start_date
(string, required): Start date in format YYYY-MM-DD (ISO 8601).end_date
(string, required): End date in format YYYY-MM-DD (ISO 8601).Example:
To get the weather in London between 2024-01-01 and 2024-01-07, you would use the tool like this:
<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_weather_by_datetime_range</tool_name>
<arguments>
{
"city": "London",
"start_date": "2024-01-01",
"end_date": "2024-01-07"
}
</arguments>
</use_mcp_tool>
get_current_datetime
Retrieves the current time in a specified timezone.
Parameters:
timezone_name
(string, required): IANA timezone name (e.g., 'America/New_York', 'Europe/London'). Use UTC timezone if no timezone provided by the user.Example:
To get the current time in New York, you would use the tool like this:
<use_mcp_tool>
<server_name>weather</server_name>
<tool_name>get_current_datetime</tool_name>
<arguments>
{
"timezone_name": "America/New_York"
}
</arguments>
</use_mcp_tool>
Change Working Directory Before Running Python
python -m mcp_weather_server
Or if you want Python to find your package no matter where you run from, you can set PYTHONPATH:
set PYTHONPATH=C:\xxx\mcp_weather_server\src
python -m mcp_weather_server
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "weather": { "command": "python", "args": [ "-m", "mcp_weather_server" ] } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by mattt
Enables AI assistants to retrieve and manage personal macOS data such as calendar events, contacts, messages, reminders, location, maps, and weather through a local MCP server, allowing personalized AI interactions without sending data off‑device.
by nspady
Provides Google Calendar integration for AI assistants, enabling event listing, creation, updating, deletion, free/busy queries, recurring event handling, and smart scheduling via natural language.
by baidu-maps
Offers a comprehensive suite of geospatial APIs and tools for developers and AI agents, enabling geocoding, reverse geocoding, POI search, route planning, weather, traffic, IP location, and real‑time traffic queries via standardized MCP interfaces.
by Omar-V2
Interact with the macOS Calendar through natural‑language commands, enabling creation, querying, and updating of events in a conversational way.
by GongRzhe
Enables LLMs to perform travel-related tasks such as location search, place details lookup, route calculation, and timezone retrieval using Google Maps services.
by zcaceres
Integrates with Google Tasks to list, read, search, create, update, and delete tasks via MCP tools.
by v-3
Interact with Google Calendar to list, create, update, delete events and find free time slots via Claude.
by r-huijts
Provides real-time Dutch railway travel information—including departures, arrivals, journey planning, pricing, and station facilities—through an MCP server that Claude can query.
by TimLukaHorstmann
Provides hourly and daily weather forecasts via the AccuWeather API for Model Context Protocol (MCP) integration with language models.