weather-mcp-pro
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@weather-mcp-proWhat's the weather in Seattle and how does it compare to Portland?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
weather-mcp-pro
An MCP (Model Context Protocol) server that exposes real-time weather, forecast, and air-quality data as tools for LLM agents like Claude. Built on the OpenWeather API.
What is MCP?
MCP is Anthropic's open protocol for connecting LLMs to external tools and data sources through a standard client-server interface. This server exposes 4 tools that Claude (or any MCP client) can call during a conversation.
Related MCP server: MCP Weather Server
Tools
Tool | Description |
| Current conditions for a location |
| 1-5 day forecast |
| AQI + pollutant breakdown |
| Side-by-side comparison across up to 5 cities |
Architecture
server.py MCP tool definitions — thin, delegates everything
weather_client.py Async API client — geocoding, caching, retries
models.py Pydantic schemas for validated, typed responses
exceptions.py Typed exceptions instead of ad-hoc error dicts
config.py Environment/settings managementThe design goal: weather_client.py is fully unit-testable without an MCP
server or a live API key (see tests/), because the tool layer never touches
HTTP directly.
Notably, all API calls use httpx.AsyncClient rather than the synchronous
requests library — a common mistake in async def functions is using a
blocking HTTP client, which stalls the event loop for every other concurrent
request the server is handling.
Setup
Uses uv for dependency management.
git clone https://github.com/AsifMarwat/weather-mcp-pro.git
cd weather-mcp-pro
uv venv
uv pip install -r requirements.txt
cp .env.example .env # add your OpenWeather API keyGet a free API key at openweathermap.org/api.
Run
uv run server.pyUse with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"weather-mcp-pro": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/weather-mcp-pro", "server.py"]
}
}
}Example
"What's the weather like in Peshawar right now, and how does it compare to Lahore?"
Claude calls compare_weather(["Peshawar", "Lahore"]) and returns a natural-language
summary built from the structured response.
Tests
uv run pytest tests/ -vLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to fetch real-time weather data for any location using the OpenWeatherMap API. Demonstrates how to build a simple MCP server that exposes weather information as a tool for LLMs.1GPL 3.0
- AlicenseBqualityDmaintenanceProvides tools to retrieve current weather conditions and daily forecasts for cities worldwide using the Open-Meteo API. This Python-based server enables MCP-compatible clients to access real-time meteorological data through a standardized interface.2MIT
- Alicense-qualityDmaintenanceProvides weather data from OpenWeatherMap API through MCP tools and a REST API with OpenAPI support. Enables LLM agents to retrieve current weather, forecasts, and temperature ranges by city or coordinates.15MIT
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server that provides weather data using the OpenWeather One Call API 3.0. This server allows AI agents to access current weather, forecasts, and historical weather data for any location.6
Related MCP Connectors
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
MCP server exposing the Backtest360 engine API as tools for AI agents.
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AsifMarwat/weather-mcp-pro'
If you have feedback or need assistance with the MCP directory API, please join our Discord server