mcpField
W
Weather Forecast MCP Server

Weather Forecast MCP Server

Local
github.com/shibing624Media & Design5Updated 6w ago

About Weather Forecast MCP Server

An MCP server that retrieves weather from wttr.in, with Open-Meteo as a fallback, for MCP clients needing information about locations worldwide. It requires no API key and provides current conditions and forecasts up to three days.

Key features

  1. 01Retrieve current local weather
  2. 02Get forecasts up to 3 days
  3. 03Accept Chinese and English location names
  4. 04No API key required

Use cases

  1. 01Check current weather for a location
  2. 02Review weather over the next few days
  3. 03Provide weather information in an MCP client

MCP support

It exposes the `get_weather` tool to MCP clients over stdio for current conditions and forecasts up to three days.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MseeP.ai Security Assessment Badge

Weather Forecast MCP Server

A Model Context Protocol (MCP) server for retrieving weather information using the wttr.in service, with Open-Meteo as fallback (free, no API key required).

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 "保定"

README image

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

README image

Tools available
  • get_weather - Get current weather conditions for a location (up to 3 days)

Contact

  • Issues and suggestions: GitHub issues
  • Email: [email protected]
  • WeChat: Add me (WeChat ID: xuming624) with the message: "Name-Company-NLP" to join our NLP discussion group.
README image

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:

  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, fallback by Open-Meteo (free, no API key required)
  • Built with MCP Python SDK 2.x (requires mcp>=2.2.0, not compatible with mcp 1.x)

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.