Weather MCP Server
A Model Context Protocol (MCP) server that provides weather information using the Open-Meteo API.
Features
- Get current weather information for a specified city.
Installation
Pip Installation and Usage, This package can be installed using pip:
This server is designed to be installed manually by adding its configuration to the cline_mcp_settings.json
file.
- Add the following entry to the
mcpServers
object in yourcline_mcp_settings.json
file:
- Save the
cline_mcp_settings.json
file.
Configuration
This server does not require an API key. It uses the Open-Meteo API, which is free and open-source.
Usage
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:
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:
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:
For developers
Change Working Directory Before Running Python
Or if you want Python to find your package no matter where you run from, you can set PYTHONPATH:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that provides weather information using the Open-Meteo API, allowing users to get current weather for specific cities and retrieve weather data for date ranges.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that retrieves current weather information for specified cities using the Open-Meteo API, requiring no API key.Last updated -312PythonApache 2.0
- -securityFlicense-qualityA Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.Last updated -Python
- -securityFlicense-qualityA production-ready Model Context Protocol server that provides weather data from OpenWeatherMap API, allowing users to query current weather by city name or coordinates with support for different temperature units.Last updated -Python
- AsecurityAlicenseAqualityA Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.Last updated -1120JavaScriptMIT License