- Explore MCP Servers
- weather-forecast-server
Weather Forecast Server
What is Weather Forecast Server
The weather-forecast-server is an MCP server that provides weather information for cities around the world without requiring an API key. It utilizes the wttr.in service to retrieve current weather conditions and forecasts.
Use cases
Use cases include providing weather updates in chatbots, integrating weather information into travel applications, and enhancing user experience in smart home devices.
How to use
To use the weather-forecast-server, you can install it via uv or pip. Run the server with the command uv run weather-forecast-server, or integrate it with MCP clients like Claude Desktop by using the appropriate installation commands.
Key features
Key features include obtaining current weather for any location, multi-day weather forecasts (up to 3 days), support for multiple languages including Chinese and English, and easy integration with MCP client applications.
Where to use
The weather-forecast-server can be used in various fields such as mobile applications, web applications, and any software requiring real-time weather data.
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 Weather Forecast Server
The weather-forecast-server is an MCP server that provides weather information for cities around the world without requiring an API key. It utilizes the wttr.in service to retrieve current weather conditions and forecasts.
Use cases
Use cases include providing weather updates in chatbots, integrating weather information into travel applications, and enhancing user experience in smart home devices.
How to use
To use the weather-forecast-server, you can install it via uv or pip. Run the server with the command uv run weather-forecast-server, or integrate it with MCP clients like Claude Desktop by using the appropriate installation commands.
Key features
Key features include obtaining current weather for any location, multi-day weather forecasts (up to 3 days), support for multiple languages including Chinese and English, and easy integration with MCP client applications.
Where to use
The weather-forecast-server can be used in various fields such as mobile applications, web applications, and any software requiring real-time weather data.
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
Weather Forecast MCP Server
A Model Context Protocol (MCP) server for retrieving weather information using the wttr.in service.
Overview
This MCP server provides tools for accessing current weather conditions and forecasts for locations worldwide.
It can be easily integrated with MCP clients, including Claude and other LLM applications supporting the MCP protocol.
Features
- Get current weather for any location
- Get multi-day weather forecasts (up to 3 days)
- Support for both Chinsee/English and other language location names
- Easy integration with MCP client applications
Installation
From pip
You can install the MCP Weather Server using uv:
uv pip install weather-forecast-server
Or using pip:
pip install weather-forecast-server
From source
git clone https://github.com/shibing624/mcp-server-weather.git
cd weather-forecast-server
pip install -e .
Usage
Python Demo
from weather_forecast_server import get_weather
print(get_weather('baoding')) # can be "baoding" or "保定"

Running as a standalone MCP server
Run the server with the stdio transport:
uvx weather-forecast-server
or
uv run weather-forecast-server
or
python -m weather_forecast_server
Then, you can use the server with any MCP client that supports stdio transport.
Integrating with Cursor
To add the weather MCP server to Cursor, add stdio MCP with command:
uv run weather-forecast-server

Tools available
get_weather- Get current weather conditions for a location (up to 3 days)
Contact
- Issues and suggestions:
- Email: [email protected]
- WeChat: Add me (WeChat ID: xuming624) with the message: “Name-Company-NLP” to join our NLP discussion group.
License
This project is licensed under The Apache License 2.0 and can be used freely for commercial purposes.
Please include a link to the weather-forecast-server project and the license in your product description.
Contribute
We welcome contributions to improve this project! Before submitting a pull request, please:
- Add appropriate unit tests in the
testsdirectory - Run
python -m pytestto ensure all tests pass - Submit your PR with clear descriptions of the changes
Acknowledgements
- Weather data provided by wttr.in
- Built with MCP Python SDK
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.











