get_weather
Get the current weather and today's forecast for a city.
city必填
io.github.darshan0548由 GitHub 帳號 darshan0548 發布v1.1.0更新於 Nov 1, 2026
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
遠端 MCP 伺服器,讓助理取得城市即時天氣,並就帶傘、戶外活動與城市天氣比較給出白話建議。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.darshan0548%2Fweather-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"weather": {
"type": "http",
"url": "https://weather-mcp-2yhb.onrender.com/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.
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 forecastshould_i_carry_umbrella("Mumbai") — a yes/no answer with reasoning, not just a rain percentageis_good_for_outdoors("Delhi") — checks rain, wind, and temperature together to judge if it's a good day to be outsidecompare_weather("Bangalore", "Delhi") — compares two cities at onceA quick sanity check against the real API (no mocking, no API key needed):
Add this to your Claude Desktop config (claude_desktop_config.json):
Add this to ~/.gemini/settings.json:
Restart your client, then just ask it something like "should I carry an umbrella in Chennai today?"
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.
PRs welcome. Some ideas if you want to add a tool:
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().
MIT — see LICENSE.
來源:README.md,提交 817746d
Get the current weather and today's forecast for a city.
city必填Get a yes/no recommendation on carrying an umbrella today, with reasoning.
city必填Check if today's weather is good for outdoor activities like a walk or run.
city必填Compare current weather between two cities.
city_a必填city_b必填Get information about who built this MCP server and why.
無需輸入參數。
已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
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.txtpython test_weather.py{ "mcpServers": { "weather": { "command": "python", "args": ["/absolute/path/to/weather-mcp/server.py"] } }}{ "mcpServers": { "weather": { "command": "python", "args": ["/absolute/path/to/weather-mcp/server.py"] } }}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