https://github.com/shibing624/weather-forecast-server
weather-forecast-server, MCP server, without api key, free. Get weather for cities around the world.
https://github.com/shibing624/weather-forecast-server
mcp-server weather weather-forecast weather-mcp-server
Last synced: 4 months ago
JSON representation
weather-forecast-server, MCP server, without api key, free. Get weather for cities around the world.
- Host: GitHub
- URL: https://github.com/shibing624/weather-forecast-server
- Owner: shibing624
- License: apache-2.0
- Created: 2025-04-19T14:47:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-05-14T06:14:52.000Z (6 months ago)
- Last Synced: 2025-06-16T05:09:10.660Z (5 months ago)
- Topics: mcp-server, weather, weather-forecast, weather-mcp-server
- Language: Python
- Homepage:
- Size: 546 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - **weather-forecast-server** - weather-forecast-server, MCP server, without api key, free. Get weather for cities around the world. 免费天气预报MCP工具。 `python` `mcp-server` `weather` `weather-forecast` `weather-mcp-server` `pip install git+https://github.com/shibing624/weather-forecast-server` (🤖 AI/ML)
README
[](https://mseep.ai/app/shibing624-weather-forecast-server)
# 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`:
```bash
uv pip install weather-forecast-server
```
Or using pip:
```bash
pip install weather-forecast-server
```
### From source
```bash
git clone https://github.com/shibing624/mcp-server-weather.git
cd weather-forecast-server
pip install -e .
```
## Usage
### Python Demo
```python
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:
```bash
uvx weather-forecast-server
```
or
```bash
uv run weather-forecast-server
```
or
```bash
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:
```bash
uv run weather-forecast-server
```

### Tools available
- `get_weather` - Get current weather conditions for a location (up to 3 days)
## Contact
- Issues and suggestions: [](https://github.com/shibing624/weather-forecast-server/issues)
- Email: xuming624@qq.com
- 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](/LICENSE) 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:
1. Add appropriate unit tests in the `tests` directory
2. Run `python -m pytest` to ensure all tests pass
3. Submit your PR with clear descriptions of the changes
## Acknowledgements
- Weather data provided by [wttr.in](https://wttr.in)
- Built with [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)