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