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 in Tokyo for the next 5 days?"
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 Python Model Context Protocol server that gives an AI current weather and forecasts. It geocodes locations and reads forecast data from Open-Meteo, then optionally uses Groq to explain the result naturally.
Requirements
Python 3.11 or newer
A Groq API key for AI-generated summaries
Internet access for Open-Meteo and Groq requests
Related MCP server: Weather MCP Server
Setup
PowerShell:
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Copy-Item .env.example .envOpen .env and set GROQ_API_KEY. The server still works without the key, but it returns structured JSON instead of an AI summary.
Run
Browser UI
Start the user-facing weather chat:
python -m weather_mcp_server.webThen open http://127.0.0.1:8000. Ask questions such as “Will it rain in London tomorrow?” The browser sends the question to the web adapter, which invokes the same get_weather tool exposed by the MCP server.
Run the server directly:
python -m weather_mcp_server.serverMCP clients can use the checked-in .vscode/mcp.json configuration. In VS Code, open this folder as the workspace, install the Python extension if prompted, and start the weather-mcp-server MCP server from the MCP controls.
The server exposes one tool:
get_weather(location, forecast_days=3): returns current conditions and 1-7 days of forecast data.
Test
python -m pytestThe tests mock Open-Meteo, so they do not require network access or a Groq key.
Available Tools
1 toolget_weatherA
Get current conditions and a weather forecast for a place.
Args: location: A city, region, or country name, such as "London" or "Tokyo". forecast_days: Number of forecast days to return, from 1 through 7.
Inputs: location (required), forecast_days. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusing it with another. The tool's purpose is clearly defined and distinct.
The single tool uses a clear, conventional verb_noun pattern (get_weather), which is consistent and intuitive. There are no naming inconsistencies to evaluate.
A single tool for a weather server is minimal but borderline acceptable because it combines current conditions and forecast. However, it feels thin compared to the typical scope of a weather-focused MCP server.
The tool covers the core weather needs—current conditions and forecast—with configurable forecast days. Missing features like alerts or historical data are minor gaps that agents can work around for basic weather queries.
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Current weather and forecast lookup as an agent tool.
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Current weather and forecasts for any coordinates, backed b… — paid per call (x402/credits), 1 tools
Related MCP Servers
- 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.12 npmCreative Commons Zero v1.0 Universal
- FlicenseBqualityDmaintenanceProvides current weather conditions and forecasts for any location using the Open-Meteo API.2-
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather data, forecasts, and explainable predictions (umbrella, travel, city comparisons) via natural language, powered by Open-Meteo.-
- FlicenseNot gradedqualityDmaintenanceProvides current weather, forecasts, and travel recommendations via Open-Meteo, enabling natural language queries about weather conditions.-