what is Weather MCP Server?
Weather MCP Server is a Model Context Protocol (MCP) server that provides real-time weather information using the Open-Meteo API.
how to use Weather MCP Server?
To use the Weather MCP Server, install it manually by adding its configuration to the cline_mcp_settings.json
file and then use the get_weather
tool to retrieve weather data for a specified city.
key features of Weather MCP Server?
- Provides current weather information for any specified city.
- Utilizes the free and open-source Open-Meteo API.
- Easy installation and configuration without the need for an API key.
use cases of Weather MCP Server?
- Retrieving weather data for applications that require real-time weather updates.
- Integrating weather information into other services or platforms.
- Assisting users in planning activities based on current weather conditions.
FAQ from Weather MCP Server?
- Do I need an API key to use the Weather MCP Server?
No, the Weather MCP Server uses the Open-Meteo API, which does not require an API key.
- How do I install the Weather MCP Server?
You can install it using pip with the command
pip install mcp_weather_server
.
- What parameters do I need to provide to get weather information?
You need to provide the name of the city as a parameter to the
get_weather
tool.
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
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:
{
"mcpServers": {
"weather": {
"command": "python",
"args": [
"mcp_weather_server.py"
],
"disabled": false,
"autoApprove": []
}
}
}
- 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 a single tool: get_weather
.
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>
Pip Installation and Usage
This package can be installed using pip:
pip install mcp_weather_server
After installation, you can use the mcp_weather_server
command-line tool:
mcp_weather_server --city "Your City"
Replace "Your City"
with the city you want to get weather information for.