Weather Mcp

io.github.darshan0548由 GitHub 帳號 darshan0548 發布v1.1.0更新於 Nov 1, 2026

MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.

已驗證Streamable HTTP可網頁執行位置與生活網頁搜尋與抓取

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理取得城市即時天氣,並就帶傘、戶外活動與城市天氣比較給出白話建議。

可以做什麼
  • 取得某城市的目前天氣與今日預報
  • 給出是否帶傘的是/否建議並附理由
  • 判斷今日天氣是否適合散步、跑步等戶外活動
  • 比較兩個城市的目前天氣
  • 查看此伺服器的作者與開發緣由
適用情境
適合希望助理以建議而非原始數字回答日常天氣問題的情境,例如今天要不要帶傘、適不適合跑步,或兩個城市此刻的天氣差異。
執行需求
需要一個遠端 streamable HTTP 端點;未宣告驗證、API 金鑰或環境變數。天氣資料來自 Open-Meteo,README 表示其無需 API 金鑰,因此需要網路存取。
安裝前請注意
天氣資料經託管端點從第三方服務 Open-Meteo 取得,因此你詢問的城市名稱會傳送到本機之外。此端點託管於免費方案平台,可用性可能不穩定。不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Weather Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.darshan0548%2Fweather-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "weather": {
      "type": "http",
      "url": "https://weather-mcp-2yhb.onrender.com/mcp"
    }
  }
}

README

weather-mcp

An MCP (Model Context Protocol) server that lets an AI assistant Claude, Gemini CLI, or any MCP-compatible client answer real weather questions using live data, instead of just fetching raw numbers.

Powered by Open-Meteo — free, no API key required.

Why this isn't just a raw weather API wrapper

Most weather integrations just return temperature: 22°C. This one adds a reasoning layer on top, so you can ask things a plain API can't answer directly:

  • get_weather("Bangalore") — current conditions + today's forecast
  • should_i_carry_umbrella("Mumbai") — a yes/no answer with reasoning, not just a rain percentage
  • is_good_for_outdoors("Delhi") — checks rain, wind, and temperature together to judge if it's a good day to be outside
  • compare_weather("Bangalore", "Delhi") — compares two cities at once

Setup

bash
git clone https://github.com/darshan0548/weather-mcp.gitcd weather-mcppython3 -m venv venvsource venv/bin/activate   # on Windows: venv\Scripts\activatepip install -r requirements.txt

Running the tests

A quick sanity check against the real API (no mocking, no API key needed):

bash
python test_weather.py

Connecting it to Claude Desktop

Add this to your Claude Desktop config (claude_desktop_config.json):

json
{  "mcpServers": {    "weather": {      "command": "python",      "args": ["/absolute/path/to/weather-mcp/server.py"]    }  }}

Connecting it to Gemini CLI

Add this to ~/.gemini/settings.json:

json
{  "mcpServers": {    "weather": {      "command": "python",      "args": ["/absolute/path/to/weather-mcp/server.py"]    }  }}

Restart your client, then just ask it something like "should I carry an umbrella in Chennai today?"

Project structure

weather_core.py     # talks to the Open-Meteo API, no MCP-specific codeweather_advice.py    # reasoning layer built on top of raw weather dataserver.py            # MCP server — wires the above into toolstest_weather.py       # sanity tests against the real API

Kept as separate files on purpose — weather_core.py and weather_advice.py have no MCP dependency at all, so they're easy to test or reuse on their own.

Contributing

PRs welcome. Some ideas if you want to add a tool:

  • Hourly forecast breakdown instead of just today's summary
  • Air quality data (Open-Meteo has a free endpoint for this too)
  • Multi-day trip planning (best day this week for an outdoor event)
  • Severe weather alerts

Keep new tools in weather_advice.py if they add reasoning on top of raw data, or weather_core.py if they're pure data fetching — then wire them into server.py as a new @mcp.tool().

License

MIT — see LICENSE.

來源:README.md,提交 817746d

工具

5

get_weather

Get the current weather and today's forecast for a city.

輸入參數city必填

should_i_carry_umbrella

Get a yes/no recommendation on carrying an umbrella today, with reasoning.

輸入參數city必填

is_good_for_outdoors

Check if today's weather is good for outdoor activities like a walk or run.

輸入參數city必填

compare_weather

Compare current weather between two cities.

輸入參數city_a必填city_b必填

about

Get information about who built this MCP server and why.

無需輸入參數。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分