An MCP server for weather information
Project description
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
mcpServersobject in yourcline_mcp_settings.jsonfile:
{
"mcpServers": {
"weather": {
"command": "python",
"args": [
"mcp_weather_server/server.py"
],
"disabled": false,
"autoApprove": []
}
}
}
- Save the
cline_mcp_settings.jsonfile.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_weather_server-0.2.0.tar.gz.
File metadata
- Download URL: mcp_weather_server-0.2.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b6f2594247123685c82ca82415b47d553589e23351e1e4dab047f2e5942ade5
|
|
| MD5 |
853c55f0fe897d4a693738f9e84a9d8a
|
|
| BLAKE2b-256 |
8a84fe34743e89a5620470c0dd89f1abc4d75ce8789e068bea987d9a17db6d57
|
File details
Details for the file mcp_weather_server-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mcp_weather_server-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70e931b30ab352f00ae44e19d0cd7b144c8151cec53277699379ecaa76244038
|
|
| MD5 |
716be48dd986cbb3e538f732271ab089
|
|
| BLAKE2b-256 |
50d5bab11b981f0659150a03dbc1cd4f27e40caffcb3f6eeb692a3f43e765e79
|