Weather MCP Server
Click on "Deploy 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 Server what's the weather and air quality in Delhi right now?"
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 Server
A Model Context Protocol (MCP) server that gives Claude live weather forecasts and air quality data for any location in the world, powered by the free Open-Meteo API (no API key required).
Built by following Anthropic's MCP quickstart guide, then extended to work globally instead of US-only.
Tools
get_forecast(location: str)
Returns current conditions and a 5-day forecast for the given place name.
get_forecast("Delhi")get_air_quality(location: str)
Returns current AQI and pollutant levels (PM2.5, PM10, CO, NO2, ozone) for the given place name.
get_air_quality("Delhi")Related MCP server: OpenWeather MCP Server
Setup
Requires Python 3.10+ and uv.
uv venv
uv add "mcp[cli]"Running the server
uv run weather.pyThis starts the server over stdio and waits for an MCP client to connect — it won't print anything, that's expected.
Testing without a client
Use the official MCP Inspector:
npx @modelcontextprotocol/inspector uv run weather.pyThis opens a local web UI where you can call get_forecast and
get_air_quality directly and see the results.
Using it with Claude Code
claude mcp add --transport stdio weather -- uv --directory /path/to/this/project run weather.pyThen just ask Claude Code about the weather anywhere in the world.
How it works
Place names are geocoded to latitude/longitude via Open-Meteo's geocoding API.
Forecast and air quality data are fetched from Open-Meteo's forecast and air-quality endpoints.
Results are formatted into plain text for the model to read.
License
MIT
Available Tools
2 toolsget_air_qualityB
Get current air quality (AQI and pollutants) for a place, anywhere in the world.
Args: location: City or place name, e.g. "Delhi", "Beijing", "Los Angeles"
Inputs: location (required). Returns: result
get_forecastB
Get the weather forecast for a place, anywhere in the world.
Args: location: City or place name, e.g. "Delhi", "New Delhi, India", "Tokyo"
Inputs: location (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
get_forecast and get_air_quality target clearly distinct data domains (weather forecast vs air quality/pollutants), so an agent can unambiguously select between them. Both share a consistent location argument, removing any selection confusion.
Both tools follow the identical verb_noun pattern (get_forecast, get_air_quality) with snake_case throughout. There is no deviation or mixed convention.
Two tools is thin for a weather server's apparent scope; a single data-lookup pattern covers only forecast and air quality. It is functional but borderline sparse for the domain.
Core lookups are covered, but obvious operations are missing: current conditions, historical weather, hourly/daily breakdowns, and severe weather alerts. Agents would hit dead ends for common weather queries.
Maintenance
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Current weather and forecast lookup as an agent tool.
The official Model Context Protocol server for Ambee. It gives any MCP-compatible AI assistant — Claude, ChatGPT, Cursor, VS Code, Ollama, and more direct access to live air quality, pollen, and weather data. To get started, including information on signing up and obtaining your Ambee key, check out the Ambee documentation on https://docs.ambeedata.com
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data, forecasts, and historical weather information from OpenWeatherMap API for Claude Desktop, enabling natural language queries about current conditions, forecasts, air quality, and weather alerts worldwide.11MIT
- AlicenseAqualityDmaintenanceIntegrates the OpenWeather API with Claude to provide real-time weather updates, 5-day forecasts, and air quality data. It enables users to query current conditions, pollution levels, and coordinate-based weather information directly within their conversations.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.Creative Commons Zero v1.0 Universal
- AlicenseNot gradedqualityDmaintenanceEnables users to get weather forecasts for any city using the Open-Meteo API through natural language in Claude Desktop or VS Code.ISC