Skip to main content
Glama
igalarzab

mcp-multi-weather

by igalarzab

mcp-multi-weather

Description

MCP server for checking the weather history and forecast. This Model Context Protocol (MCP) server provides weather data functionality through a FastMCP-based service that integrates with weather providers to deliver historical weather information.

The server exposes a get_historical_weather tool that allows checking weather conditions for specific cities on past dates, making it useful for applications that need historical weather data.

Related MCP server: MCP Weather Server — Demo

How to run it

First you need to create a valid API key with OpenWeather, and set it in your env file:

$ cp .env.example .env
$ vim .env # Modify the values

Now you can run the server locally:

$ uv run mcp-multi-weather

Or, you can install the package in your claude-desktop:

$ uv run fastmcp install claude-desktop src/mcp_multi_weather/cli/server.py --env-file .env --env PYTHONPATH=$PWD/src/

Development

You can run the tests using pytest:

$ uv run pytest
$ uv run pytest --ow-api-key=DUMMY  # To run tests against the real OpenWeather API

You can also check the syntax and lint the code with pyright and ruff:

$ uv run pyright
$ uv run ruff check
$ uv run ruff format

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Provides 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.
    2
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server that provides current weather for any city using Open-Meteo APIs. It exposes a single tool 'get_weather' returning temperature, humidity, wind, and other weather data.
    1
    7 npm
    MIT