Skip to main content
Glama
Weather MCP Server

Weather MCP Server

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 .env

Open .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.web

Then 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.server

MCP 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 pytest

The tests mock Open-Meteo, so they do not require network access or a Groq key.

Available Tools

1 tool
get_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

    A4.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion or overlap. The single tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    The tool name uses a clear verb_noun pattern (get_weather) that aligns with common MCP naming conventions. With only one tool, there is no inconsistency to evaluate.

    Tool Count2/5

    A single tool is too few for a weather server's apparent scope. A weather domain could reasonably include current conditions, alerts, historical data, or location search as separate tools, so this feels undersized.

    Completeness4/5

    The tool covers both current conditions and a multi-day forecast, which addresses the core weather use case. Minor gaps exist, such as no separate alerts or historical data tools, but these are not blocking for basic weather lookups.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather information and forecasts, connecting AI assistants with live weather data for current conditions and multi-day forecasts for any location worldwide.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to retrieve current weather, forecasts, and summaries for any global location using the Open-Meteo API, with no API key required.
      11 npm
      Creative Commons Zero v1.0 Universal
    • F
      license
      D
      quality
      D
      maintenance
      Provides real-time weather information, enabling AI assistants to retrieve current temperature and weather conditions for any location worldwide.
      1
      -