Skip to main content
Glama
Saige Weather MCP Server

Saige Weather MCP Server

README.md
# 🌦️ Saige Weather MCP Server

<p align="center">
  <img src="assets/banner.svg" alt="Saige Weather MCP Banner" width="100%" />
</p>

<p align="center">
  <a href="https://pypi.org/project/saige-weather-mcp/"><img src="https://img.shields.io/pypi/v/saige-weather-mcp.svg?color=blue" alt="PyPI version" /></a>
  <a href="https://pypi.org/project/saige-weather-mcp/"><img src="https://img.shields.io/pypi/pyversions/saige-weather-mcp.svg" alt="Python versions" /></a>
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a>
  <a href="https://github.com/hackershanmukha/mcp-weather"><img src="https://img.shields.io/github/stars/hackershanmukha/mcp-weather?style=social" alt="GitHub stars" /></a>
</p>

A lightweight, production-ready **Model Context Protocol (MCP)** server that delivers real-time weather information for any city or country worldwide using the free **Open-Meteo** API.

📦 **PyPI Release:** [https://pypi.org/project/saige-weather-mcp/0.1.1/](https://pypi.org/project/saige-weather-mcp/0.1.1/)

Compatible with **Claude Desktop**, **Cursor**, **Windsurf**, and custom AI agent workflows (LangChain, Groq, AutoGen).

---

## ✨ Features

- 🌍 **Worldwide Coverage:** Query weather for any city, country, or location worldwide (e.g., *Tokyo*, *London*, *Paris*, *Mumbai*, *New York*).
- 🔑 **Zero API Keys Required:** Uses Open-Meteo’s public geocoding and forecast APIs out of the box.
- ⚡ **Instant Execution with `uvx`:** Run immediately from PyPI without manual dependency installation or virtual environment clutter.
- 🔌 **Multiple Transports Supported:** Supports standard input/output (`stdio`) for desktop AI clients and Server-Sent Events (`SSE`) for network deployments.

---

## 🚀 Quick Start

### 1. Using directly with `uvx` (No installation needed)

Available on PyPI at [https://pypi.org/project/saige-weather-mcp/0.1.1/](https://pypi.org/project/saige-weather-mcp/0.1.1/). You can launch and test the server immediately with Astral's `uvx`:

```bash
uvx saige-weather-mcp
```

Or test it interactively with the **MCP Inspector**:

```bash
npx @modelcontextprotocol/inspector uvx saige-weather-mcp
```

<p align="center">
  <img src="assets/inspector.jpg" alt="MCP Inspector Running Saige Weather" width="95%" />
</p>

---

### 2. Adding to Claude Desktop

Add the following to your `claude_desktop_config.json`:

* **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
* **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`

```json
{
  "mcpServers": {
    "weather": {
      "command": "uvx",
      "args": ["saige-weather-mcp"]
    }
  }
}
```

Restart Claude Desktop, and the hammer icon (🛠️) will appear with the `get_weather` tool available in your chat!

---

### 3. Using in Custom AI Assistants (e.g. LangChain / Groq)

In your MCP configuration file (e.g. `browser_mcp.json`):

```json
{
  "mcpServers": {
    "weather": {
      "command": "uvx",
      "args": ["saige-weather-mcp"]
    }
  }
}
```

Then run your assistant (`app.py`):

```python
from mcp_use import MCPClient, MCPAgent
from langchain_groq import ChatGroq

client = MCPClient("browser_mcp.json")
agent = MCPAgent(llm=ChatGroq(model_name="openai/gpt-oss-120b"), client=client)
```

---

### 4. Adding to VS Code (Copilot Chat)

Add to your VS Code MCP configuration (`.vscode/mcp.json` or `%APPDATA%\Code\User\mcp.json`):

```json
{
  "servers": {
    "weather": {
      "type": "stdio",
      "command": "uvx",
      "args": ["saige-weather-mcp"]
    }
  }
}
```

Reload VS Code (`Ctrl+Shift+P` -> `Developer: Reload Window`), start a new chat, and Copilot will have access to `get_weather`.

---

## 🛠️ Tools Provided

### `get_weather`

Fetch live atmospheric conditions for any location.

* **Parameter:**
  * `location` *(string, required)*: The city, country, or landmark name. (e.g. `"London"`, `"Tokyo"`, `"Paris"`).

* **Example Output:**
  ```text
  Weather for London, United Kingdom:
  - Temperature: 10.2 °C
  - Humidity: 88%
  - Wind Speed: 12.4 km/h
  ```

---

## 💬 Example Prompts

Test that your AI client uses the MCP server directly instead of its built-in knowledge or web search:

1. **Current City Weather:**
   > *"What is the current weather in Tokyo? (Use the weather MCP tool, do not use built-in search or training data)"*

2. **Multi-City Comparison:**
   > *"Compare the current weather between Paris and Sydney right now. (Use the weather MCP tool only, do not use built-in estimates)"*

3. **Detailed Conditions:**
   > *"What is the current temperature, humidity, and wind speed in New York? (Fetch using the get_weather MCP tool, not built-in knowledge)"*

---

## 💻 Local Development

If you want to contribute or modify this project locally:

1. **Clone the repository:**
   ```bash
   git clone https://github.com/hackershanmukha/mcp-weather.git
   cd mcp-weather
   ```

2. **Install dependencies using `uv`:**
   ```bash
   uv sync
   ```

3. **Run the development server with Inspector:**
   ```bash
   uv run mcp dev --with "mcp[cli]" server/wheater.py
   ```

---

## 📄 License

This project is open-source and available under the [MIT License](LICENSE).

TDQS

B3.2/5.0

Scored across 1 tool

Disambiguation5/5

With only a single tool, there is no possibility of confusing it with another operation. Its purpose—fetching current weather for a location—is unambiguous.

Naming Consistency4/5

The single name get_weather follows a clean verb_noun snake_case convention. A pattern cannot really be established with one tool, so it falls just short of a perfect score.

Tool Count2/5

A weather server with exactly one tool is thin; users would reasonably expect forecast, multi-day, or historical queries. The single operation leaves the server under-scoped for its domain.

Completeness2/5

Only current conditions are exposed; there is no forecast, historical data, alerts, or unit/format options. These are significant gaps for a weather service and will force agents to fail on common forecast requests.