streamable-httpMITupdated 11d ago
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.
What can you do with weather mcp?
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 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 once
Setup
git clone https://github.com/darshan0548/weather-mcp.git
cd weather-mcp
python3 -m venv venv
source venv/bin/activate # on Windows: venv\Scripts\activate
pip install -r requirements.txt
Running the tests
A quick sanity check against the real API (no mocking, no API key needed):
python test_weather.py
Connecting it to Claude Desktop
Add this to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"weather": {
"command": "python",
"args": ["/absolute/path/to/weather-mcp/server.py"]
}
}
}
Connecting it to Gemini CLI
Add this to ~/.gemini/settings.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 code
weather_advice.py # reasoning layer built on top of raw weather data
server.py # MCP server — wires the above into tools
test_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.
Install
Add weather mcp to your client. Pick the one you use.
claude mcp add --transport http weather-mcp https://weather-mcp-2yhb.onrender.com/mcpcodex mcp add weather-mcp --url https://weather-mcp-2yhb.onrender.com/mcp{
"mcpServers": {
"weather-mcp": {
"url": "https://weather-mcp-2yhb.onrender.com/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"weather-mcp": {
"type": "http",
"url": "https://weather-mcp-2yhb.onrender.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"weather-mcp": {
"url": "https://weather-mcp-2yhb.onrender.com/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"weather-mcp": {
"serverUrl": "https://weather-mcp-2yhb.onrender.com/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation22/25
- Maintenance19/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 3 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 1.1.0Latest | Aug 28, 2026 |
| 1.0.0 | Aug 28, 2026 |